Chapter 6 summary

Chapter 6 summary - Must have the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Web Design Chapter 6 Review Standards and Compliance DocType definition: add this prior to the html tag to tell browser ;how to interpret the web page 4.01 Transitional Type <!DOCTYPE html PUBLIC “-//WC3//DTD//HTML 4.01 Transitional//EN” http://www.w3org/TR/tml4/loose.dtd ”> Use the W3C validator to check code. http://validator.w3.org Character encoding tells browser what kkind of characgters are being used on the page such as English, Chinese etc. Use a META tag to specifity the content type in the header: <meta http-equiv= “Content-Type” content=”text/html; charset=ISO-8859-1”> 4.01 Strict Type <!DOCTYPE html PUBLIC “-//w3c//dtd html 4.01//EN” http://www.w3.org/TR/html4/strict.dtd ”> Inline elements must be inside block elements
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Must have the &lt;html&gt; element Must start each page with DOCTYPE Only &lt;head&gt; and &lt;body&gt; go directly inside the &lt;html&gt; element. Everything else must go inside these two tags. Always have &lt;title&gt; inside the &lt;head&gt;element. The &lt;body&gt; can only have BLOCK ELEMENTS inside it (&lt;h1&gt; &lt;p&gt; &lt;blockquote&gt; etc. No block elements inside of inline elements. No block elements inside the &lt;p&gt; element Only &lt;li&gt; allowed in the &lt;ul&gt; or &lt;ol&gt; elements Inside the &lt;li&gt; you can up text, inline elements, or block elements Blockquote elements require one or more block elements inside it. Never next &lt;a&gt; inside an &lt;a&gt; Dont nest inline element in empty elements &lt;img&gt; Alt tags for images Must close all tags &lt;br /&gt;...
View Full Document

Ask a homework question - tutors are online