HTML

Derek Bridge

Department of Computer Science,
University College Cork

HTML

Aims:

Markup languages

Types of markup

Elements, attributes and values

Elements we'll study in Induction

Character references

Empty elements

Void elements

Nested elements

Exercise

A student wants to produce this nested list:

But s/he writes this, which is wrong. Please fix it

<ul>
    <li>badgers</li>
    <li>wombats</li>	
        <ul>
            <li>common wombat</li>
            <li>hairy-nosed wombat</li>
        </ul>
    <li>squirrels</li>
</ul>

Comments

Multimedia content

Hierarchical structures: terminology

treenode
rootleaf
parentchild
ancestordescendant
sibling

The hierarchical structure of HTML documents

Exercise