Sunteți pe pagina 1din 6

Web page designing Assignment No.

:4

Assignment No. 4
Title:
Design a webpage with background image, different text colour for different paragraphs, and set
colours for links, active links and visited links.

Theory:

Images:
Images are visually weighty objects that are; they attract attention faster than
other page elements.
Types of images
1. GIF [Graphics Interchange Format]
2. JPG/JPEG [Joint Photographic Experts Group]
3. PNG [Portable Network Graphics]
Web page with Background image
Sample code

Output

Government Polytechnic, Nashik 4-1


Web page designing Assignment No.:4

URL [Uniform Resource Locater]:


URLs vary, depending on the locations of the document, to which user is linking

e.g.:

A URL will be long and include more information if the file is on the www.
A URL will be shorter and include less information if the file is on local computer or server.
Basically URLs are classified into two types-
Absolute
Relative

Absolute URL [External Link]:

It contains all the information which is required to identify the files on the web. It
contains the protocol hosts name, folder name, file name which are all essential for linking to the
website. It is very important to give proper path.

Relative URL [Internal link]:

A Relative URL points to the file in the same folder or on the same server in this case a browser
doesnt need the server name or protocol indicator because it assizes the files are in the same
folder or on the same server.

Anchor tag:

Used to link the file, document or URL

Syntax:

<a> </a>

Attribute:

HREF:

Sets an URL of the destination object for the anchor.

<a href=www.google.com>

Government Polytechnic, Nashik 4-2


Web page designing Assignment No.:4

Sample code:

Output:

Government Polytechnic, Nashik 4-3


Web page designing Assignment No.:4

Changing text colour


Tag <font>, Attribute color
Sample code 3:

Changing colour of links:

Sample code 4:

Government Polytechnic, Nashik 4-4


Web page designing Assignment No.:4

Output of sample 2:

Output of sample code 3:

Government Polytechnic, Nashik 4-5


Web page designing Assignment No.:4

Conclusion:

Questions:
1) What is Image? Enlist the types of image.
2) What is URL?
3) Explain Absolute URL.
4) Explain relative URL.
5) Enlist the types of links.

Government Polytechnic, Nashik 4-6

S-ar putea să vă placă și