Beruflich Dokumente
Kultur Dokumente
ON
Submitted By :
Submitted to:
Deepak Minhas
02220601714
Assistant
professor
TABLE OF CONTENTS
S.N
O.
1.
TOPIC
PAGE
NO.
3-10
2.
11-25
Ordered list
Unordered list
3.
4.
26-33
Image source
Image alternate name
Height and width
Image link
34-36
SIGNAT
URE
PRACTICAL 1
Q1. Demonstrate the use of Title and Font Tag.
A1. The <title> tag is required in all HTML documents and it defines the title of the
document.
The <title> element:
Defines a title in the browser toolbar.
Provides a title for the page when it is added to favorites.
Displays a title for the page in search-engine results.
OUTPUT:
The title of the document can be viewed on the tab of the web browser
FONT TAG:
The HTML element <font> is a paired tag used to change the way text is
displayed within <font>...</font> tags. The effect is controlled by a
number of attriutes:
1. SIZE: The value of this attribute isa signed number, usually in the range
-7 to 7. It changes the current font size.
OUTPUT:
6
2. COLOR: The color of the text can be changed. The value associated with the
tag specifies a color.
7
OUTPUT:
3. Face: The face attribute specifies the font of the text inside a <font> element.
OUTPUT:
10
PRACTICAL 2
11
When you want to show various items on the web page, it becomes
necessary to list them. Listing is also needed when you are cataloging and indexing
various objects.
HTML provides us with 3 types of lists. They are:
1.
2.
3.
1.
Ordered list: The ordered list helps us to keep an organised inventory, wherein
the list items are ranked. It uses the <ol> and </li> tags. <ol> indicates ordered list
and </li> indicates list item. <ol>starts a list, </li> shows individual item against a
number.
Description
type="1"
type="A"
type="a"
type="I"
numbers
type="i"
numbers
ORDERED LIST:
12
HTML CODE:
<ol>
<li>first list item </li>
<li>second list item</li>
<li>third list item</li>
</ol>
OUTPUT:
13
HTML CODE:
<ol type="A">
<Li>first item</li>
<Li>second item</li>
<Li>third item</li>
</ol>
OUTPUT:
15
HTML CODE:
<ol type="I">
<Li>first item</li>
<Li>second item</li>
<Li>third item</li>
</ol>
OUTPUT:
17
2.
<ul> and </li> tags. <ul> indicates unordered list and </li> indicates list items. <ul>
begins the list and </li> shows individual items against the bullets.
The list items will be marked with bullets (small black circles):
Description
list-style-type: disc
list-style-type: circle
list-style-type: square
list-style-type: none
UNORDERED LIST
19
HTML CODE:
<ul>
<Li>first item</li>
<Li>second item</li>
<Li>third item</li>
</ul>
OUTPUT:
20
CIRCLE:
21
OUTPUT:
22
SQUARE:
23
OUTPUT:
24
25
PRACTICAL 3
Q3. Demonstrate the use of image tag.
A. The <img> tag defines an image in an HTML page.
The <img> tag has two required attributes: src and alt.
Images are not technically inserted into an HTML page; images are linked to
HTML pages. The <img> tag creates a holding space for the referenced image.
IMAGE SOURCE: The required src attribute specifies the URL of the
image.
26
OUTPUT:
27
28
The alt attribute provides alternative information for an image if a user for some
reason cannot view it (because of slow connection, an error in the src attribute, or if
the user uses a screen reader).
OUTPUT:
29
30
HEIGHT AND WIDTH: The height attribute specifies the height and width of
an image, in pixels.
31
OUTPUT:
32
CREATING AN IMAGE LINK: In order to link image the <A> tag must be
used. The <A> tag defines the source for the link.
The <A> tag is a container tag. First the link has to be defined and then the content
to activate must be displayed.
33
OUTPUT:
34
35
PRACTICAL 4
Q4. Make a home page of an E-Commerce website using div tag.
36
37
OUTPUT:
38