Normal Elements #
<Opening Tag>Nested Content</Closing Tag>
Normal elements can have nested elements and text nodes.
Nested Content sets the default value (e.g., <textarea>Default</textarea>).
<Tag />
The trailing slash is not required, but it makes XHTML-compatible and more readable.
Void elements cannot have nested elements and text nodes.
The value attribute sets the default value (e.g., <input value="Default" />).
<!doctype html><html><head><meta><title><link>External CSS, Favicon
<style>Internal CSS
<script><noscript>Can be nested in the
<body>element.
<body><header><main><footer><aside><nav><article>Independent Content
<section>Semantic Block Grouping
<div>Non-Semantic Block Grouping
<span>Non-Semantic Inline Grouping
<fieldset><legend><label><input><button><datalist><select><optgroup><option><textarea><output><hgroup><h1>~<h6><p><strong><b>Bold
<em><i>Italic
<s>Strikethrough
<mark>Highlight
<del><ins>Delete and Insert
<small><var><sub><sup>Variable
<kbd>Keyboard
<samp>Program Sample Output
<pre><code><bdo><bdi><hr><br>- ▶
<ul><ol><li>When creating nested lists, any nested
<ul>or<ol>must be placed inside<li>.HTML <!-- ❌ --> <ul> <li>List 1</li> <ul> <li>Sub-List 1</li> <li>Sub-List 2</li> </ul> <li>List 2</li> </ul> <!-- ✅ --> <ul> <li> List 1 <ul> <li>Sub-List 1</li> <li>Sub-List 2</li> </ul> </li> <li>List 2</li> </ul>
<dl><dt><dd><details><summary><data><time><figure><figcaption><img><map><area><picture><source><video><source><audio><source><iframe>