gg-6 - Understanding CSS R: 4-6-11 dd 1. Introduction...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Understanding CSS R: 4-6-11 dd 1. Introduction Default formats. The World Wide Web Consortium has developed a default format for each HTML tag. These formatting rules are included in web browsers, so that when a tag is interpreted (rendered) in the browser, it displays in a predictable fashion. Tags with formatting options. Many tags also include formatting options. For example, consider the HTML <body> tag. This tag lets you define a background color or add a background image. It also lets you set text color and link color. As another example, for the <h1> tag, you may want to change its color, size, font, boldness, etc. These are just two of many HTML tags where you may want to change formats to suit your taste. Multi-page websites. Most websites have multiple pages. Without CSS, this can lead to pages that are difficult to maintain. For example, consider a scenario where a website includes four HTML pages—and assume that you want to change formatting in the <body> tag and the <h1> tag for all four pages. You could apply formatting to those tags in each page. This is both tedious and time consuming. CSS gives you a better way. You can create a CSS file that specifies
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

gg-6 - Understanding CSS R: 4-6-11 dd 1. Introduction...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online