Search the Whole World Here.,.,

HTML Formatting Elements

HTML Formatting Elements

HTML Formatting Elements

In the previous chapter, you learned about the HTML style attribute.
HTML also defines special elements for defining text with a special meaning.
HTML uses elements like and for formatting output, like bold or italic text.
Formatting elements were designed to display special types of text:
  • - Bold text
  • - Important text
  • - Italic text
  • - Emphasized text
  • - Marked text
  • - Small text
  • - Deleted text
  • - Inserted text
  • - Subscript text
  • - Superscript text
HTML Text Alignment

HTML Text Alignment

HTML Text Alignment

The text-align property defines the horizontal text alignment for an HTML element:

Example

<h1 style="text-align:center;">Centered Heading</h1>
<p style="text-align:center;">Centered paragraph.</p>
Try it Yourself »

Ads by Google