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]

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]

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

Multimedia[edit]

  1. YouTube: HTML5 Tutorial for Beginners

Examples[edit]

Section Headings[edit]

<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]

<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]

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]

<pre>text</pre>

Example:

text
    goes
        here

Horizontal Rule[edit]

<hr>

Example:


Activities[edit]

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

Key Terms[edit]

block-level element
heading tag

See Also[edit]

References[edit]