WT UNIT 2 2marks
WT UNIT 2 2marks
Both the document author and the person viewing the document can
specify aspect of the document style as it is displayed by the browser
documents through the use of a link element are known as external style
sheets.
Rule Cascading
Inheritance
A CSS 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 a value.
The origin of a style sheet declaration is who wrote the declaration, the
person who wrote the HTML document , the person who is viewing the
document, or the person who wrote the browser software that is displaying
the document. Specifically the origin can be one of the following. i) Author
ii) User Agent iii) User
TEXT-ALIGN WHITE-SPACE
The list-style-type property can be used to vary the default styles used for
bulleted and numbered list items. It can be applied to the li, ol, ul element
types
13. Write the expansion for the following? i) ECMA ii) CSS iii) XHTML
iv)XML
i=”text”
Array can be defined in three ways i. Using the array constructor directly in
a call with no argument. E.G: VAR ARY1=NEW ARRAY(); ARY1[0]=4;
ARY1[1]=TRUE; ARY1[2]=”OK”
iii. The Array built-in object can be used to construct object with special
properties and that inherit various methods
VAR ARY2=[4,TRUE,”OK”];
i. ID Selectors
i. Number
ii. String
iii. Boolean
iv. Null
v. Object
vi. Undefined