cis 1315 – web development for educators cis 1315 html tutorial 9: working with xhtml

11
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML

Upload: damian-walters

Post on 29-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML

CIS 1315 – Web Development for Educators

CIS 1315

HTMLTutorial 9: Working With XHTML

Page 2: CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML

CIS 1315 – Web Development for Educators

Document Type Definition (DTD)

Content & Structure Rules Transitional

Supports: Presentational Features of HTML Deprecated Elements Deprecated Attributes

Strict No Support For:

Presentational Features of HTML Deprecated Elements Deprecated Attributes Frames

Page 3: CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML

CIS 1315 – Web Development for Educators

Well-formed Documents

Page 4: CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML

CIS 1315 – Web Development for Educators

Well-formed Documents

Page 5: CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML

CIS 1315 – Web Development for Educators

Well-formed Documents

Prohibited Attributes

Page 6: CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML

CIS 1315 – Web Development for Educators

Well-formed Documents

Required Attributes

Page 7: CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML

CIS 1315 – Web Development for Educators

Well-formed Documents

Use Correct Structure

XHTML

html

head

title

body

Page 8: CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML

CIS 1315 – Web Development for Educators

<?xml>

Indicates Document Adheres to XML

Attributes

version=“value”

encoding=“type”

Indicates Character Set

standalone=“yes | no”

DTD Within Document

<?xml version=“1.0” encoding=“UTF-8” standalone=“no” ?>

Page 9: CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML

CIS 1315 – Web Development for Educators

<!DOCTYPE>

Indicates what DTD is Associated with Document

XHTML Transitional<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

XHTML Strict<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Page 10: CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML

CIS 1315 – Web Development for Educators

Namespace Attribute

Attribute of <html>

Unique Identifier of a Particular Document Type

XHTML

<html xmlns="http://www.w3.org/1999/xhtml">

Page 11: CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML

CIS 1315 – Web Development for Educators

Validation

http://validator.w3.org

Indicates Whether Page is XHTML Valid

http://jigsaw.w3.org/css-validator/

Indicates Whether Page is CSS Valid