XHTML - Part 2 - CGS 2585 Desktop/Internet Publishing...

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

View Full Document Right Arrow Icon
CGS 2585 (XHTML – Part 2) Page 1 © Dr. Mark Llewellyn CGS 2585: Desktop/Internet Publishing Spring 2011 XHTML – Part 2 – Basic Formatting Department of Electrical Engineering and Computer Science University of Central Florida Instructor : Dr. Mark Llewellyn [email protected] HEC 236, 407-823-2790 http://www.cs.ucf.edu/courses/cgs2585/spr2011
Background image of page 1

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

View Full DocumentRight Arrow Icon
CGS 2585 (XHTML – Part 2) Page 2 © Dr. Mark Llewellyn XHTML documents are comprised of a simple three-part framework: 1. Document prolog 2. Header section 3. Body of document. How XHTML Documents Are Structured <?xml version=“1.0” encoding=“UTF - 8” standalone=“no” ?> <!DOCTYPE html PUBLIC “ - //W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml/DTD/xhtml1 - strict.dtd”> <html xmlns=“http://www.w3/org/1999/xhtml”> <head> <title Strict XHTML Document </title> </head> <body> <!--- body of document goes here ---> </body> </html> Document prolog declarations The <html> root element Header information Open and close <body> tags, between which the main body of the document is contained XHTML Strict Document Framework On the course website (and WebCourses), I’ve placed a copy of an XTHML template file that you can use as the basis for all of your XHTML documents.
Background image of page 2
CGS 2585 (XHTML – Part 2) Page 3 © Dr. Mark Llewellyn • The elements that make up the framework of XHTML documents do not produce any output in a browser window. Instead, they provide information to the program about the document. • The elements that makeup the framework are: <html>, <head>, <title>, and <body>. We’ll look at each of these more closely. Document Framework Elements
Background image of page 3

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

View Full DocumentRight Arrow Icon
CGS 2585 (XHTML – Part 2) Page 4 © Dr. Mark Llewellyn The <html> element is the root element of an XHTML document, within which every other element in the document is contained (recall our discussion on nesting of elements). The document begins with the <html> start tag and ends with the </html> end tag. The header and body information of the document are contained in the root element. As you may have noticed in the template shown on page 2, the <html> start tag defines an attribute called xmlns with a value of http://www.w3.org/1999/xhtml . This attribute declares the XHTML namespace and is requires in all XHTML documents. If you omit it, it will be inserted automatically by the parser, however, it is recommended that you insert it into the document. The <html> Element
Background image of page 4
CGS 2585 (XHTML – Part 2) Page 5 © Dr. Mark Llewellyn The start <head> tag comes directly after the <html> start tag in an XHTML document. This element must be placed inside the <html> element. It contains information about the document that is mainly used by programs, such as keywords for search engines and link information that defines the relationship this document has to other documents. The
Background image of page 5

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

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

This note was uploaded on 07/16/2011 for the course CGS 2585 taught by Professor Llewellyn during the Spring '11 term at University of Central Florida.

Page1 / 37

XHTML - Part 2 - CGS 2585 Desktop/Internet Publishing...

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

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