Cascading Style SHEETS for formatting and layout control CSS HTML HTML HTML HTML HTML
Why Use CSS? Consistency and standardization (W3C)W3C Additional and consistent control to look and layout of all web pages in a site SAVES TIME!!!Changes can be made to multiple pages through a single external source – SAVES TIME!!! Allows for more structurally sound code CSS HTML HTML HTML HTML HTML
Vocabulary Equivalents CSS HTML SelectorsSelectors DeclarationsDeclarations –Properties –Values SyntaxSyntax –{Curly Braces} –Colons : –No quotes –Semi-colons ; Elements/TagsElements/Tags DefinitionsDefinitions –Attributes –Values SyntaxSyntax – –Equal signs = –Quotes “ ” –Spaces
HTML Code CSS Code body {font-size: medium; font-family: verdana} Located in AREA WITHIN TAG Located in area within tag LINKED to outside CSS file in area in area within tag
Locations for CSS linkheadWithin a separate Notepad file with a.css extension then linked with a tag in the section of an HTML page headstyleWithin the area within a tag Embedded within a line of HTML code as a “style” attribute with declarations listed in one set of quotes
In Notepad, linked to HTML page <html><head> CSS Sample CSS Sample </head>
In the section <html><head> CSS Sample CSS Sample </head> Takes precedence over External CSS
Embedded in HTML code <html><head> CSS Sample CSS Sample </head><body> Sample text Sample text Takes precedence over External CSS AND CSS embedded in the section
CSS Online RESOURCES Creating Order from Chaos Creating Order from Chaos Webmonkey - CSS Resource Pages de/Webmonkey - CSS Resource Pages de/ de/ de/ Cascading Style Sheets Style Sheets The CSShark Answers FAQs The CSS Know-How Site CSShark Answers FAQs The CSS Know-How Site W3Schools CSS Samples CSS Samples
Read the introduction at WebMonkey nkey/reference/stylesheet_guide/ Yes…RIGHT NOW!!!
Go to the class agenda for today Click on the link within the item CSS Practice CSS Practice Read it NOW… …START it TODAY!!!
SAMPLE CSS