HTML CSS

CSS stands for cascading stylesheet. The CSS is used to design a language that is very easy and simple to understand. This allows the user to create CSS stylesheets by hand. This can be done without using any fancy editors or editing tools. CSS is being developed with the arena browser and this browser also provides a textbed for CSS stylesheets. It is also used to understand the CLASS attribute.

Class attribute can be used to give the different presentation styles to the elements. For example, two paragraphs that have different CLASS attribute values. To understand this, consider the following example:

width = 500px

height = 600px

margin.left = 0.5 cm

margin.right = 0.5 cm

*: font. family = times

*: margin. left = 1 cm

h1, h2, h3: font. family = Helvetica

h2, h3: margin.left = 0cm

h1: text.align=centre

In the above example, the first two lines specify the size of the browser display window in pixels, px indicates pixels. The third and fourth line of the document defines the margins for the document within the display window. In this way the left and right margins are considered to be 0.5 cm.

In the fifth and sixth lines * is a wildcard that is used to represent all the possible elements names that are related. These two lines define generic properties of all the elements in the document. The font.family = times shows that the default font is Times Roman and margin.left = 1 cm indicates that the left margin for all the elements is 1 centimeter from the document edge.

The lines 7, 8, and 9 provide formatting information. The line 7 sets the font of H1, H2 and H3 to Helvetica. Line 8 sets the margin of the text of H2 and H3 to 0 centimeters. The line 9 says that the heading h1 should be aligned to the centre of the HTML document using the attribute ALIGN.