Tuesday, October 13, 2015

HTML5 Tutorial For Beginners 12 # Using div Tags to Layout header, navig...









<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Html</title>
<style type="text/css">
#header {
    background-color:blue;
    color:white;
    text-align:center;
    padding:6px;
}
#navigation {
    line-height:40px;
    background-color:yellow;
    height:500px;
    width:100px;
    float:left;
    padding:5px;       
}
#section {
    width:350px;
    float:left;
    padding:10px;    
}
#foot {
    background-color:blue;
    color:white;
    text-align:center;
    padding:6px;    
    clear:both;
}
</style>
</head>
<body>
<div id="header">
<h1>Tutorial</h1>
</div>

<div id="navigation">
C++<br>
Java<br>
C#<br>
</div>

<div id="section">
<h2>Code Tutorials</h2>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</p>
</div>

<div id="foot">
Copyright example.com
</div>
</body>
</html>






Searches related to using div tags

using div tags html

using div tags to keep images together

columns using div tags

div means in html

how to create a website using div tags

how do div tags work

div vs span

div formatting

No comments:

Post a Comment