HTML Text Formatting

What is meant by formatting in HTML?

HTML stands for HyperText Markup Language. It’s the way web pages and email templates are coded so that text is formatted and images are added. Plain Text is regular text, with no formatting options such as bold, italics, underlines, or special layout options.

  1.  b - Bold text  ex:  Bold
  2.  strong - Important text ex:  Strong
  3.  i - Italic text ex:  Italic
  4.  em - Emphasized text ex:  Emphasized
  5.  mark - Marked text  ex: Mark
  6.  small - Small text ex:  Small
  7.  del - Deleted text ex:  Delete
  8.  ins - Inserted text ex:  Inserted
  9.  sub - Subscript text ex:  X2
  10.  sup - Superscript text ex:  X2
  11.  u - underline text ex:  Underline


<title> LearnPHPonline </title>
 <b> bold text </b>
 <i> italic text </i>
 <strong> strong text </strong>
 <em> emphasized text </em>
 <mark> mark text </mark>
 <small> small text</small>
 <sub> subscript text </sub>
 <sup> superscript text </sup>
  <u> underline text </u>


What is the use of pre tag in HTML?

The HTML < pre> tag is used for indicating preformatted text. The code tag surrounds the code being marked up. Browsers normally render pretext in a fixed-pitched font, with whitespace intact, and without word wrap.

 109 total views,  2 views today