[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 1998-07-19
2
Medium Priority
?
156 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
stevemiller earned 200 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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…

650 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