How to Change the Text Style in HTML

Save

HyperText Markup Language (HTML) is a computer language used predominantly in web design. HTML code is interpreted by Internet browsers to display web page text, colors and images the same way across all computers. With basic HTML knowledge, you can manipulate text size, font and color, as well as insert images and links to make your web page more attractive and easier to navigate.

Text Size

  • Change text size by inserting the following code at the beginning of the word, sentence or paragraph you would like to alter: <font size=#>. Change the "#" symbol to the number that corresponds to your desired text size. In HTML, 1 is the smallest text size and 7 is the largest.

  • Change font color by inserting the following code at the beginning of the text you would like to alter: <font color="textcolor">. Change "textcolor" to your preferred color, such as red, green or blue.

  • Change font style by inserting the following code at the beginning of the text you would like to alter: <font face="fontstyle">. Replace "fontstyle" with a font name such as Arial, Times New Roman, Trebuchet, Comic Sans or Verdana.

  • Make a word, sentence or paragraph bold by inserting <b> at the beginning and </b> at the end.

  • Italicize text by inserting <i> at the beginning of a word, sentence or paragraph and </i> at the end.

Tips & Warnings

  • When changing the text color or font style, make sure to keep the quotation marks (" ") around the color or font name.

References

  • Photo Credit color word image by Lounatiq from Fotolia.com
Promoted By Zergnet

Comments

Resources

You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!