Skip to main content

DIV TAGS

Wondering what are div tags? If now..I will explain you now..

In a particular code we might want some texts to blue and the rest to be black...now to solve this problem we will use the <div></div> tags... Lets see an example...

<html>
<head>
</head>
<body>
<p>This is an example for <div> tag
<div style="color:#0000FF">
  <h3>This text is in a different color</h3>
  </div>

<div style="color:red">
<p>This is in another color.</p>
</div>
<body>
</html>

Now the result of the code must be somewhat like this :-
OK now you can see that all the three lines are in different colors..This is just the basic feature of the div tag...All the websites you see are made up of this div tag....

Now lets study about this code:-


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.
So now you know what is a div tag..keep practicing and get ready for the upcoming contest in June...bring more people here so that there may be a tough competition...



Comments

Popular posts from this blog

Maths and programmig side by side...

Lets do maths and programming side by side...   We all like 3D animations...You must wondering what language must be used to make them..but we can make them by using a simple software "Alice"  So Do Download the Software ... Its is  trusted and is virus less!  Remember: Your laptop must have java if not please do download it from its original site...

Types Of List

So in the last blog, we worked on with a list called unordered list......Now we are gonna study more types of list.. Ordered list - This type of list starts with <ol> and ends with </ol>....this type of list creates auto numbers like 1,2,3,4....etc.. Now go to your notepad and update the code...the things in bold must be updated.. <html> <head> <title>My First Webpage (About dinosaurs)</title> </head> <h1>First Webpage</h1> <h2>Welcome to my Website...... <p>This is my first webpage....Hope you like it</p> <br> <br> <h2>Dinosaurs --- All about them</h2> <br> <p>We all know about dinasaurs.. There are many types of dinosaurs and some of the names are :- <ol> <li>Abelisaurus</li>  <li>Acanthopholis</li> <li>Acristavus</li>   </ol> </html>  After updating the code your result will be like this :- Did y...

POSTS TO BE STOPPED!!!

I am going on a leave for a month and thus there will be no posts in the following next month! After I will be back the registration will start for the contest! MINIMUM 10 entries to be there for the contest...So call your friends to join the contest!t By the way this is my twentieth post... - Dwij Jha