Working of ‹div› Tag in HTML

These steps will be followed on the simulator

  1. The experiment begins with previewing the output of ‹div› tag in Preview Section given at the top of the Simulator by giving the values for different attributes like text and align along with the properties and values in style attribute for inline CSS, in Simulator.

  2. After previewing the output we can see the syntax of ‹div› tag in adjacent the Syntax Section.

  3. After understanding the syntax, write HTML code for inserting a division in the Write Code Section given at the left bottom of simulator.

  4. If there will be any error in the code then Simulator will highlight that error so that it can be rectified.

  5. Finally after rectifying the errors the result of correct HTML code can be seen in the adjacent Preview Result Section.