Defines the root of an HTML document.
<html>
<!-- content goes here -->
</html>
Holds metadata about the document, like title and links to stylesheets.
<head>
<title>Page Title</title>
</head>
Contains all the content visible on the webpage.
<body>
<h1>Hello World</h1>
</body>
Defines headings from largest (<h1>) to smallest (<h6>).
<h1>Main Heading</h1>
<h2>Subheading</h2>
Defines a paragraph of text.
<p>This is a paragraph.</p>
Creates a hyperlink to another page or location.
<a href="https://example.com"> Example </a>
Shows an image on the page.
<img src="image.jpg" alt="Description">
Creates a list with bullet points.
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
Creates a numbered list.
<ol>
<li>First item</li>
<li>Second item</li>
</ol>
Defines a single item in a list.
<li>Item text</li>
Used to group block-level elements for styling or layout.
<div>
<p>Content inside a div.</p>
</div>
Used to group inline elements for styling.
<span> Inline text </span>
Defines a table with rows and cells.
<table>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</table>
Allows users to submit input to a server.
<form action="/submit" method="post">
<input type="text" name="name">
<button type="submit">Submit
</button>
</form>
Creates a field for user input.
<input type="text" name="username">
Defines a clickable button.
<button type="button">Click Me</button>