NMAM.I.T.
, Nitte
Department of MCA
II SEM MCA
Web Lab assignment -2 CSS
1. Design website on CAR
a. Use appropriate tags to display the information, price, features, specification etc in
table in a xhtml page. Create appropriate external CSS style sheet for the styling. Use
Following style properties.
i) Font: font-family, font-style, font-weight, font size, font-color, etc.
ii) Color: Color, background-color, background-image, background, etc.
iii) Text: text-decoration, align, text-indent, float etc.
iv) Box: margin-top, margin-right, margin-left, margin-bottom, margin, border- width,
border-color, border-style, border.
v). List : list-style-image,list-style-type
b. Use appropriate tags to display the information about car in following frame in a
xhtml page. also show the usage of div tag and border
This is paragraph1 Insert an
This is paragraph2 image at the
right end of
this frame.
List of pages
1. page1
2. page2
3. page3
This cell contains a list This is paragraph3
• item1
• item2
• item3
c. Use inline style sheet to set benz.jpg as a background in page1.html. The
background shall be positioned to the right and repeated vertically.
d. Create a XHTML document to display the car types in the following format.
Create appropriate document level CSS style sheet for the styling.
1. Car Type
a. Car Fuel
• Diesel car
(i) Suzuki
i. Swift
a) Automatic
b) manual
ii. Maruthi 800
iii. ciaz
(ii) hundai
i. i20
ii. i10
• Electric car
i. Mahendra
ii. TATA
• Petrol car
i.
ii
• Ethanol car
• Natural gas car
• Hydrogen car
b. Size
• Micro
• Mid- size
• Large
• Extra large
e. Write an XHTML document with an inline style sheet. The style sheet should contain
a rule that displays h1 elements in blue. In addition, create a rule that displays all links in
blue without underlining them. When the mouse hovers over a link change the link's
background colour to yellow.