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>
<html>
<body>
<h1>My Title</h1>
<p>lalallalalalalalla</p>
</body>
</html>
Headings are defined by <h1> to <h6> and defined from most important to least important.
EX:<h1>The main title</h1>
<h2>Hola</h2>
<h3>The small title</h3>
Paragraphs are defined with <p>
EX: <P> The text here is part of the paragraph</P>
<p>lalalallalalallalal</p>
Links are defined by <a> and a href attribute specifies the link destination
EX: <a href=https://espn.com> 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