HyperText Markup Language (HTML)

Web Architecture and Information Management [./]
Summer 2011 — INFO 153 (CCN 42509)

Erik Wilde, Dilan Mahendran, and Brad Andrews, UC Berkeley School of Information
2011-07-11

Creative Commons License [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/]

Contents Erik Wilde, Dilan Mahendran, and Brad Andrews: HyperText Markup Language (HTML)

Contents

Erik Wilde, Dilan Mahendran, and Brad Andrews: HyperText Markup Language (HTML)

(2) Abstract

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, and we discuss how to leverage such layout styling during the CSS lecture.



Erik Wilde, Dilan Mahendran, and Brad Andrews: HyperText Markup Language (HTML)

(3) Administrative Details



Erik Wilde, Dilan Mahendran, and Brad Andrews: HyperText Markup Language (HTML)

(4) Structured Documents on the Web



HTML Validation

Outline (HTML Validation)

  1. HTML Validation [4]
  2. HTML and Structure [12]
  3. Conclusions [1]

(6) Checking for Correctness

<!-- 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">


(7) Tool-Based Validation



(8) Web-Based Validation



(9) Firebug & Web Inspector

Firebug

HTML and Structure

Outline (HTML and Structure)

  1. HTML Validation [4]
  2. HTML and Structure [12]
  3. Conclusions [1]

(11) Text



(12) More Advanced Text



(13) Lists

  <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>


(14) Tables

  <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>


(15) Merging Table Cells

HTML Table with Merged Cells

(16) Merging Rows

  <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>


(17) Merging Columns

  <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>


(18) Links



(19) Images

<img src="../img/portrait.png" alt="Portrait">


(20) Image Details



(21) Discussion: Web page structure in practice



(22) A peek into the future: HTML5



Conclusions

Outline (Conclusions)

  1. HTML Validation [4]
  2. HTML and Structure [12]
  3. Conclusions [1]

(24) HTML Matters



Erik Wilde, Dilan Mahendran, and Brad Andrews: HyperText Markup Language (HTML)

(25) Administrative Details



2011-07-11 Web Architecture and Information Management [./]
Summer 2011 — INFO 153 (CCN 42509)