Click here to get back home

Replacing outdated tag attributes

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Replacing outdated tag attributes silverbob 06-15-2006
Get Chitika Premium
Posted by silverbob on June 15, 2006, 6:23 pm
Please log in for more thread options


I am evaluating EWD, which seems to be an improvement over FrontPage.
In code view, the program alerts you to items that are not HTML 4.0
compliant. For example, in this line...

<td align="center" valign="middle" width="173" height="100"
bgcolor="#ffffff" class="bdDkBluBld" colspan="3">

I am told that the following are "outdated and newer constructs are
available":
width
height
bgcolor

My questions are, WHAT are the newer constructs and WHERE do I find
information on what to replace them with?

- Bob


Posted by Paul E Collins on June 15, 2006, 6:31 pm
Please log in for more thread options


silverbob wrote:

> <td align="center" valign="middle" width="173" height="100"
> bgcolor="#ffffff" class="bdDkBluBld" colspan="3">
> I am told that the following are "outdated and newer constructs
> are available": width, height, bgcolor
> My questions are, WHAT are the newer constructs and
> WHERE do I find information on what to replace them with?

I expect it means CSS (cascading stylesheets).

You could (for instance) write <td style="width: 173px; height: 100px;
background-color: #ffffff"> , though applying styles on a per-element
basis wouldn't really give you the major benefits of CSS, like being
able to apply the same stylesheet to multiple documents.

Eq.



Posted by Beauregard T. Shagnasty on June 15, 2006, 8:01 pm
Please log in for more thread options


silverbob wrote:

> My questions are, WHAT are the newer constructs and WHERE do I find
> information on what to replace them with?

Further, see this:
http://htmldog.com/reference/cssproperties/
and then work through the tutorial. It's a fairly good one.

--
-bts
-Warning: I brake for lawn deer

Posted by Veerle on June 16, 2006, 2:26 am
Please log in for more thread options


silverbob schreef:
> I am told that the following are "outdated and newer constructs are
> available":
> width
> height
> bgcolor

The reason why these things are outdate is that they define the way
your page looks and not the contents of your page. They idea now a days
is that you split up the content of your page (your markup in html) and
the way your page looks (the style, defined using css = cascading
stylesheets). So idealy, there is nothing in your html page that
defines your style, that would be all in your css file(s). The big
advantage is that when you want to change the way your page looks, you
have to rewrite the css and you don't have to change anything to the
html. But going this far requires you to really know css very well and
that takes up some time and experience. For example, you then can't use
a <table> tag any more for splitting your page up in a header, footer,
menu and so on. You have to define all these parts in different <div>
tags and define in css where the div blocks have to be placed and how
they have to look.

But this is all in theory. In reality, you have to try to do this as
good as possible, but sometimes it is just a lot easier to leave
certain style defining stuff in the html, for example the <table> tag
for creating a header, footer, menu, ...

I nice example of a page that demonstrates the theory of complete split
up of markup and style is CSS Zen Garden. That is one page where
different people can post their css for. You can change the style of
the page to a style that someone created, then the css changes, but the
html stays the same. It is amasing how much you can make one page look
completely differently using just css. Take a look around:
http://www.csszengarden.com/

But don't expect if you start out with css, to be able to do such
amazing stuff right away. As I said, it takes some time to get to know
it. A really good help would be to use Dreamweaver instead of Frontpage
to create your pages and css. It has excellent support for css!

Veerle


Posted by Jukka K. Korpela on June 17, 2006, 5:52 pm
Please log in for more thread options



> I am evaluating EWD, which seems to be an improvement over FrontPage.
> In code view, the program alerts you to items that are not HTML 4.0
> compliant.

So do you mean that it says that align, valign etc. attributes in <td> are
such items? And that it really talks about HTML 4.0 and not HTML 4.01?

Furthermore, that it declares them as outdated (which is a reasonable
position), yet gives no hint of what you should do with them?

Get your money back.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


Similar ThreadsPosted
Using outdated Cached Page May 2, 2005, 12:46 pm
Replacing name with id January 5, 2008, 11:45 pm
css replacing tables August 23, 2004, 11:16 am
About charset setting and replacing July 14, 2006, 6:29 am
replacing innerHTML in xhtml July 28, 2008, 4:49 am
Replacing links en masse on an ftp accessible server only March 10, 2008, 3:35 pm
Using attributes on a
August 14, 2005, 11:33 am
frames attributes September 11, 2004, 5:30 pm
Defining my own new attributes? August 20, 2005, 11:45 am
acronym attributes July 21, 2007, 12:49 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap