HTML Web Design Tutorial #11
Controlling Presentation with Internal Style Sheets
In part 10 we got our first look at using style in a web page. By using an attribute in some existing tags, we were able to affect the presentation of just those elements. Next, we will learn about the second method, by using an internal style sheet.
With an internal sheet, the rules for presentation will be listed at the top of the page inside of the head section. Those rules will then be referenced to particular elements in the web page by the use of a selector. The selector can reference all instances of a particular element, as in:
p {color: blue}
Which will make all text inside all p (paragraph) elements the color blue. Or instead, the selector can represent a particular named element, which we will learn more about coming up. To begin lesson #11, click on the play button below.
Tutorial Home | HTML Tutorial | Terms of Service | Privacy Policy | Site Map
Copyright © 2000-08 VisualTutorials.com. All rights reserved.
