Monday

HTML div code


▶Browser Support
Internet Explorer Firefox Opera Google Chrome Safari
The
tag is supported in all major browsers.
▶Definition and Usage
The
tag defines a division or a section in an HTML document.
The
tag is used to group block-elements to format them with styles.
▶Tips and Notes
Tip: The
element is very often used together with CSS, to layout a web page.
Note: Browsers always place a line break before and after the
element.
AttributeValueDescriptionExample
alignleft
right
center
justify
Specifies the alignment of the contentalign=center
background-colorHEX colorSpecifies the color of the backgroundbackground-color: yellow;
background-color: #c0c0c0;
classclassnameSpecifies a classname for an elementclass="background"
stylestyle_definitionSpecifies an inline style for an elementstyle="color:#00FF00"





















No comments: