A document type definition declares the HTML version. There are three HTML 4.01 DTDs: HTML 4.01 Strict DTD; HTML 4.01 Transitional DTD; and HTML 4.01 Frameset DTD. In this book we use HTML 4.01 Transitional. You don’t really need to know too much about the doctype, other than that it is good form to add this to an HTML document’s first line.
Example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
No comments:
Post a Comment