Does HTTPS Effect HTML Pages? - html

So i have a HTML file in my cPanel File Manager and i want to edit it.
Here's an example
My HTML Line
<a class="/">My Home</a>
My HTML Line (Edited)
<a class="/">Home</a>
I want to see the preview,so i type in my website url on my browser. The HTML was edited successfully in HTTP.
But when i go to HTTPS,it doesn't change at all. It's still says "My Home". Does HTTPS effect this kind of stuff? Need Help Please :)
Thank You

You might have another www-root for https than for http...

Related

Why do links to social media do not work using html?

I have the following code in my html. When I click on the icon I want to be taken to my websites facebook account.
<li><a href="www.facebook.com/mywebsitename"><i class="fa fa-facebook" aria-
hidden="true"></i></a></li>
However instead I get my webpage without any css and the url changes to the following url. Why is this?
https://mywebiste.com/www.facebook.com/mywebsite
The URL is considered as a directory Path. try to replace
href="www.facebook.com/mywebsitename"
to
href="https://www.facebook.com/mywebsitename"
Your URL should be starting with a scheme:
<a href="https://www.facebook.com/mywebsitename">
See more here: What_is_a_URL
This happens because you didn't write the beginning of the line address. He directs you to your own page in this project because he doesn't know where to go. Use https://.
<a href="https://www.facebook.com/mywebsitename">

How to create a new link with <a> tag?

I would like to ask a question about href with <a> tag.
For example, in the website form Bill Gates, the first link says https://www.gatesnotes.com/, but then when I click a new link in the page , the link changes into https://www.gatesnotes.com/About-Bill-Gates/Summer-Books-2021 like this and goes to a new page. How do I do the same thing?
I did <a href ='index.html/life'>life</a> and clicked the link but it says "Your file couldn’t be accessed". what I think is I need a new file to show a new page. but I don't know how to make a new file because if I make a file name with 'life' for example, HTML code doesn't seem to work. it might be wrong. but is there is any way. Please teach me the solution. I used github to post my website in public. but I just started using it. so I'm not sure exactly how to use it honestly.
Thank you.
Create a file called life.html and use <a href ='life.html'>life</a> instead.
Make sure you place it in the same directory as index.html or the path of href should change accordingly.

<a> link puts page name at end of url

Sorry if the title is confusing, I wasn't exactly sure how to word this.
Basically what I want to do is make a link, simple enough. The page is tylerofcinema.github.io and if I make a link to say, google.com the url that I get is tylerofcinema.github.io/google.com.
Code is in a repo here, let me know if there is any clarification needed.
Thanks, Diego
You did not include the protocol of the url, causing the href to think it needs to open a page in the same directory.
Try adding http:// (or https://) to your href and it will open the specified url.
<a target="_blank" href="https://tylerofcinema.github.io/r/twitter"><button class="homesmb">Twitter</button></a>
should be a simple syntax error.
My suggestion would be to change the url to the full address like http://www.google.com so that the browser understands you mean the actual google server and not something else. give it a try
just add // before the start of the link, it should work

HTML Link doesn't work properly sometimes

I am using a local server for my applications and sometimes when I created a button or a link to another page in a new tab, it turns out to not working properly. It's not always like this, but sometimes, might sound silly. I give example below.
Let's say my application is **programmingworld** which exists in www folder, then in index.html file, I create a link for a button like this
Download Codes</div>
When I open it in a browser and click the button, sometimes it goes to http://localhost/programmingworld/www.google.co.uk where nothing is displayed on the page. It supposed to be www.google.co.uk in the new tab where I can see the google homepage.
Can you please tell me why?
You should write:
Download Codes</div>
If you didn't write http:// at the the beginning of the hyperlink, it will be search you your local directories or files.
To make sure that the link goes to where you intend and not where it goes try adding // or http://.
Example:
Google
or
Google
With // it will try http and https.
You're missing https:// before www.google.co.uk
So you're markup should look like this:
<a href="https://www.google.co.uk">
<div class="button" id="button=popup">Download Codes</div>
</a>
you can also do it like this (no https):
<a href="//google.co.uk">
<div class="button" id="button=popup">Download Codes</div>
</a>
Because you haven't included the protocol in your URL. it must start with either http:// or https://
Also, remove the div from inside the anchor tag.
Your question suggests that you need to do a little bit more testing on basic html.
I would most definitely suggest using https://
I've had similar problems such as that, and in order to fix them try adding https.

HTML link to internet does not work

Trying a very basic link through HTML to internet:
<p>Google</p>
No matter what website I try to link to my browser says ERR_FILE_NOT_FOUND and the detail
No webpage was found for the web address: file:///Users/stevemcc101/Dropbox/html/“https://www.google.comâ€
So my browser is always picking up the path to the dropbox folder (or any other folder I save the document in) and not linking direct to the URL.
Sorry I know a basic query but just starting to learn HTML and can't get around this issue. Please help!
Try without the quotes like so:
<p><a href=http://www.google.com>Google</a></p>
if that works then the issue is with your quotes