110 likes | 314 Views
CIS 1315. HTML Tutorial 9: Working With XHTML. 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
E N D
CIS 1315 HTMLTutorial 9: Working With XHTML
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
Well-formed Documents • Prohibited Attributes
Well-formed Documents • Required Attributes
Well-formed Documents • Use Correct Structure • XHTML • html • head • title • body
<?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” ?>
<!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">
Namespace Attribute • Attribute of <html> • Unique Identifier of a Particular Document Type • XHTML <html xmlns="http://www.w3.org/1999/xhtml">
Validation • http://validator.w3.org • Indicates Whether Page is XHTML Valid • http://jigsaw.w3.org/css-validator/ • Indicates Whether Page is CSS Valid