


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



CSS - Cascading Style Sheets control the appearance and placement of HTML elements on a page. selector - The part of a CSS rule which specifies which element(s) are to be styled. declaration - Property name and value separated by a colon and terminated with a semicolon, for example... Font-family: sans serif; property - The part of a CSS rule which specifies WHICH TYPE of modification to apply to HTML elements. value - The part of the CSS rule which specifies HOW the property/attribute will be modified ID Selector - A selector that identifies only ONE element within an HTML document. Preceded by a # sign. Class Selector - A selector that applies the same attribute to MULTIPLE HTML elements that reference it. Preceded by a. (period). Syntax - Arrangement of words and symbols in a language. Inline CSS Style - CSS coded IN THE BODY of the HTML code as a STYLE ATTRIBUTE in an HTML tag. Limited to styling one element at a time. Internal CSS Style - CSS coded in the HEAD of the HTML code inside of tags. Limited to that one HTML page. (also known as embedded)
External Style Sheet - CSS coded in a SEPARATE CSS FILE that controls the formatting of elements on any web page that links to the .css file. Rule - A complete CSS style statement: selector, property, and value. Properties REQUIRED to make a border - Style is required (width and color are optional) Property used to change the color of text - Color Property used to fill a div or change the color behind your content
Practice: To the H1 inside of the element panelA: Set the border width to 10 px but override the bottom width to 3px - Practice: panelA h1 { border-style: solid; border-width: 10px; border-bottom-width: 3px; }