120 likes | 220 Views
Fundamentals of HTML, XHTML, CSS. Languages of the web. Languages. HTHL, XHTML and CSS HTML documents use .html or . htm extension Markup tags define content on HTML page. Placed between < and > symbols <h1>New Smoothie Recipe!</h1> entire line of code is known as an element
E N D
Fundamentals of HTML, XHTML, CSS Languages of the web
Languages HTHL, XHTML and CSS HTML documents use .html or .htm extension Markup tags define content on HTML page. Placed between < and > symbols <h1>New Smoothie Recipe!</h1> entire line of code is known as an element Review page 57 in box
W3C XHTML syntax is more strict XHTML all tags in lower case XHTML requires close tag example <br> line break <br /> closes XTHML requires proper nesting example<h1>Smoothies are <em>great!</em><h1> Doctype lets the browser know what to expect <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”http://www.w3.org/TR/htm14/loose.dtd>
W3C page validation http://validator.w3.org Click validate non compliant and compliant docs in lesson 4 Open the same docs you just checked in browser –discussion-
HTML Structure • Nested structure of HTML documents <html> <body> </body> </html> <html> <body> Nobody knows who invented smoothies, but the world wouldn’t be the same without them! </body> </html>
HTML <html> <head> </head> <body> Nobody knows who invented smoothies, but the world wouldn’t be the same without them! </body> </html>
HTML <html> <head> </head> <body> <p>Nobody knows who invented smoothies, but the world wouldn’t be the same without them!</p> </body> </html> Follow along with the lesson on the bottom of page 62 of our text. Let’s do it together.
Placing Images in HTML To add images use the <img> tag Follow instructions starting on the top of page 64 to add an image to the file we have been working on
CSS Styling a heading Perhaps one of the best ways to begin thinking about how CSS works is to consider how the default style of this heading is rendered in the browser. Follow the changes in the book on page 67 Understanding class styles and <span>s Follow along with chages in book on page 70
CSS Creating a new external style sheet Follow along the exercise in the book on page 72