Hypertext Markup Language (HTML)

Information Systems and the World Wide Web

International School of New Media
University of Lübeck

Erik Wilde, UC Berkeley School of Information
2007-01-03
Creative Commons License

This work is licensed under a Creative Commons
Attribution-NonCommercial-ShareAlike 2.5 License.

Abstract

The Hypertext Markup Language (HTML) is the language for providing Web content. It is based on the idea of structuring content, while the layout should be controlled using stylesheet languages. HTML document have a document head which allows HTML documents to contain document metadata. One of the most important tasks of HTML is to serve as an interface for data input for Web-based applications. This can be done by using HTML Forms.

Creating HTML

Web Design Today

HTML Alternatives

Outline (Unicode)

  1. Unicode [9]
  2. HTML Document Head [7]
  3. Language Identification [2]
  4. HTML Forms [15]
  5. HTML and XHTML [6]

Characters and Computers

Characters

Character. (1) The smallest component of written language that has semantic value; refers to the abstract meaning and/or shape [...]

The Unicode Standard, Version 4.0, Addison-Wesley, 2003

Glyphs

[A Glyph is] a recognizable abstract graphic symbol which is independent of a specific design.

ISO/IEC 9541:1991, Information Technology – Font Information Interchange

Unicode

Unicode Character Count

Unicode Encodings

AאChinese ideograph meaning 'stump of tree'
Code pointU+0041U+05D0U+597DU+233B4
UTF-841D7 90E5 A5 BDF0 A3 8E B4
UTF-1600 4105 D059 7DD8 4C DF B4
UTF-3200 00 00 4100 00 05 D000 00 59 7D00 02 33 B4

UTF-8

Other UTFs

Character Set Identification

Outline (HTML Document Head)

  1. Unicode [9]
  2. HTML Document Head [7]
  3. Language Identification [2]
  4. HTML Forms [15]
  5. HTML and XHTML [6]

HTML Document Structure

HTML Metadata

Document Title

Metadata

Links

Document Relationships

External Stylesheets

Outline (Language Identification)

  1. Unicode [9]
  2. HTML Document Head [7]
  3. Language Identification [2]
  4. HTML Forms [15]
  5. HTML and XHTML [6]

Language Specification

HTTP Language Specification Issues

Outline (HTML Forms)

  1. Unicode [9]
  2. HTML Document Head [7]
  3. Language Identification [2]
  4. HTML Forms [15]
  5. HTML and XHTML [6]

HTTP Web Services

Forms Mechanics

Forms Markup

Forms Elements (User View)


Text:
Password:
Checkbox:
Radio Button:
Submit:
File Upload:
Text Areas:
Selection:
Multiple Selection:

Forms Elements (Source View)

<form action="http://stevex.net/dump.php" method="POST" enctype="multipart/form-data"><table>

<tr><td>Text:</td><td><input type="text" name="text" value="text input"/></td></tr>

<tr><td>Password:</td><td><input type="password" name="password" value="hidden text"/></td></tr>

<tr><td>Checkbox:</td><td><input type="checkbox" name="check" value="1"/> <input type="checkbox" name="check" value="2"/> <input type="checkbox" name="check" value="3"/></td></tr>

<tr><td>Radio Button:</td><td><input type="radio" name="radio" value="1"/> <input type="radio" name="radio" value="2"/> <input type="radio" name="radio" value="3"/></td></tr>

<tr><td>Submit:</td><td><input name="submit" type="submit"/></td></tr>

<tr><td>File Upload:</td><td><input name="file" type="file"/></td></tr>

<tr><td>Text Areas:</td><td><textarea name="textarea" rows="2" cols="20"/></td></tr>

<tr><td>Selection:</td><td><select name="select"><option selected="selected">XML</option><option>SGML</option></select></td></tr>

<tr><td>Multiple Selection:</td><td><select name="mselect" multiple="multiple"><option>242</option><option>290-3</option><option>290-13</option></select>

</table></form>

Forms and GET

HTTP POST

Forms and POST

Processing of Form Data

Query Parameter Test:
<?php
import_request_variables("gP", "form_");
echo $form_test;
?> 

Structuring Forms

Labels

<tr><td>Text:</td><td><input type="text" name="text"/></td></tr>
<tr><td>Password:</td><td><input type="password" name="password"/></td></tr>
<tr>
<td><label for="textctrl">Text:</label></td>
<td><input type="text" name="text" id="textctrl"/></td>
</tr>
<tr>
<td><label for="pwdctrl">Password:</label></td>
<td><input type="password" name="password" id="pwdctrl"/></td>
</tr>

Fieldsets

<fieldset><legend>Billing</legend>billing form controls...</fieldset>
<fieldset><legend>Shipping</legend>shipping form controls...</fieldset>
Billingbilling form controls...
Shippingshipping form controls...

Tabbing in Forms

Disabled and Readonly Controls

Disabled and Readonly Controls Display

Normal Control Disabled Control Readonly Control
Text:
Password:
Checkbox: !
Radio Button: !
File Upload: !
Text Areas:
Selection:[ not supported ]
Multiple Selection:

Outline (HTML and XHTML)

  1. Unicode [9]
  2. HTML Document Head [7]
  3. Language Identification [2]
  4. HTML Forms [15]
  5. HTML and XHTML [6]

HTML and XML

Transforming HTML to XHTML

Transforming XHTML to HTML

XHTML 1.0

XHTML 1.1

XHTML 2.0

HTML as Information