[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. This lecture covers a basic overview of how to use HTML markup in general. In particular, we look at page titles, meta tags, inserting text and images, using lists, and creating simple tables. Attributes can be used for more layout control in the HTML tags, but most layout issues are deferred until the CSS lecture.
just text
<!-- 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">
view source)
brain-based rendering
phrase markup[http://www.w3.org/TR/REC-html40/struct/text.html#h-9.2.1])
quoted text(
try)nestingquotes
code examples
pointing to the source
<br/> <pre>This is some text that will not be wrapped because of pre's default behavior, at least in most browsers.</pre> <br/> <pre class="wrap">This is some text that will be wrapped because of pre's overriden behavior, at least in most browsers.</pre> <br/>
<dl> <dt>Unordered Lists</dt> <dd> <ul> <li>Unordered lists contain just lists of items</li> <li>Itemization symbols are chosen by the browser</li> </ul> </dd> <dt>Ordered Lists</dt> <dd> <ol> <li>Ordered lists contain ordered lists of items</li> <li>The numbering scheme is chosen by the browser <ol> <li>Lists may be nested as deeply as required</li> </ol> </li> </ol> </dd> </dl>
<table> <tr> <th>Date</th> <th>Topic</th> </tr> <tr> <td>2009-01-28</td> <td><a href="../html-basic">HTML Basics</a></td> </tr> <tr> <td>2009-02-02</td> <td><a href="../html-advanced">Advanced HTML</a></td> </tr> </table>
empty
<table> <tr> <th>Date</th> <th>Topic</th> </tr> <tr> <td>2009-03-23</td> <td rowspan="2">Spring<br>Break</td> </tr> <tr> <td>2009-03-25</td> </tr> </table>
empty
<table> <tr> <th>Date</th> <th colspan="2">Resources</th> </tr> <tr> <td>2009-01-28</td> <td><a href="../html-basic">HTML Basics</a></td> <td><a href="../2009-01-28-html-basic.pdf">PDF</a></td> </tr> <tr> <td>2009-02-02</td> <td><a href="../html-advanced">Advanced HTML</a></td> <td><a href="../2009-02-02-html-advanced.pdf">PDF</a></td> </tr>
hypertextfor linked content
part of the Web
<img src="../img/portrait.png" alt="Portrait">
<a href="http://www.berkeley.edu" title="UC Berkeley">UCB</a>
http:
points to resources available on Web servershttps:
is the same but uses encrypted connections/
and ..