HTML Full Course (Day 02)

1. HTML doctype declaration: The doctype declaration is an essential part of an HTML document as it specifies the version of HTML being used. It is placed at the very beginning of an HTML file before the `<html>` tag. The doctype declaration informs the browser which rules to follow when rendering the HTML document. The most commonly used doctype declaration for modern HTML documents is the HTML5 doctype declaration: ```HTML <!DOCTYPE html> ``` This declaration indicates that the document is an HTML5 document. It ensures that the browser interprets the document in standards-compliant mode. 2. Head and body sections: The structure of an HTML document consists of two main sections: the `<head>` section and the `<body>` section. - `<head>` section: The `<head>` section provides metadata and other non-visible information about the HTML document. It contains elements such as the `<title>` tag, meta tags, linked CSS stylesheets, JavaScript file...