Lecture 12 - CNIT 17600 IT Architectures Extensible HTML...

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

View Full Document Right Arrow Icon
1 CNIT 17600 IT Architectures Extensible HTML Some Terminology Clarifications Tags are technically called elements Tag options are technically called attributes <img src =“/images/pic.jpg” /> 2 Element Attribute Value
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 What is XHTML? XHTML = e X tensible HyperText Markup Language Relatively close to HTML 4.0 Is based on XML, which requires wellformedness Stricter, cleaner version of HTML Can be used in both HTML and XML environments XHTML is meant to do away with “bad code” that basic HTML parsers tolerate 3 The Good News XHTML uses most of the same tags that HTML does If you’re familiar with HTML, learning XHTML isn’t tough XHTML documents can be parsed by HTML readers E.g., older browsers 4
Background image of page 2
3 The Bad News XHTML enforces rules that are “optional” in HTML HTML is lenient of “bad code” Requires the use of several definitions to specify the XHTML rules for the document Unlike HTML, XHTML is case sensitive 5 The New Rules XHTML enforces the following rules Elements and attributes must be in lower case <img SRC=“picture.jpg”> <img src =“picture.jpg”> Attribute values must be quoted <img src=picture.jpg> <img src =“picture.jpg”> 6 Not Allowed Allowed
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 The New Rules (cont.) XHTML enforces the following rules Elements must be properly nested <b><i>Bold and italic content</b></i> <b><i>Bold and italic content</i></b> ALL elements (even singles) must be closed
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/30/2012 for the course CNIT 176 taught by Professor Hansen during the Fall '09 term at Purdue University-West Lafayette.

Page1 / 11

Lecture 12 - CNIT 17600 IT Architectures Extensible HTML...

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

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