Onlineatoz.net | ToolBox HTML Control HTMLDiv

ToolBox HTML Control HTMLDiv

HTML Div Web Server Control

In ASP.NET environment,This Article represents you how to work with HTML Div Control.In HTML environment, Div is an object that represents an Div in an HTML form. The Div control in a HTML form contains all instance of an <div> tag.

There are several functions available to access the HTML Div.some of its funtions are as follows,

  • document.getElementById()
  • document.getElementByName()
Div Objects Properties
  • id -Sets or returns the id of a Select
  • tabIndex -Sets or returns the tab order for a dropdown list
  • align -Sets the alignment of its childs
  • dir -Sets or returns the direction of text
  • lang -Sets or returns the language code for an element
  • title -Sets or returns an element's advisory title
  • className -Sets or returns the class attribute of an element
Methods
  • add() -Adds an option to a dropdown list
  • blur() -Removes focus from a dropdown list
  • focus() -Sets focus on a dropdown list
  • remove() -Removes an option from a dropdown list

The following code snippets explains you the HTML Div in the web form.

in .aspx page,

 
<div id="div1" align="center">
    <span id="spn1" runat="server">
    This sample represents Div control
     </span>
</div>

 
Related Links

73284252-c777-4


Posted by: Admin
Posted on: 9/13/2011 at 3:57 AM
Categories: Asp.net
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed