CS1115/CS5002

Web Development 1

Dr Derek Bridge

School of Computer Science & Information Technology

University College Cork

Background: Unix file systyems

Background: Unix file systyems

 

Relative pathnames

Absolute URLs and relative URLs

Using absolute and relative URLs

External link

Internal link

Class exercise

User web sites

Linking to a point in a web page

The id attribute

URL fragments

Example

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>A Long Page</title>
    </head>
    <body>
    
        <h1 id="top">A Long Page</h1>
        
        <!-- Lots and lots and lots of paragraphs and other content here! -->
        
        <a href="#top">Go to top</a>
        
    </body>
</html>