1 / 12

Fundamentals of HTML, XHTML, CSS

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

meira
Download Presentation

Fundamentals of HTML, XHTML, CSS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Fundamentals of HTML, XHTML, CSS Languages of the web

  2. 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

  3. 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>

  4. 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-

  5. Other Benefits of Standards

  6. 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>

  7. HTML <html> <head> </head> <body> Nobody knows who invented smoothies, but the world wouldn’t be the same without them! </body> </html>

  8. 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.

  9. 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

  10. The Role of CSS

  11. 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

  12. CSS Creating a new external style sheet Follow along the exercise in the book on page 72

More Related