CSS video tutorial – 6 – CSS Embedded Styles (style tag)

Embedded Style: Styles that are placed within the style tag are called embedded styles. We use style tag to place embedded styles. Declaration block: is used to group declarations separated by semicolon in one block, so that more than one styles can applied on a selected element or more than one selected elements. { color:white; // declaration of style rule 1 background-color:black; // declaration of style rule 2 font-size:24pt; // declaration of style rule 3 } Selector: is a string used to select an element or more than one elements to which we want to apply group of style rules. selector { color:whte; background-color:black; font-size:24pt; } p { color:whte; background-color:black; font-size:24pt; } Types of selectors: tag selector, class selector, id selector, and context

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 *