How to Style Text With HTML

By eHow Computers Editor

Rate: (0 Ratings)

HTML, or Hypertext Mark-up Language, has been around for years and is the basis for most web programming. Although other languages are being added to supplement, and in some cases take over, HTML is the basic tool for web page design. One essential function of HTML is to style text. Text added to HTML is styled by the use of certain "tags" enclosed in brackets. Read on to learn how to style text with HTML.

Instructions

Difficulty: Moderate

Step1
Go to a portion of your website code where you want to add text.
Step2
Before you add text, choose a font and use the font tag, for example: < font = "Courier" >
Step3
Add a font size, for example: < font size = 24 >
Step4
Add the color you want your text to be, for example: < font color = "red" >. Keep in mind the color of your background: black text on black or white on white will not show up at all to the reader.
Step5
Add text styles: < b > for bold, < i > for italic and so on.
Step6
Go back to page preview to check that the text loaded properly. If it is not right, get back into the code and change it.
Step7
When finished with the text that you want styled, close your style commands with an HTML tag containing a backslash, for example < /b > to end bold text.

Tips & Warnings

  • Due to formatting restrictions, the HTML tags shown here have spaces between the brackets and the characters next to them. In your code, there shouldn't be any spaces there.

Post a Comment

POST A COMMENT

Request a New How-To Article

Looking for more How To information? Chances are there’s an eHow member who knows how to do what you’re looking to do. Submit an article request now!

eHow Article:  How to Style Text With HTML

eHow Computers Editor

eHow Computers Editor

Category: Computers

Articles: See my other articles

Related Ads