Text Content
Description: The <h1> element is used for the main title or top heading of a page or section, setting it apart as the most important. Search engines and accessibility tools often use <h1>to understand the main topic of the page.
Heading Two
Explanation: The <h2> tag represents a second-level heading, commonly used to define subtopics within a section. It’s useful for structuring content hierarchically.
Heading Three
The <h3> element is a third-level heading, commonly used under <h2>headings to further structure content. It aids in creating a well-defined hierarchy.
Heading Four
The <h4> element is a fourth-level heading, used for subdivisions under <h3> headings for deeper organizational structure.
This is a typical paragraph element. Paragraphs, <p>, contain blocks of text and provide logical breaks between sections or topics within your content.
Heading Five
The <h5> element represents a fifth-level heading, used for very specific sub-sections under <h4> headings in detailed hierarchies.
Heading Six
The <h6> element is the sixth-level heading, useful for the finest level of headings when very specific sub-sections are needed.
Descriptive List
A descriptive list (created with the <dl>, <dt>, and <dd> tags) is used to define terms and their descriptions in a structured way. It’s helpful for glossaries, FAQs, or any list where you want to pair a term with its description.
- Tardis
- A phone booth, bigger on the inside, that travels anywhere and any time.
- Tree
- A large plant.
Preformatted Code
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ul>
Blockquote
The <blockquote> element is used for large quotations from other sources, often displayed with indentation. The <cite> tag adds a citation for the quote.
Ordered List
- Item 01
- Item 02
- Item 03
- Item 04
Unordered List
- A thing
- Another thing
- There's a thing here too
- The last thing
Mixed List
-
An unordered list
- A thing
- Another thing
- There's a thing here too
- The last thing
- Item 02
-
Another unordered list
- A thing
-
An ordered list
- Item 01
- Item 02
- Item 03
- Item 04
- There's a thing here too
- The last thing
- Item 04
Inline Elements
Links
This is an internal link.
This is an external link.
This is an email link.
This is a link to a PDF.
This is a link to a .zip file.
Abbreviation
Abbreviation: HTML.
Inline Code
This is code: cd ../styles/css
Definition
HTML is the standard markup language for creating web pages.
Strong Text
This is strong text.
Emphasis
This text is emphasized.
Delete, Insert, Strike, and Marked (Highlighted)
You can indicate that this text has been deleted and
replaced with this text. Strike is different from
deleting; it indicates something is no longer relevant. Text can
also be highlighted.
Small Text
Small text is suitable for information such as disclaimers and copyright notices.
Subscript and Superscript
H2O
Here lies the 2nd fastest gun in the West.
Keyboard Input
On a Mac, press command (⌘) + s to save a document.
Inline Quote
What is an inline quote?
Aluki asked.
Sample Computer Output
⌘ + s + shift
Please select a destination to save your file.
Time
Joe Strummer: to
Variables
The area of a rectangle is width x length.
Multimedia
Image
Figure
The <figure> element is used to group content, such as images, illustrations, charts, or code snippets, along with a descriptive caption. It provides a semantic structure, which helps browsers and assistive technologies understand that the content inside <figure> and <figcaption> are related.
Picture
The <picture> element is used to provide multiple versions of an image for different screen sizes or device capabilities. It allows for responsive images by defining various <source> elements, each with different media conditions and image files. When the conditions of a <source> are met, the browser loads the specified image from its <srcset>. If none match, it defaults to the image in the <img> tag, ensuring compatibility across devices.
Audio
Video
Embedded Content
Iframe
The <iframe> element embeds external content like videos or maps in a page. Attributes like <width> and <height> set its size, and <allow> enables permissions like fullscreen or autoplay.
Experimental Moves from Deekay.
Object
The <object> element embeds external content, like PDFs or multimedia, into a webpage. It uses the <data> attribute for the file URL and <type> to specify the content type. Fallback content, like a download link, can be added if the file doesn’t display.
SVG
Interactive Elements
Details
The <details> element creates a collapsible section that users can expand to view additional information. The <summary> tag provides a visible label for the content within.
Secondary colors
The resulting color when two primary colors are mixed.Tables
The <table> element organizes data into rows and columns, making it useful for displaying structured information.
| Red | Blue | Yellow | |
|---|---|---|---|
| Red | Red | Violet | Orange |
| Blue | Violet | Blue | Green |
| Yellow | Orange | Green | Yellow |