I am a noob at HTML.
I have a folder on my desktop with page1.html and page2.html.
This is an example of page1
<html>
<h1> Welcome
<title>Website
</h1>
<body>
<p> to page 2
</body>
<a href="page2.html" target="_self">Link</a>
</html>
Whenever I open page1.html, It just says “Welcome”, and “to page 2”. There is no hyperlink. What am I doing wrong?
You are missing a
</p>tag and the<a>tag should be inside the<body>tag.<h1>tag is malformed as well. Remember, this is just like parentheses in math. If you open one then you need to close one.