[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
HTMLSPEC-DIV
A block level element used to define "divisions" within a HTML document. If used inside a paragraph ( <p> ), the <div> tag will automatically terminate the paragraph; therefore, the <div> tag cannot be used to group elements inside a paragraph type.
Attributes
Used to specify the horizontal alignment of internal content.
Used to define style characteristics or settings for grouped elements. For more info, see <style> tag.
Code Tip
None
Live Example
HTML Tags Center
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
HTMLSPEC-DIV
DIV
UsageA block level element used to define "divisions" within a HTML document. If used inside a paragraph ( <p> ), the <div> tag will automatically terminate the paragraph; therefore, the <div> tag cannot be used to group elements inside a paragraph type.
Attributes
align=" left || center || right "
Used to specify the horizontal alignment of internal content.
style="text"
Used to define style characteristics or settings for grouped elements. For more info, see <style> tag.
Code Tip
None
Live Example
<html> <head><title>Division Document Example</title></head> <body> <div align="left">This content is left justified.</div> <div align="center">This content is center justified.</div> <div align="right">This content is right justified.</div> </body> </html>
HTML Tags Center
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
