Dreamweaver Tutorial 4: Tag, Class, and ID Selectors in CSS

In this tutorial I describe the difference between tag selectors, class selectors, and ID selectors in CSS. Using an HTML example in Dreamweaver, I show how CSS style selectors of different types can be used and when they should be used. A tag selector is used to change all instances of a particular tag, such as all p tags. Class selectors allow you to change some, but not all instances of a tag. An ID selector is used for unique elements and should only be used on one tag in the entire HTML document. Examples of using each type of selector is given. The syntax of each type of selector is described. For tag selectors the name of the tag is used to represent the CSS rule. For class selectors a period is used followed by a name. For ID selectors a pound sign is used followed by a name. HTML

It's only fair to share...Tweet about this on TwitterShare on FacebookShare on TumblrShare on Google+Digg thisShare on LinkedInPin on PinterestShare on VKShare on RedditPrint this pageEmail this to someone
Flattr the authorShare on StumbleUponShare on YummlyBuffer this page

Leave a Reply

Your email address will not be published. Required fields are marked *