The div tag.

The div tag stand for divison and is used as <div> xyz </div>

Now look at the facebook page, www.facebook.com, If you see the top blue part, and the rest of the body, these are two separate divisions. 

<div id = one>
THIS IS A DIVISION
</div>

On your CSS page, you type in the following code

#one{

}

And customize the divison to your liking. 

You can also put a div inside a div.

<div id= one>
Welcome
<div id= two>
Hi!
</div>
</div>

The ID attribute serves for the name of the division. You can call your division anything you like.

I will post a sample program soon! Until then, keep practising! 🙂 

Advertisements
Categories: Uncategorized | Leave a comment

Post navigation

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: