Assigning classes

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email
Assigning classes is adding an extension name to any HTML tag. This name can be virtually anything, such as Penta, chennai, Dubai, Singa etc. Suppose, there are two styles of paragraphs one that justifies left and the other right. Using classes you can do like this:

P.left (font family: garamond; font style: 12pt; font style:normal; line height:1 lpt; text align:left)

P.right (font family: garamond; font style: 12pt; font style:normal; line height:! lpt;

text align: right)

In the first definition a new <P> style is created with left. This is used in the document as:

<P class=" left">. The second creates a new <P> tag called right. It is used as <P class= "right">.

When you use the style in the document, use the class attribute to identify which version of the tag is applied:

<P class= "left" >All these words are left aligned assigning classes</P>

<P class= "right"> I suppose I am pushed 'into the rightmost corner </P>

Example using style and attribute grouping along with classes to create a concise style defintion for the document:
H1 {font-size:18pt; text-align:left}
H2 {font-size: 14pt; text-align:right}

P{font: garamond 12pt/11pt normal)

P.left{text-align: left)

P.right{text-align: right)
---->
A{text-decoration- none; font-weight; bold)

</STYLE>

<BODY bgcolor="#ffffff">

<Hl> Software training </Hl>

 

<P class="left"> The boom in the <A href ="sfot.html" title= "Software sites"> software </A>business is driving everyone into learning computers. People are ready to adapt themselves to the new culture</P>

<H2> Software training </H2>

<P class= "right"> The boom in the <A href="sfot.html" title= "Software sites"> software </A> business is driving everyone into learning computers. People are ready to adapt themselves to the new culture</P>

</body>

</html>



Domain Name Search

www.


Copyright (C) 2007. Web Domain design hosting. All rights reserved.