### Width attribute Source: https://htmlreference.io/element/video Example of setting the width of the video in pixels. ```text "160" ``` -------------------------------- ### Height attribute Source: https://htmlreference.io/element/video Example of setting the height of the video in pixels. ```text "90" ``` -------------------------------- ### HTML Heading Hierarchy Example Source: https://htmlreference.io/element/h6 This example demonstrates the use of heading levels from h1 to h6 to structure a document. ```html

My blog post

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

Introduction

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

Example

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

Why

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

Reason

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

Focus

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

``` -------------------------------- ### HTML link href attribute examples Source: https://htmlreference.io/base Examples of absolute and relative URL paths for the href attribute. ```html "https://htmlreference.io/css/website.css" ``` ```html "/css/website.css" ``` -------------------------------- ### Basic

element usage Source: https://htmlreference.io/element/p A simple example showing how to wrap text in a paragraph element. ```html

Hello World

``` -------------------------------- ### HTML Heading Hierarchy Example Source: https://htmlreference.io/element/h5 This example demonstrates the use of various heading levels from h1 to h5 within an HTML document structure. ```html

My blog post

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

Introduction

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

Example

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

Why

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

Reason

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

``` -------------------------------- ### HTML

Heading Structure Example Source: https://htmlreference.io/element/h2 An example showing the use of

for the main title and

for a section heading. ```html

My blog post

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

Introduction

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

``` -------------------------------- ### Media query in sizes Source: https://htmlreference.io/element/source Example of using media queries within the sizes attribute. ```html "(min-width: 800px) 1440px, 720px" ``` -------------------------------- ### Using the element Source: https://htmlreference.io/element/code Example showing how to wrap text in a tag to indicate it is code. ```html Type npm install in your terminal to install a project's dependencies. ``` -------------------------------- ### Basic progress bar usage Source: https://htmlreference.io/element/progress A simple example of a progress bar using a decimal value. ```html Progress ``` -------------------------------- ### Basic text input example Source: https://htmlreference.io/element/input A simple single-line text input field. ```html ``` -------------------------------- ### Ordered list item example Source: https://htmlreference.io/element/li Demonstrates the use of li elements within an ordered list. ```html
  1. Step one
  2. Step two
  3. ????
  4. PROFIT!!!
``` -------------------------------- ### Superscript text example Source: https://htmlreference.io/element/sup Demonstrates the use of the sup element to display a superscript exponent. ```html The "power of two" is 2n where n is an integer. ``` -------------------------------- ### Media query for Source: https://htmlreference.io/element/source Example of a media query used in the media attribute. ```html "(min-width: 800px)" ``` -------------------------------- ### Basic HTML header structure Source: https://htmlreference.io/element/header An example of a
element containing a heading and a navigation menu. ```html

HTML Reference

``` -------------------------------- ### Basic meter usage Source: https://htmlreference.io/element/meter A simple example of a meter element with a defined value. ```html Progress ``` -------------------------------- ### Interactive Form Example Source: https://htmlreference.io/element/form A comprehensive example of an HTML form containing radio buttons, text inputs, email, telephone, password fields, a select dropdown, a checkbox, and submission/reset buttons. ```html








``` -------------------------------- ### Defining a term with dfn Source: https://htmlreference.io/element/dfn This example shows how to wrap a term in the dfn element to indicate it is being defined. ```html The World Wide Web is the part of the Internet that uses the HTTP protocol. ``` -------------------------------- ### Email input with label and placeholder Source: https://htmlreference.io/element/input Best practice for email inputs involves using a label for description and a placeholder to show an example format. ```html

``` -------------------------------- ### Unordered list item example Source: https://htmlreference.io/element/li Demonstrates the use of li elements within an unordered list. ```html

My shopping list:

  • Milk
  • Bread
  • Chocolate
  • More chocolate
``` -------------------------------- ### Using the data element for machine-readable content Source: https://htmlreference.io/element/data This example demonstrates how to wrap list items with the data element to provide machine-readable values for computer hardware items. ```html

Computers

  • Mini PC
  • Small laptop
  • Large laptop
  • Desktop PC
``` -------------------------------- ### Using the element for metadata Source: https://htmlreference.io/element/small This example demonstrates how to wrap secondary information like post dates and categories in a tag within a paragraph structure. ```html

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.

Posted on in Code ``` -------------------------------- ### Define image sources with Source: https://htmlreference.io/element/picture This example demonstrates how to use the element to provide responsive image sources based on media queries and pixel density, with a standard element as a fallback. ```html Picture of a Ha Long Bay sunset ``` -------------------------------- ### Poster image attribute Source: https://htmlreference.io/element/video Example of defining an image to display until the video is played. ```text "/images/html-reference-share.png" ``` -------------------------------- ### Basic definition list structure with
Source: https://htmlreference.io/element/dd This example demonstrates how to use the
element to define terms within a
container. ```html
Web
The part of the Internet that contains websites and web pages
HTML
A markup language for creating web pages
CSS
A technology to make HTML look better
``` -------------------------------- ### HTML element calculation example Source: https://htmlreference.io/element/output Demonstrates using the element to display the sum of two input numbers in real-time via the oninput event. ```html
+ = 11
``` -------------------------------- ### Relative URL for src attribute Source: https://htmlreference.io/base Example of a relative URL path for the src attribute. ```text "/javascript/my-scripts.js" ``` -------------------------------- ### Relative path for src attribute Source: https://htmlreference.io/element/video Example of a relative path used to define the source of the video file. ```text "/assets/HTML 5 Video.mp4" ``` -------------------------------- ### Basic