Solved

When do i use <DIV ALIGN=CENTER> and <CENTER>

Posted on 1998-07-19
2
145 Views
Last Modified: 2010-04-09
HI,
 I am curious to find out when i am supposed to use the <DIV align=center> and <CENTER>. I read that <CENTER> is a netscape specific tag.  I also found out that Frontpage puts:

<div align=center><center>testing</center></div>

when you want to center something.  My thinking is that "maybe" the earlier versions of browsers ie. Explorer 3.0 may not understand netscapes <center> command and only understand <div>, but Netscape 1.0 probably only understands <center>.  So Microsoft, being nice guys (grin) as they are, they decided to keep full compatibility by putting both tags together.  Beats me.
 
If i am expecting Netscape 2.0-Netscape 4.5 viewers and Internet Explorer 3.0 - 4.0 viewers mostly, which is the best tag to use for center or is it WISE to just leave both in.  Take into consideration other not so popular browsers that may visit my site.  
 
Thanks
0
Comment
Question by:mirror
2 Comments
 
LVL 5

Accepted Solution

by:
stevemiller earned 50 total points
ID: 1844735
Both browsers understand these commands.
 
<CENTER> object info  </CENTER>  is used to center anything in between the markers on the page.  anything like a link, image, text, or a table can be put in the middle....

<DIV> is a Logical Division.  This element is used with style sheet attributes to designate sections of text as being of a certain style. Netscape Navigator 3 implements the <DIV> element to work as the <P> tag.

If you want to get a really kool listing of all commands and which browsers they are compatible with, check out this link:

http://vzone.virgin.net/sizzling.jalfrezi/iniframe.htm

They have everything---


steve

0
 

Author Comment

by:mirror
ID: 1844736
Thanks a million steve
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now