Solved

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

Posted on 1998-07-19
2
154 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 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

696 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