HTML 5
Definition and usage
Example
<div style="color:#00FF00"> <h3>This is a header</h3> <p>This is a paragraph.</p></div>
Browser support
All major browsers support
Differences between HTML 4.01 and HTML 5
The "align" attribute was deprecated in HTML 4.01 and is not supported in HTML 5.
Tips and Notes
Note: Browsers typically insert line breaks before and after div elements.
Tip: The
Global attributes
The
Event Attributes
The
The above is the detailed content of How to use html div tag. For more information, please follow other related articles on the PHP Chinese website!