Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Div Understanding help needed

Status
Not open for further replies.

lucky626

Technical User
Jul 27, 2001
1
US
hello everyone, I just joined tek tip. so far i really like this forum :)
I'm relavitvely new to HTML. One problem I'm having is with an HTML element called the <div> tag.
My understanding is that in a clear HTML document, withough CSS, a div tag used like this <DIV ALIGN=CENTER> will align the text to the center of the page. Now my question how is it different from a simple align tag. i.e what is DIV doing different here and how is it diffirent from the
<Blockquote> tag. Please explain in laymens term I can undertand. thanks people.
 
The <div> tags can surround several other tags such as numerous <p> tags to make them all 'align center' It is a time saver over writing <p align=center> over and over again.

<blockquote> is used to increase the margin left and right uniform to one another of a paragraph or other element like an ordered list <ol>. You have little control as to how much of an indent you get using <blockquote>

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top