• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Defining Text Styles

Although you can define both the appearance and the position of objects in an HTML page, the majority of CSS styles you create will affect the appearance of text in your Web site. HTML does not give developers much control over text attributes such as font face, font size, and line height. Using CSS styles enables you to have better control over the way text appears on the page.

Defining Text Styles by Redefining HTML Tags

All the body text in the online learning application is contained within paragraph tags (<p>). You can create a CSS style to redefine the <p> tag to format all the body text in the course. In this style, you’ll set the font size and font color of any text contained in a paragraph. The text inside <p> tags will use the font face you defined earlier in the <body> tag redefinition style, as will all the text on the page.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint