[http://creativecommons.org/licenses/by/3.0/]
This work is licensed under a CC
Attribution 3.0 Unported License [http://creativecommons.org/licenses/by/3.0/]
The Hypertext Markup Language (HTML) is the most important content type on the Web. Modern browsers are expected to support HTML, CSS for styling the content of a HTML page, and scripting so that server-supplied scripting code can run in the browser, update the HTML and/or CSS, and interact with the user or the browser. This lecture presents an overview of how the building blocks of HTML, CSS, DOM, and scripting fit together to provide Web applications with a standardized and robust platform.
<!-- Unordered Lists (UL) bullet styles --> <!ELEMENT UL - - (LI)+ -- unordered list --> <!ATTLIST UL %attrs; -- %coreattrs, %i18n, %events -- >
<!ELEMENT LI - O (%flow;)* -- list item --> <!ATTLIST LI %attrs; -- %coreattrs, %i18n, %events -- >
<!ENTITY % flow "%block; | %inline;">
<!ENTITY % block "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT | BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">
██ Internet Explorer (59.21%)
██ Mozilla Firefox (28.29%)
██ Chrome (5.02%)
██ Safari (4.54%)
██ Opera (1.68%)
██ Other (1.26%)
<head> <title>CSS Usage</title> <link href="http://dret.net/dretnet.css" rel="stylesheet" type="text/css"/> <style type="text/css"> li { color : red } </style> </head> <body> <p>some text in a paragraph..</p> <ol> <li>an ordered list's first item</li> <li style=" text-decoration : underline ">and the second one</li> </ol>
fixing them
for (var ti=0;ti<document.links.length;ti++) { var lnk = document.links[ti]; if ( lnk.title ) { lnk.setAttribute("nicetitle",lnk.title); lnk.removeAttribute("title"); addEvent(lnk,"mouseover",showNiceTitle); addEvent(lnk,"mouseout",hideNiceTitle); addEvent(lnk,"focus",showNiceTitle); addEvent(lnk,"blur",hideNiceTitle); } }
extensionsto the basic DOM model