CHAPTER 3 WEB VOCABULARIES text-align: center; }

CHAPTER 3 WEB VOCABULARIES text-align: center; } hr { width: 100%; } .centered { text-align: center; } .footer{ text-align: center; } The declarations redefine the

,

, and
elements and create classes called centered and footer. I ll explain CSS in more detail in Chapter 5. You can change the look of the web page easily by modifying the CSS. If you apply the same stylesheet to multiple pages, you can update all pages at once by making changes. Figure 3-2 shows the same web page with a modified style sheet. Figure 3-2. A revised presentation of the marsstrict.htm file You can find these files saved as marsstrict2.htm and styles2.css. The stylesheet tells the browser to set the sizes and colors for the

and

elements. It also changes the font for the entire page and defines a color for the
element. The two classes centered and footer inherit the default font and center the text. The footer class uses a smaller font size.
We recommend high quality webhost to host and run your jsp application: christian web host services.

Leave a Reply