The <!DOCTYPE> declaration represents the document type, and helps browsers to display web pages correctly.
It must only appear once, at the top of the page (before any HTML tags).
The <!DOCTYPE> declaration is not case sensitive.
The <!DOCTYPE> declaration for HTML is: <!DOCTYPE html>
<html> tag:
The <html> element is the root element of an HTML page
<html></html>
<title> Tag:
The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)
<html><head><tltle> My page </title></head></html>
<body> Tag:
The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
<h1*> Tag:
HTML headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important heading:
<!--(h1 to h6) --><h1>Heading tag 1(big)</h1><h2>Heading tag</h2><h3>Heading tag</h3><h4>Heading tag</h4><h5>Heading tag</h5><h6>Heading tag (small)</h6>
<p> tag:
HTML paragraphs are defined with the <p> tag:
Example:
<p>This is a paragraph.</p><p>This is another paragraph.</p>
<pre> Tag
By default HTML ignores extra spaces & newlines.
pre tag is Used to display text as it is (without ignoring spaces & next line).
Example:
<pre> This
is a sample
text.
</pre>
Live:
This
is a sample
text.
<br> Tag:
Used to add next line(line breaks) to your page.
Example:
<br>
<hr> Tag
Used to display a horizontal ruler, used to separate content