Basic
Declares the document type and version of HTML (HTML5 here).
<!DOCTYPE html>
The root element of an HTML document.
<html lang="en"></html>
Contains metadata, links, title, and scripts.
<head></head>
Contains all the visible content on the page.
<body></body>
<h1>
– <h6>
: Defines headings. <h1>
is the largest, <h6>
is the smallest.
<h1>Main Heading</h1>
Adds a block of text (paragraph).
<p>This is a paragraph.</p>
Inserts a line break.
Line 1 <br> Line 2
Creates a horizontal line (a thematic break).
<hr>
Defines a block-level container.
<div>Block content</div>
Defines an inline container.
<span>Inline content</span>
Last updated