Solved

In XHTML Transitional the attribute is not permitted for the tag

Posted on 2011-09-19
1
517 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 83

Accepted Solution

by:
Dave Baldwin earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

914 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now