Friday, September 11, 2015

div HTML what is div

div is use to group the html
HTML - Div Element(s) The <div> tag is nothing more than a container unit that encapsulates other page elements and divides the HTML document into sections. Web developers use <div> elements to group together HTML elements and apply CSS styles to many elements at once


sample of div function
this is the code
<div style="border:3px solid #000;width:50px;height:50px;"<
sample
</div>


this is the result
sample

you can use div to any function
all code inside div got same function

sample code
<div align ="center">center</div>
this is the result

center

the txt center are in the center possition

No comments:

Post a Comment