Using the 'div' Tag : DIV « HTML « JavaScript DHTML






Using the 'div' Tag

<html>
<head>
  <title>JavaScript Unleashed</title>
</head>
<body>
  Before the first block.
  <div name="layer1"><hr>DIV 1<hr></div>
  After the first block.
  <br>
  Before the second block.
  <div name="layer2"><h3>DIV 2</h3><p>I am inside the second DIV block.</p></div>
  After the second block.
</body>
</html>

           
       








Related examples in the same category

1.Scrolling div Content