Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

In XHTML Transitional the attribute is not permitted for the tag

Posted on 2011-09-19
1
Medium Priority
?
549 Views
Last Modified: 2013-11-19
I’m fairly inexperienced with HTML and I am using some sample code to help me write a web page
 that will take data from a CSV file and input it into a HTML table.  My page works fine with IE8,
 but it doesn’t work with Firefox.  I am working in ExpressionWeb and I am getting a red jagged
 line underneath some of the code.  When I move my cursor over the code I get a box saying
 “In XHTML 1.0 Transitional the attribute ‘datasrc’ is not permitted for the <table> tag.”  I also
 getting the error that  the ‘datafld’ is not permitted with the <span> tag.  How do I fix this so it will
 work with Firefox and other browsers?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Book Sale Listing</title>
<style type="text/css">
</style>
</head>

<body>

<p>The following books are available for sale:<br />
</p>
<table border="1" cellspacing="0" cellpadding="2" datasrc="#data">

<thead style="font-size: small">
<tr><th class="style30">Date and Time</th><th>Book</th><th>Edition</th><th>Author</th><th>Condition</th><th>ISBN13</th>
	<th class="style32">ISBN10</th><th>Price</th><th>Name</th><th>Phone</th><th>Email</th></tr>
</thead>

<tbody style="font-size: small">
<tr>
<td><span datafld='Date'> </span></td>
<td><span datafld='Book'> </span></td>
<td><span datafld='Edition'></span></td>
<td><span datafld='Author'> </span></td>
<td><span datafld='Condition'> </span></td>
<td><span datafld='ISBN13'> </span></td>
<td><span datafld='ISBN10'> </span></td>
<td><span datafld='Price'> </span></td>
<td><span datafld='Name'> </span></td>
<td><span datafld='Phone'> </span></td>
<td><span datafld='Email'> </span></td>
</tr>
</tbody>

</table>

<object ID=data classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
<param nAme="DataURL" value="formdata.csv" />
<param nAme="UseHeader" value="true" />
</object>

<font size="1" FACE="ARIAL"><span class="style28">
<a href= "booksalelisting.htm">
<span class="style12">1</span></a><span class="style12"> </span></span></font>
</ TT>
<font size="1" FACE="ARIAL"></font>

</body>
</html>

Open in new window

0
Comment
Question by:smith2001ja
1 Comment
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 36561165
You probably can't, it's an IE only feature.  http://www.w3schools.com/xml/xml_dont.asp
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

886 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