— Attribute values for type are: disc, circle or squareExample:
+ Apple
+ Orange
+ Pear
De
n list: These are different to the previous types in that they do not use list
items to contain their members.
+ Create definition lists using
= Pairs of text and associated definition; text is in
tag, definition in
tag
Example:
HTML
A markup language ..
css
Language used to ..
+ An Example which illustrate three list:
"y
Apple
Orange
Grapefruit
Apple
Orange
Grapefruit
HTML
A markup lang..
Figure 1. Example for lists
2. Write a short note about CSS and its advantages?
Ans.
Definition:
+ Cascading Style Sheets (CSS) form the presentation layer of the user interface.
= Structure (XHTML)
— Behavior (Client-Side Scripting)
— Presentation (CSS)
+ Tells the browser agent how the element is to be presented to the user.
+ A styleis simply a set of formatting instructions that can be applied to a piece of
text.
CSS Syntax:
+ ACSS rule has two main parts: a selector, and one or more declarations:
+ The selector is normally the HTML element you want to style.
+ Each declaration consists of a property and a value.
+ The property is the style attribute you want to change. Each property has avalue.
Selector Declaration Declaration
{color:blue; font-size: 12px; }
Property Value Property Valueing HTML with CSS
CSS was introduced together with HTML 4, to provide a better way to style HTML
elements.
CSS can be added to HTML in the following 3 ways:
+ Inline - using the style attribute in HTML elements
+ Internal - using the