HTMLBasics-3

HTMLBasics-3 - HTML Copyright Ellis Horowitz 1999-2007 HTML...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Copyright Ellis Horowitz 1999-2007 1 HTML Basics HTML
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Copyright Ellis Horowitz 1999-2007 2 HTML Basics What is HTML Hypertext Markup Language (HTML) is a language in which one can describe: The display and format of text The display of graphics Pointers to other html files Pointers to files containing graphics, digitized video and sound Forms that capture information from the viewer HTML was developed by Tim Berners-Lee of CERN around 1990 HTML is understood by WWW browsers—e.g., Netscape, Internet Explorer and Firefox—which interpret and display the output to the viewer
Background image of page 2
Copyright Ellis Horowitz 1999-2007 3 HTML Basics Versions of HTML Version 0, 1990, was the original, minimum set of HTML Version 1 includes all Version 0 features plus highlighting and images Version 2, November, 1995, includes all Version 0 and Version 1 features, plus forms Version 3.2, January 1997, was released by WWW Consortium and included such features as tables HTML 4.01, December 1999, is the current draft of HTML; the document can be found at http://www.w3.org/TR/html401/ HTML is controlled by the World Wide Web Consortium, W3C, located at http://www.w3c.org NOTE: some of the examples shown here are extracted from the HTML4.0 specification. This document is copyrighted according to: "Copyright © World Wide Web Consortium. All Rights Reserved. http://www.w3.org/ Consortium/Legal/"
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Copyright Ellis Horowitz 1999-2007 4 HTML Basics An Example The nine planets of the solar system are mercury, venus, earth, mars, jupiter, saturn, uranus, neptune and pluto. The very nearest star is about 7,000 times farther away than pluto is to our sun. Save this file as example1.txt Save this file as example1.html
Background image of page 4
Copyright Ellis Horowitz 1999-2007 5 HTML Basics Browser Output - Example 1 example1.html example1.txt
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Copyright Ellis Horowitz 1999-2007 6 HTML Basics Example 2: Adding Some Markup <P>The nine planets of the solar system are <B>mercury, venus, earth, mars, jupiter, saturn, uranus, neptune and pluto.</B></P> <P>The very nearest star is about <I>7,000</I> times farther away than pluto is to our sun. </ P>
Background image of page 6
Copyright Ellis Horowitz 1999-2007 7 HTML Basics General Structure HTML documents have a head and body head should contain a title body may have paragraphs A leading line indicates which version of HTML this document conforms to <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <HTML> <HEAD> <TITLE>The Solar System</TITLE> </HEAD> <BODY> <P>The nine planets of the solar system are. .. </BODY> </HTML>
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Copyright Ellis Horowitz 1999-2007 8 HTML Basics Browsers Are Tolerant Browsers follow the rule of being tolerant of mistakes in the input They ignore markup they don’t understand Netscape Navigator/Microsoft Internet Explorer are tolerant browsers They do not insist that the HTML document begin and end with <HTML> <HEAD> and/or <BODY> tags are not required But, there is no guarantee that this behavior will be the same for all browsers
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/27/2008 for the course CSCI 571 taught by Professor Papa during the Fall '07 term at USC.

Page1 / 45

HTMLBasics-3 - HTML Copyright Ellis Horowitz 1999-2007 HTML...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online