473,385 Members | 1,468 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,385 software developers and data experts.

XHTML 1.0

I'm using visual studio 2005.

I have table:

<table><tr><td width=30%></td><td width=70%></td></tr></table>
and I get an error message:

Validation (XHTML 1.0 Transitional): Attribute 'width' is considered
outdated. A newer construct is recommended.

How should I do?

How can I get rid off this xhtml validation?

Thanks,Simon
Nov 24 '05 #1
5 4070
Either change the validation schema you are using (tools options AFAIK).

If you want still to target XHTML, use styles instead of obsoleted HTML
attributes. Googling for "cascading style sheets" should allow to find
materials about this...
--
Patrice

"Simon" <si*********@studio-moderna.com> a écrit dans le message de
news:%2****************@tk2msftngp13.phx.gbl...
I'm using visual studio 2005.

I have table:

<table><tr><td width=30%></td><td width=70%></td></tr></table>
and I get an error message:

Validation (XHTML 1.0 Transitional): Attribute 'width' is considered
outdated. A newer construct is recommended.

How should I do?

How can I get rid off this xhtml validation?

Thanks,Simon

Nov 24 '05 #2
Thank you Patrice.

1. Why should I use styles? It's more work for the same in some cases.

2. I have one very complicated page with 1000 tables where I exploit the
height attribute of the table.
And it works and the users are satisfacted.

But the height attribute doesn't work any more if I use new reccomendations.

See my post:

http://groups.google.com/group/micro...a82a0f00ec8fbb

Any suggestions?

Regards from Slovenia,
Simon

"Patrice" <no****@nowhere.com> wrote in message
news:uN**************@TK2MSFTNGP12.phx.gbl...
Either change the validation schema you are using (tools options AFAIK).

If you want still to target XHTML, use styles instead of obsoleted HTML
attributes. Googling for "cascading style sheets" should allow to find
materials about this...
--
Patrice

"Simon" <si*********@studio-moderna.com> a écrit dans le message de
news:%2****************@tk2msftngp13.phx.gbl...
I'm using visual studio 2005.

I have table:

<table><tr><td width=30%></td><td width=70%></td></tr></table>
and I get an error message:

Validation (XHTML 1.0 Transitional): Attribute 'width' is considered
outdated. A newer construct is recommended.

How should I do?

How can I get rid off this xhtml validation?

Thanks,Simon


Nov 24 '05 #3
Have a look at http://w3.org to see the various flavor of HTML/XHTML
standards...
The current trend is to separate content and appearence. You are anyway free
anyway to target an old standard if you prefer...

You can apply the same styles to multiple tables either by suing the
classname of even by suign inline styles etc...

I never saw a layout with so much table. There is perhaps an easier way of
doing this...

--

"Simon" <si*********@studio-moderna.com> a écrit dans le message de
news:OK**************@tk2msftngp13.phx.gbl...
Thank you Patrice.

1. Why should I use styles? It's more work for the same in some cases.

2. I have one very complicated page with 1000 tables where I exploit the
height attribute of the table.
And it works and the users are satisfacted.

But the height attribute doesn't work any more if I use new reccomendations.
See my post:

http://groups.google.com/group/micro...a82a0f00ec8fbb
Any suggestions?

Regards from Slovenia,
Simon

"Patrice" <no****@nowhere.com> wrote in message
news:uN**************@TK2MSFTNGP12.phx.gbl...
Either change the validation schema you are using (tools options AFAIK).

If you want still to target XHTML, use styles instead of obsoleted HTML
attributes. Googling for "cascading style sheets" should allow to find
materials about this...
--
Patrice

"Simon" <si*********@studio-moderna.com> a écrit dans le message de
news:%2****************@tk2msftngp13.phx.gbl...
I'm using visual studio 2005.

I have table:

<table><tr><td width=30%></td><td width=70%></td></tr></table>
and I get an error message:

Validation (XHTML 1.0 Transitional): Attribute 'width' is considered
outdated. A newer construct is recommended.

How should I do?

How can I get rid off this xhtml validation?

Thanks,Simon



Nov 24 '05 #4
If your tables only have 2 cells in them, can't you use another tag to
do it?

Something like:

<div class="tbl">
<p class="left"></p>
<p class="right"></p>
</div>

where your css styles looks something like

div.tbl
{
height: 1cm; /* the height of your table */
}
p.left
{
width: 30%;
float: left;
}
p.right
{
width: 70%;
float: right;
}

I think it's really recommended to write according to new standards
since old ones aren't guaranteed to work in the future.
And using tables just because the layout "works" I'm not that fond of...

Best regards,
Mats Lycken

Simon wrote:
I'm using visual studio 2005.

I have table:

<table><tr><td width=30%></td><td width=70%></td></tr></table>
and I get an error message:

Validation (XHTML 1.0 Transitional): Attribute 'width' is considered
outdated. A newer construct is recommended.

How should I do?

How can I get rid off this xhtml validation?

Thanks,Simon

Nov 25 '05 #5
Hi Simon,

The guys are right, you should switch to CSS styles for future projects, but
for a quick solution check out this doc from w3..

http://www.w3.org/TR/xhtml1/

I suspect your problem is that *all* attributes need to have quotes, so..

<table width="20%"> etc. You should be able to do a find replace to fix this.

Cheers
Dan

"Simon" wrote:
I'm using visual studio 2005.

I have table:

<table><tr><td width=30%></td><td width=70%></td></tr></table>
and I get an error message:

Validation (XHTML 1.0 Transitional): Attribute 'width' is considered
outdated. A newer construct is recommended.

How should I do?

How can I get rid off this xhtml validation?

Thanks,Simon

Jan 18 '06 #6

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

Similar topics

0
by: Peter Rohleder | last post by:
Hi, I have a few simple questions in order to use modularized xhtml and getting it to work. A simple example may make this obviouse: Lets say we want to create a simple xml-file to reflect...
59
by: Philipp Lenssen | last post by:
I've tested some of the new Nokia 6600 functionality. It ships with WAP2 and XHTML Support (it says). What it does is check the Doctype -- if it's not the XHTML Mobile Profile Doctype, but a...
32
by: jp29 | last post by:
My take on problems composing, serving and rendering XHTML documents/web pages: 1. Typical conscientious web authors are producing XHTML documents (Web pages) that feature valid Markup and with...
16
by: Mcginkel | last post by:
I am trying to find a way to load XHTML content in an Iframe. I use to do this in html by using the following code : var iframeObject = document.createElement("iframe");...
82
by: Buford Early | last post by:
I read this in http://annevankesteren.nl/2004/12/xhtml-notes "A common misconception is that XHTML 1.1 is the latest version of the XHTML series. And although it was released a bit more than a...
2
by: Joris Janssens | last post by:
I'm trying to write a program for validating XHTML 1.1-documents against the XHTML 1.1 DTD (which is actually the same as validating an XML-file) but I always get a "(404) Not found" error. This...
12
by: Alex D. | last post by:
How can I stop asp.net from rendering XHTML istead of HTML? My javascripts are rendering wrong because of that. It is rendering &amp; to clients instead of &. Any help? Thanks, Alejandro.
11
by: Tomek Toczyski | last post by:
What is the best way to attach a caption to an image in xhtml? I can attach a caption to a table by a "<caption>" tag but I would like to do sth similar to an image. How to do it in a natural...
11
by: Michael Powe | last post by:
How can I make an XHTML-compliant form of an expression in this format: document.write("<scr"+"ipt type='text/javascript' src='path/to/file.js'>"+"</scr"+"ipt>"); this turns out to be a...
10
by: Robert Huff | last post by:
Can someone offer suggestions why, on the same server (Apache 2.2.8), this works <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html lang="en-US"> <head> <link rel=stylesheet...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.