Web Foundations/Block Elements

From Wikiversity
Jump to navigation Jump to search
Internet word cloud

This lesson introduces HTML block elements.

Objectives and Skills[edit | edit source]

Objectives and skills for this lesson include:[1][2]

  • Use the most current version of Hypertext Markup Language (HTML5) to create Web pages.
  • Design Web pages to industry standards.

Readings[edit | edit source]

  1. Wikipedia: Block-level element
  2. Wikibooks: HyperText Markup Language/Paragraphs and Headings

Multimedia[edit | edit source]

  1. YouTube: HTML5 Tutorial for Beginners

Examples[edit | edit source]

Section Headings[edit | edit source]

<h1>Level 1 Heading</h1>
<h2>Level 2 Heading</h2>
<h3>Level 3 Heading</h3>
<h4>Level 4 Heading</h4>
<h5>Level 5 Heading</h5>
<h6>Level 6 Heading</h6>

Example:

Level 1 Heading

Level 2 Heading

Level 3 Heading

Level 4 Heading

Level 5 Heading
Level 6 Heading

Paragraph[edit | edit source]

<p>paragraph text</p>

Example:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Quotation (indented margins)[edit | edit source]

A block level quotation, for when the quotation includes block level elements.[3]

<blockquote>quotation</blockquote>

Example:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Pre-formatted Text[edit | edit source]

<pre>text</pre>

Example:

text
    goes
        here

Horizontal Rule[edit | edit source]

<hr>

Example:


Activities[edit | edit source]

  1. Complete the tutorial TutorialsPoint: HTML Blocks
  2. Complete the tutorial TutorialsPoint: HTML Elements
  3. Complete the tutorial TutorialsPoint: HTML Attributes

Key Terms[edit | edit source]

block-level element
heading tag

See Also[edit | edit source]

References[edit | edit source]