Web Development

Dr Derek Bridge
School of Computer Science & Information Technology
University College Cork

Lecture Objectives

  • learn how to create links within a web page
  • learn that an HTML web page is a tree of elements

Page Jumps

A page jump is where the user clicks a link and she is moved to somewhere else within the same page.

scheme://host:port/pathname?query#fragment

The id Attribute

  • Some attributes only apply to certain elements (e.g. src with img).
  • Others, like id, are global, i.e. they apply to all elements (e.g. lang).
  • You can invent the id attribute's value, but it should be unique within the document, e.g.:
    
    <section id="education">

Example Page Jumps

Hierarchichal Structure

Because elements are nested, web pages have a hierarchical structure.

Terminology:
tree
node
root    leaf
parent    child
ancestor    descendant
sibling

Hierarchichal Structure

G'luck!