<!DOCTYPE HTML>
: An instruction to the web browser about what version of HTML the page is written in.
what if u didnt add that ? : When there is no doctype declaration in an HTML document, the web browser is forced to enter into “quirks mode,” which can cause the browser to render the page differently than intended. This can result in compatibility issues with different browsers and outdated versions of the same browser.
<html>
: Defines the root of an HTML document.
<head>
: Contains meta-information about the document, such as its title and links to stylesheets or scripts.
<title>
: Sets the title of the document, displayed in the browser’s title bar or tab.
<body>
Encloses the main content of the document.
<h1>
to <h6>
Headings of different levels (1 is the highest, 6 is the lowest).
<p>
: Defines a paragraph.
<br>
: Adding a Line Break (No closing Tag)
<hr>
: Adding horizontal rule
<!-- Comment -->
: HTML comments. this is not displayed on web page . this is a note for developers for themselves.