<html> |
Root element of an HTML page |
<html>...</html> |
<head> |
Contains meta information about the document |
<head><title>Page</title></head> |
<body> |
Contains the visible page content |
<body>Content</body> |
<h1> to <h6> |
Defines HTML headings |
<h1>Heading</h1> |
<p> |
Defines a paragraph |
<p>Paragraph text</p> |
<a> |
Defines a hyperlink |
<a href="url">Link</a> |
<img> |
Defines an image |
<img src="image.jpg" alt="Description"> |
<div> |
Defines a division or section |
<div>Content</div> |
<span> |
Defines an inline container |
<span>Text</span> |
<ul> |
Defines an unordered list |
<ul><li>Item</li></ul> |
<ol> |
Defines an ordered list |
<ol><li>Item</li></ol> |
<table> |
Defines a table |
<table><tr><td>Cell</td></tr></table> |
<form> |
Defines an HTML form |
<form><input type="text"></form> |
<input> |
Defines an input field |
<input type="text" name="username"> |
<button> |
Defines a clickable button |
<button>Click Me</button> |