Full width home advertisement

How To

Science

Post Page Advertisement [Top]


The <div> element can be defined as a block level element used for grouping HTML elements. The HTML <div> tag is a block-level element, while the HTML <span> element is used for grouping elements at an inline level.

Example

<!DOCTYPE html>

<html>

<head>

<title>HTML Layouts using DIV, SPAN</title>

</head>

<body>

<div style="width:100%">

<div style="background-color:#b5dcb3; width:100%">

<h1>This is Web Page Main title</h1>

</div>

<div style="background-color:#aaa; height:200px;width:100px;float:left;">

<div><b>Main Menu</b></div>

HTML<br />

PHP<br />

PERL...

</div>

<div style="background-color:#eee; height:200px;width:350px;float:left;">

<p>Technical and Managerial Tutorials</p>

</div>

<div style="background-color:#aaa; height:200px;width:100px;float:right;">

<div><b>Right Menu</b></div>

HTML<br />

PHP<br />

PERL...

</div>

<div style="background-color:#b5dcb3;clear:both">

<center>

Copyright © 2016 Scholarsglobe.com

</center>

</div>

</div>

</body>

</html>


Reference: Tutorials Point

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib