HTML div tag


2. Usage

  • In HTML layout, the most use tag is div.
  • div and CSS styles allow web pages to achieve a variety of style effects.
  • It replaces the table tag layout.
  • It separate the contents.

3. Example

<div>1st div</div>
<div>2nd div</div>
<div>3rd div</div>
Result :
1st div
2nd div
3rd div

Copyright 2014-2017 by All Rights Reserved.