Software Development Resources
Main Page | Software Development | Categories | Recent changes | About DocForge
Log in / create account | Log in with OpenID | Help

HTML/div

From DocForge

div is a generic block-level HTML element. It's often used for organizing and styling groups of elements.

div is often preferred over the table element for styling, although tables are sometimes easier to use. Tables, however, are meant to organize tabular data, not structured styles.

[edit] Attributes

  • Standard attributes
    • align - text alignment
    • class
    • dir - text direction
    • id
    • lang - language information
    • style - inline CSS styles
    • title
  • Standard events
    • onclick
    • ondblclick
    • onmousedown
    • onmouseup
    • onmouseover
    • onmousemove
    • onmouseout
    • onkeypress
    • onkeydown
    • onkeyup

[edit] See Also

Discussion

comments powered by Disqus