HTML Text Formatting Elements (w3schools.com)

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Give an example of a paragraph element that has boldly defined text.

<p><b>This text is bold</b>.</p>

Give an example of a paragraph element that has italic text and semantically emphasized importance.

<p><em>This text is emphasized</em>.</p>

Give an example of a paragraph element that has italic text.

<p><i>This text is italic</i>.</p>

Give an example of a paragraph element that has strongly defined text and semantically strong importance.

<p><strong>This text is strong</strong>.</p>

Give an example of the <ins> element being used within a paragraph element to define inserted or underlined text.

<p>My favorite <ins>color</ins> is red.</p>

Give an example of the <del> element being used within a paragraph element to define deleted or removed text.

<p>My favorite color is <del>blue</del> red.</p>

Give an example of the <sub> element being used within a paragraph element to define sub-scripted text.

<p>This is <sub>subscripted</sub> text.</p>

Give an example of the <sub> element being used within a paragraph element to define super-scripted text.

<p>This is <sup>superscripted</sup> text.</p>

<b>

Defines bold text

<del>

Defines deleted and crosses out text

<em>

Defines emphasized text

<strong>

Defines important text

<ins>

Defines inserted and underlined text

<i>

Defines italic text

<mark>

Defines marked/highlighted text

<small>

Defines smaller text

<sub>

Defines subscripted text

<sup>

Defines superscripted text

What were formatting elements designed for?

Formatting elements were designed to display special types of text.

What element defines bold text, without any extra importance?

The HTML <b> element

What element defines emphasized text?

The HTML <em> element defines emphasized text, with added semantic importance.

What element defines italic text, without any extra importance?

The HTML <i> element

What element defines strong text?

The HTML <strong> element defines strong text, with added semantic "strong" importance.

How would you define deleted or removed text within an element?

Use The HTML <del> element

How would you define inserted or underlined text within an element?

Use The HTML <ins> element

How would you define sub-scripted text within an element?

Use The HTML <sub> element

How would you define super-scripted text within an element?

Use The HTML <sup> element

Give an example of the <small> element being used within a header to define smaller text in a sentence.

<h1>HTML <small>Small</small> Formatting</h1>

Give an example of the <mark> element being used within a second header element to define highlighted text.

<h2>HTML <mark>Marked</mark> Formatting</h2>

What is the difference between <b> (bold) and <i> (italic), and their counterparts <strong>and <em> (emphasized)?

Browsers display <strong> as <b>, and <em> as <i>. However, there is a difference in the meaning of these tags: <b> and <i> defines bold and italic text, but <strong> and <em> means that the text is "important".

How would you define highlighted or marked text within an element?

Use the HTML <mark> element

How would you define small text within an element?

Use the HTML <small> element


Ensembles d'études connexes

Individual Life Insurance Contract-Provisions and Options

View Set

medical, legal, ethical, and documentation

View Set

Principles of Microeconomics, Ch. 20

View Set

med surg I-Chapter 23: Management of Patients With Chest and Lower Respiratory Tract Disorders

View Set

History of World Cinema Midterm Study Guide

View Set

Nursing Concepts Exam 3 Practice Questions

View Set

Chapter 2 Section 9 Alienation, Wills and Deeds

View Set