Solved

In XHTML Transitional the attribute is not permitted for the tag

Posted on 2011-09-19
1
515 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 82

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
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 …

743 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

11 Experts available now in Live!

Get 1:1 Help Now