0% found this document useful (0 votes)
22 views

Tutorial No: 02: URL-The URL of The Link

The document discusses character entities, hyperlinks, and CSS. It defines hyperlinks as connections between web pages using the <a> tag and href attribute. The href attribute can specify an absolute, relative, or fragment URL, or JavaScript. It also provides examples of linking between pages in a website folder structure using relative URLs. CSS is used to style web pages, and can be applied via internal, external, and inline styling through selectors like classes and IDs.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Tutorial No: 02: URL-The URL of The Link

The document discusses character entities, hyperlinks, and CSS. It defines hyperlinks as connections between web pages using the <a> tag and href attribute. The href attribute can specify an absolute, relative, or fragment URL, or JavaScript. It also provides examples of linking between pages in a website folder structure using relative URLs. CSS is used to style web pages, and can be applied via internal, external, and inline styling through selectors like classes and IDs.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Tutorial No: 02

1.
2.
3.
4.
5.

What are the character entities? Why we use character entities?


What is a hyperlink?
When we use hyperlinks in HTML pages?
Define target attribute values of the anchor tag and describe one by one.
HTML <a> href Attribute

<a href="URL">Visit URL</a>


URL- The URL of the link.
Possible values:

An absolute URL - points to another web site (like ref="http://www.google.com")


A relative URL - points to a file within a web site (like href="ap.html")
Link to an element with a specified id within the page (like href="#top")
Other protocols (like https://, ftp://, mailto:, file:, etc..)
A script (like href="javascript:alert('Hello');")

Folder structure of your website is given below.

sjp.html
Applied Science
ap.html
Computer Science department
cs.html
ict.html
Management Studies

i.

ii.

iii.

Design sjp.html which having links to navigate to Applied Science homepage


(ap.html) and Computer Science department two subject pages (cs.html and
ict.html)
Design ap.html which having links to navigate to university homepage
(sjp.html) and two subject pages (cs.html and ict.html) under computer
science department.
Design cs.html and which having links to navigate to university homepage
(sjp.html), Faculty homepage(ap.html) and ICT subject homepage (ict.html)

6. What is CSS?
7. How we can apply CSS to a web page? Give one example for each method.
8. Define the class selector and the id selectors in CSS.

You might also like