Documente Academic
Documente Profesional
Documente Cultură
: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
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
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.
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:
Syntax:
<a> </a>
Attribute:
HREF:
<a href=www.google.com>
Sample code:
Output:
Sample code 4:
Output of sample 2:
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.