Html elements

From wikinotes

HTML uses elements to indicate markup.
Syntax like <p>, <pre>, <img>, ... are all examples of elements.

NOTE:

The whole 4.X section of the HTML5 Spec describes availavle Elements and usage.
This page only contains some examples.

Documentation

Document https://www.w3.org/TR/2018/WD-html53-20181018/semantics.html#the-root-element
Document Metadata https://www.w3.org/TR/2018/WD-html53-20181018/document-metadata.html#document-metadata
Sections https://www.w3.org/TR/2018/WD-html53-20181018/sections.html#sections
Grouping Content https://www.w3.org/TR/2018/WD-html53-20181018/grouping-content.html#the-dt-element
Text Level Semantics https://www.w3.org/TR/2018/WD-html53-20181018/textlevel-semantics.html#textlevel-semantics
Edits https://www.w3.org/TR/2018/WD-html53-20181018/edits.html#edits
Embedded Content https://www.w3.org/TR/2018/WD-html53-20181018/semantics-embedded-content.html#semantics-embedded-content
Links https://www.w3.org/TR/2018/WD-html53-20181018/links.html#links
Tabular Data https://www.w3.org/TR/2018/WD-html53-20181018/tabular-data.html#tabular-data
Forms https://www.w3.org/TR/2018/WD-html53-20181018/sec-forms.html#sec-forms
Interactive Elements https://www.w3.org/TR/2018/WD-html53-20181018/interactive-elements.html#interactive-elements
Scripting https://www.w3.org/TR/2018/WD-html53-20181018/semantics-scripting.html#semantics-scripting
Common Idioms https://www.w3.org/TR/2018/WD-html53-20181018/common-idioms-without-dedicated-elements.html#common-idioms-without-dedicated-elements

Lists

Ordered List (numbered)

<ol>
  <li>A</li>
  <li>B</li>
</ol>

Unordered List (bullet points)

<ul>
  <li>A</li>
  <li>B</li>
</ul>

Tables

<table>
  <tr>
    <th>Firstname</th>
    <th>Lastname</th>
  </tr>
  <tr>
    <td>Person</td>
    <td>MacPherson</td>
  </tr>
</table>

Details/Summary

Summary creates a collapsible section of text.

<details>
  <summary>Copyright 1999-2014.</summary>
  <p> - by Refsnes Data. All Rights Reserved.</p>
  <p>All content and graphics on this web site are the property of the company Refsnes Data.</p>
</details>

Forms

See html forms