Formatting text using HTML

Formatting text in simple language is to modify the appreciated of text so as to make it more appealing.
There are various ways in which text can be formatted and for each kind of formatting there are corresponding formatting tags. We shall see all the ways in the which text can be formatted.

Here we shall stick to HTML. These days CSS is used for formatting text. We shall see that is css tutorials.

Bold, Italicize, Underline

  • Bold, Italicize, Underline
  • Above line shows the effect of each kind of formatting.
  • To give BOLD effect <B> tag is used.
  • To make text italicize <I> tag is used.
  • To underline text <U> tag is used.
See video below to see how it actually works.

Change the font size

This can be done is two ways:
  • Change size of particular section of page.
  • Change size of entire page.

Change size of particular section of page.
  • We use size attribute to do this function.
  • <font size="?"> text text text </font>. 
  • ? is replaced by digit from 1 to 7 according to requirement.
  • See video below.
Change size of all the font on entire page.

  • Type <BASEFONT SIZE=”?”> at the top of your Web page text, replacing ? with a size you want from 1 to 7.
  • Note that this would not affect heading <hx> tags.
  • See video below!

No comments:

Post a Comment