HTML Tutorial

2
1 Tutorial No: 02 1. What are the character entities? Why we use character entities? 2. What is a hyperlink? 3. When we use hyperlinks in HTML pages? 4. Define target attribute values of the anchor tag and describe one by one. 5. 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. Management Studies ict.html cs.html Computer Science department ap.html Applied Science sjp.html

description

A simple tutorial for HTML

Transcript of HTML Tutorial

  • 1

    Tutorial No: 02

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

    2. What is a hyperlink?

    3. When we use hyperlinks in HTML pages?

    4. Define target attribute values of the anchor tag and describe one by one.

    5. HTML href Attribute

    Visit URL

    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.

    Management Studies

    ict.html

    cs.html

    Computer Science department

    ap.html

    Applied Science

    sjp.html

  • 2

    i. 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)

    ii. 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.

    iii. 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.