Articles → HTML → Div Tag In HTML
Div Tag In HTML
Purpose
Syntax
Example
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div style="border:1px solid black;height:25%">
Test1
</div>
<div style="border:1px solid black;height:25%">
Test2
</div>
<div style="border:1px solid black;height:25%">
Test3
</div>
<div style="border:1px solid black;height:25%">
Test4
</div>
</body>
</html>
Try It
Output
Browser Support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
Yes | Yes | Yes | Yes | Yes | Yes |