cis 1315 – web development for educators cis 1315 html tutorial 9: working with xhtml
TRANSCRIPT
CIS 1315 – Web Development for Educators
CIS 1315
HTMLTutorial 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
CIS 1315 – Web Development for Educators
Well-formed Documents
CIS 1315 – Web Development for Educators
Well-formed Documents
CIS 1315 – Web Development for Educators
Well-formed Documents
Prohibited Attributes
CIS 1315 – Web Development for Educators
Well-formed Documents
Required Attributes
CIS 1315 – Web Development for Educators
Well-formed Documents
Use Correct Structure
XHTML
html
head
title
body
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” ?>
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">
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">
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