HTML 1 Week 4 Review Week of Consolidation . You had already mastered: . The web page template . The basic elements - html, head, title, body . Simple text formatting elements - p, h1-6 . Links - a . The ability to validate your web pages (well, maybe not "mastered") New Elements . Inline elements . em . strong . br . q . Block elements . pre . hr . blockquote . ol . ul . li Block vs. Inline . All inline elements (including text) MUST be contained within a block element. . Most block elements CANNOT be located within another block element, but there are exceptions: . blockquote (like the body tag) requires block elements directly inside it . lists (ol and ul) can contain only li elements . li can contain block, inline, or text elements DOCTYPE . Tells browser (and validator) which version of HTML is being used . We use the current highest standard - XHTML 1.0 Strict . This standard avoids problem of browser deciding to render a web page according to its own quirky set of rules and will work best on hand-held devices Strict XHTML Standards . use appropriate DOCTYPE and html attributes . elements are written lower case . elements are closed . É - element pairs .
- empty elements . all attributes have a value that appears within quotes (most say double, but single will work) . Home . all elements are properly nested - FILO