HTMLCombined

HTMLCombined - HTML Basics Copyright Ellis Horowitz...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: HTML Basics Copyright Ellis Horowitz 1999-2010 1 HTML HTML Basics Copyright Ellis Horowitz 1999-2010 2 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 browserse.g. Internet Explorer and Firefoxwhich interpret and display the output to the viewer HTML Basics Copyright Ellis Horowitz 1999-2010 3 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/ There is a draft of HTML 5 at the w3c: http://dev.w3.org/html5/spec/Overview.html HTML is controlled by the World Wide Web Consortium, W3C, located at http://www.w3.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/" HTML Basics Copyright Ellis Horowitz 1999-2010 4 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 HTML Basics Copyright Ellis Horowitz 1999-2010 5 Browser Output - Example 1 example1.html example1.txt HTML Basics Copyright Ellis Horowitz 1999-2010 6 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> HTML Basics Copyright Ellis Horowitz 1999-2010 7 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> HTML Basics Copyright Ellis Horowitz 1999-2010 8 Browsers Are Tolerant Browsers follow the rule of being tolerant of mistakes in the input They ignore markup they dont understand E.g. Internet Explorer/Firefox are tolerant browsers They do not insist that the HTML document begin...
View Full Document

This note was uploaded on 02/24/2011 for the course CSCI 571 at USC.

Page1 / 70

HTMLCombined - HTML Basics Copyright Ellis Horowitz...

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