|
home—lects—hws
D2L—breeze (snow day)
xhtml html5 TAGS: must balance/close? yes not all (p, li, ...) self-closing allowed? yes not for possibly non-EMPTY case-sensitive? yes no; prefer lower (* html4: prefer upper) (others:) div dummy block-level (same) span dummy inline-level (same) content vs display content only display deprecated; use css (i vs em, b vs strong) ATTRS: quotes around val? yes boolean vals omittable (* pre-html4: quotes optional) boolean-attrs val="" can omit the value (just have attr-name) val="val" (globals:) id yes (same) name forms only (deprecated, for href #) class link w/ css style override any css href in any tag(!) in `a` only (and, in `link`: stylesheets only) ENTITIES: lt gt amp quot apos mdash hellip larr alpha deg and others also numeric: hex, dec A and A (both represent the letter 'A')
HTML5 is most interestingly (just) some definition/structrual changes to HTML4.
But it also is commonly used to indicate new tags (e.g. media),
and/or related CSS technology (e.g. animated/spinning elements, browser-hints on autofill).
See: xhtml.com/en/future/x-html-5-versus-xhtml-2/.
home—lects—hws
D2L—breeze (snow day)
©2014, Ian Barland, Radford University Last modified 2014.Feb.17 (Mon) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |