Using Inline Style in DHTML

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email
An inline style is included with the tag it affects. It doesn't affect any other HTML tags on the page, whether they're the same type or not. For example, if you place an italic style with an < H1 > tag, the style will not apply to any other <H1 > tags on the page.

<HTML>

<HEAD>

<TITLE>An Inline Style</TITLE>

</HEAD> <BODY bgcolor= "#FFFFFF">,
<P style="font size: 14pt" id="p14">
This came from a P tag with a style. Internet is emerging to an extent, which is encompassing the life of every human being on this planet, not to mention other planets </P>
<P> This came from a P tag without a style. Internet is emerging to an extent,which is encompassing the life of every human being on this planet, not to mention other planets </P>

 

<SPAN STYLE = "font size: 18pt" id=" span18">

This came from a SPAN tag with a style,
Internet is emerging to an extent, which is encompassing the life of every human being
on this planet, not to mention other plantes</P> </SPAN> <SPAN> This came from a
SPAN tag without a style. Internet is emerging to an extent, which is encompassing
the life of every human being on this planet, not to me on other planets<P> </SPAN>
</BODY>

</HTML>

 

 

When you want to change these styles with Dynamic HTML, they're represented in the object model with object. style. fontsize, where object is the name of the id attribute for the tag. In this case, it's p14.style.fontSize and spanl8.style.fontSize



Domain Name Search

www.


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