Linggo, Enero 6, 2019

Creating Web Page With Divisions

HOW TO CREATE WEB PAGE WITH DIVISIONS USING HTML AND CSS

On this blog you will learn how to:
  • Place division on the right location.
  • Use <div> tags.
  • Create division to your web page.
STEPS IN CREATING WEB PAGE WITH DIVISION 
  1. First step open the notepad.
  2. To create division for a web page, use <div> tag with id value just like below.
<div id="masthead"></div>
<div id="top-navigation"></div>
<div id="web-content-body"></div>
<div id="bottom-navigation"></div>
<div id="copyright"></div>

Other than this tags you can also use <aside> division on your page and place it either to the left or right.
3.Then next fill each section with content and start with masthead.
You can also add width,height,picture, and background color.
<div id="masthead"style="width: 1200px;height: 150px;border: 1px solid black;background-color:gray;margin-left:70px">
<p style="text-align:center;font-size:36px">Camp Sawi</p></div>
4. Top-Navigation Section
(Using CSS)

<div id="top-navigation"style="width: 1200px;height: 40px;border: 1px solid black;background-color:silver; margin-left: 70px">
<head>
<style>
ul{
background-color:black;
margin:15px;
padding:15px;
}
</style>
<style>

ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
  }

li a{
      display: block;
      color: pink;
      text-align: center;
      padding: 15px 15px;
      text decoration: none;
    }
li{
    float: left;
   }
li a:hover{
           background-color: white;
          }
.active{
         background-color: white;
        }
</style>
</head>
<ul>
<font face="century gothic">
<li><a class="active"href=""> HOME</a><li>
<li><a href="about.html"> ABOUT </a></li>
<li><a href="location.html"> INGREDIENTS</a></li>
<li><a href="contact.html"> RECIPES</a></li>
</ul>
</div>
5.Web-contentbody

<div id="web-contentbody"style="width: 1200px;height: 500px;border: 1px solid black; background-image:url(f.jpg); margin-left: 70px">

(code for aside)
<aside style="width: 325px; height: 500px; border: 0px solid black;background-color: pink; margin-right: 78px;float:left">
<br>

<p style="text-align:center;font-size: 20px; font-weight: bold;"><font face="courier new">History Camp Sawi </font> </p>

Walang komento:

Mag-post ng isang Komento