div tag in Html

This is simple HTML exercise about div. The <div> tag defines a division or a section in an HTML document. The <div> tag is used to group block-elements to format them with CSS.

Source Code 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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

Output of the Program 

div tag in Html
div tag in Html

  
Share on Google Plus

About Asad

Asad Niazi is Software Engineer , Programmer, Web Developer and a young mentor of BloggersTown and PProgramming. Asad Love to writes about Technology, Programming, Blogging and make money online.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment