mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
HTML Demo
The HTML demo page is a large collection of HTML elements that you will come across during development. The full list of elements can be found on MDN.
To learn more about each element, click on the element names below.
Document Metadata
html- Root-level elementhead- Provides general information (metadata) about the pagetitle- Defines document title shown in browser tab/title barlink- Links to external resources (usually stylesheets)style- Inline style tag
Content Sectioning
section- Generic section of contentheader- Introductory content or navigational aidfooter- Footer for nearest sectioning elementmain- Dominant contentnav- Navigational aidarticle- Syndicated contentaside- Related informationh1,h2,h3,h4,h5,h6- Section headings
Block Text Content
div- Generic block level containerp- Paragraphol- Ordered list (1,2,3)ul- Unordered list (bullets)li- List itempre- Preformatted text
Inline Text Elements
a- Anchor element for creating links to other pages, files, programsspan- Generic inline containerb- Bring attention to content (usually bold)em- Stress emphasis (usually italic)i- Range of text set off from normal text (usually italic)sub- Subscript textsup- Superscript textcode- Fragment of computer code (monospace)
Image and multimedia
img- Embeds image into document
Table Content
table- Root table containerthead- Table head containertr- Table rowth- Table head celltbody- Table body containertd- Normal table cell
Forms
form- Form containerlabel- Label text for form elementsselect- A dropdown containeroption- Dropdown elementsinput- A form field to collect various types of input. Possibletypevalues include:textcheckboxcolordateradiosubmit