473,327 Members | 2,065 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Replacing outdated tag attributes

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

Jun 15 '06 #1
6 16360
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.
Jun 15 '06 #2
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
Jun 16 '06 #3
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

Jun 16 '06 #4
silverbob <bs**********@symark.com> scripsit:
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/

Jun 17 '06 #5
The actual message is "The World Wide Consortium now regards the
attribute, <> as outdated. Newer constructs are recommended." This is
a beta release, so I haven't put out any money. I've submitted a wish
to expand on that message.

Bob
Jukka K. Korpela wrote:
silverbob <bs**********@symark.com> scripsit:

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/


Jun 19 '06 #6

silverbob wrote:
The actual message is "The World Wide Consortium now regards the
attribute, <> as outdated. Newer constructs are recommended."


HTML is the work of the World Wide Web Consortium, or W3C
W_2_C are _much_ scarier, and will be the topic of the next Dan Brown
book. TINC.
OTOH, the CSS 2.1 recommendation is much more readable than Dan Brown.

Jun 19 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Søren Schimkat | last post by:
Hi everyone I´m having some problems with replacing one form with another. The first problem is the the replace function only works once - and the second problem is that the thml code dosn´t get...
35
by: Markus Dreyer | last post by:
I suggested our Librarian for the University Library to buy Accelerated C++. Practical Programming by Example. by Andrew Koenig and Barbara E. Moo http://www.acceleratedcpp.com/ but she...
23
by: Carter Smith | last post by:
http://www.icarusindie.com/Literature/ebooks/ Rather than advocating wasting money on expensive books for beginners, here's my collection of ebooks that have been made freely available on-line...
12
by: Oberon | last post by:
I have a large HTML document. It has hundreds of <span>s which have no attributes so these <span>s are redundant. How can I remove these tags automatically? The document also has <span>s with...
0
by: cthu | last post by:
Hello I would like some client side events to fire when controls are edited. Right now I have: For Each ctl In myForm.Controls Select Case ctl.GetType().ToString Case...
0
by: michael.murr | last post by:
I've read a few posts about how to have attributes that are "linked" at run time. I've created a (simple) Python metaclass that accomplishes this with some behind-the-scenes __init__ redirection. ...
11
by: Nathan Sokalski | last post by:
I add several JavaScript events (onchange, onkeypress, etc.) to Controls using the Add method of the Attributes collection. However, if the JavaScript code contains certain characters, such as & or...
18
by: Joe (MCAD) | last post by:
Hi all, I just wanted to hear other peoples opinion with regards to how/if outdated ASP.NET is. ASP.NET (and ASP.net 2.0) is based on framework from 2000. It was a great stride forward at that...
1
by: mforema | last post by:
Hi Everybody, I have an Access table with a field filled with outdated hyperlinks. I also have an excel spreadsheet that is the master list for these hyperlinks. The spreadsheet will be updated...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.