Saturday, 15 November 2014

div tag in Html

Structure of the Problem Requirements 

In this problem we will learn how to divide large area into sub number of division. You have a 4000 lines of code and that is very difficult to point our where can error occur. So we divide our code into sub division. For that purpose we use <div> tag. and in that tag you can also add the property of that code which in in </div> tag. In our example we can just change color of text. You can also give Id or Class name in div to represent Area of code.Here is the source code of this web page which help you in better understanding. 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

<html xmlns="">
<title> Html Unorder List </title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<div style="color:#0aa0FF">
<div id="menu">
<div class="menu">
<h1> ANDEVELOPER </h1>
  <li> C++ </li>
  <li> Java </li>
  <li> Html </li>
  <li> Php </li>
  <li> CSS </li>
  <li> Android </li>
  <li> Linux </li>
  <li> SEO </li> 


div tag in Html
div tag in Html


Share it Please

About Author!

Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.


Post a Comment