Forum Moderators: open
I am starting to use a doctype on all new websites,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Since the websites work fine on all major browsers, such as IE, Netscape, Mozilla, Firefox, Opera,etc, then I should be OK (right),
I create websites using tables, and people have told me that this is not the standard anymore, and I should also start using CSS (All of this I understand, however during the time of learning all of these new features in creating websites, I need to stick with what I know.
My question is since the websites look good, with the doctype I am using, shouldn't my websites be OK for the future, with how I created them.
Thanks
Chad
tables vs. css for layout is a bit of a different argument to
doctype vs. no doctype.
I am currently redesigning my sites by adding doctypes and using css for all the formatting.
I am still using tables on that main site but instead of a lot of:
<table border="2" bordercolor="red" align="center" width="85%">
<tr align="center" valign="middle" width="50%">
I have reduced it all down to:
<table id="main-info"><tr>
and do all the formatting stuff in the css stylesheet. Produces cleaner, quicker code, have included the doctype so there are vastly fewer cross-browser issues compared to before....and every 20k page I had is now around 16k, 4k of pure html bloat removed.
Thanx