Presentation is loading. Please wait.

Presentation is loading. Please wait.

Cascading Style SHEETS for formatting and layout control CSS HTML HTML HTML HTML HTML.

Similar presentations


Presentation on theme: "Cascading Style SHEETS for formatting and layout control CSS HTML HTML HTML HTML HTML."— Presentation transcript:

1 Cascading Style SHEETS for formatting and layout control CSS HTML HTML HTML HTML HTML

2 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

3 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

4 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

5 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

6 In Notepad, linked to HTML page <html><head> CSS Sample CSS Sample </head>

7 In the section <html><head> CSS Sample CSS Sample </head> Takes precedence over External CSS

8 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

9 CSS Online RESOURCES Creating Order from Chaos Creating Order from Chaos Webmonkey - CSS Resource Pages http://hotwired.lycos.com/webmonkey/reference/stylesheet_gui de/Webmonkey - CSS Resource Pages http://hotwired.lycos.com/webmonkey/reference/stylesheet_gui de/ http://hotwired.lycos.com/webmonkey/reference/stylesheet_gui de/ http://hotwired.lycos.com/webmonkey/reference/stylesheet_gui de/ Cascading Style Sheets http://www.webreference.com/authoring/style/sheets/Cascading Style Sheets http://www.webreference.com/authoring/style/sheets/ http://www.webreference.com/authoring/style/sheets/ The CSShark Answers FAQs The CSS Know-How Site http://www.mako4css.com/The CSShark Answers FAQs The CSS Know-How Site http://www.mako4css.com/ http://www.mako4css.com/ W3Schools CSS Samples http://www.w3schools.com/css/css_examples.aspW3Schools CSS Samples http://www.w3schools.com/css/css_examples.asp http://www.w3schools.com/css/css_examples.asp

10 Read the introduction at WebMonkey http://hotwired.lycos.com/webmo nkey/reference/stylesheet_guide/ Yes…RIGHT NOW!!!

11 Go to the class agenda for today Click on the link within the item CSS Practice CSS Practice Read it NOW… …START it TODAY!!!

12 SAMPLE CSS


Download ppt "Cascading Style SHEETS for formatting and layout control CSS HTML HTML HTML HTML HTML."

Similar presentations


Ads by Google