![]() |
Assigning classes![]() ![]() ![]() ![]() ![]()
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: P{font: garamond 12pt/11pt normal) P.left{text-align: left) P.right{text-align: right) </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 NamesDHTML Document Object Model Features of Dynamic HTML HTML Versus DHTML Netscape's Vision of DHTML Microsoft Vision of DHTML Cascading Style Sheets(CSS) Inline Style Sheets Embedded Style for a Page Linked Cascading Style Sheet Text Specific Style AttributesCSS Attributes Assigning Classes Java Script Style Sheets(JSSS) Object Property Functions Methods
Creating Style Sheets with JSSS New JSSS Methods Working Layers Positioning the Layer Using More than One Layer Moving a Layer Around on the Page Events
The mouseOver and mouseOut Events The mouseMove Event The Keyboard Events The mouseDown and mouseUp Events The dragDrop Event Error Event Form Event The Script Tag Changing Text Color Inline Text Attribute Changes Text Dynamically Changing StylesExample of Dynamically Changing Style Dynamically Changing Content HTML Replacement Changing Text Content An Example of HTML Graphics ReplacementWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |