All HTML documents must start with a document declaration.
<!DOCTYPE html>
It helps display web pages correctly
It’s not case sensitive
It also starts with <html> and ends with </html>
The visible parts are within <body> and </body>
EX: <!DOCTYPE html>
<h1>My Title</h1>
Headings are defined by <h1> to <h6> and defined from most important to least important.
EX:<h1>The main title</h1>
<h3>The small title</h3>
Paragraphs are defined with <p>
EX: <P> The text here is part of the paragraph</P>
Links are defined by <a> and a href attribute specifies the link destination
EX: <a href=> This is a link</a>
Empty elements are HTML elements with no contents in them
<p> This is a <br>paragraph.</p>
Back to Top