• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 7. Building a Tour Price Calculat... > Creating and Applying a Custom CSS C...

Creating and Applying a Custom CSS Class

Making the error message more conspicuous is a matter of presentation. In XHTML, you should use CSS for presentation-related controls. XHTML has built-in styles for headings, body text, lists, and so forth, but XHTML lacks an <errormessage> tag that you can redefine with CSS. Fortunately, CSS enables developers to create custom styles, which can be applied to standard XHTML elements, such as the <p> tag.

In this task, you will create a custom CSS style, also called a class, just for error messages.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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