homepage Welcome to WebmasterWorld Guest from 54.198.130.203
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
validating errors. help?
missing one of "object", "applet", "map", "iframe", "button", "ins", "del"
w_dude




msg:4642561
 9:12 am on Feb 5, 2014 (gmt 0)

So this is the code I have:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Pagina</title>
<link type="text/css" rel="stylesheet" href="ss.css"/>
</head>

<body>
<div id="ciup">
<h1>Page title</h1>
<h2> Page logo </h2>
</div>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<div id="top">
<a href="#" class="link">Job description details</a>
<a href="#" class="link2">Audit trail</a>
<a href="#" class="link3">Files</a>
</div>

<div class="spatiu">
<p>Basic function and Scope <span style="color:red">*</span>
<textarea class="intro" cols="178" rows="3" style="margin-left:20px" ></textarea>
</p>
<p>Task and duties <span style="color:red">*</span>
<textarea class="intro" cols="178" rows="3" style="margin-left:71px"></textarea>
</p>
<p>Work contacts <span style="color:red">*</span>
<textarea class="intro" cols="178" rows="3" style="margin-left:82px"></textarea>
</p>
<p>Independence of operation <span style="color:red" >*</span>
<textarea class="intro" cols="178" rows="3" style="margin-left:12px"></textarea>
</p>
<p>Supervisory responsability <span style="color:red">*</span>
<input type="radio" name="tip" value="Supervision"
checked="checked" style="margin-left:15px"/> Supervision
<input type="radio" name="tip" value="Direction"
checked="checked"/>Direction
<input type="radio" name="tip" value="None" />
None
<br/>
<div class="left">
<textarea cols="75" rows="3" style="margin-left:170px"></textarea>
</div>
<div id="one">
<p>Total number of subordinates
<textarea cols="77" rows="1" style="margin-top:5px"></textarea>
</p>
</div>

<br/>
<p>Physical effort <span style="color:red">*</span>
<textarea class="intro" cols="178" rows="3" style="margin-left:83px"></textarea>
</p>
<p>Work conditions <span style="color:red">*</span>
<textarea class="intro" cols="178" rows="3" style="margin-left:70px"></textarea>
</p>
</p>



<p style="color:#008AE6"><b> Minimum requirements</b></p>

<table>
<tr style="background-color:#C0C0C0">
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
<th>Header 4</th>
<th>Header 5</th>
</tr>
<tr>
<td>Row:1 Cell:1</td>
<td>Row:1 Cell:2</td>
<td>Row:1 Cell:3</td>
<td>Row:1 Cell:4</td>
<td>Row:1 Cell:5</td>
</tr>
<tr>
<td>Row:2 Cell:1</td>
<td>Row:2 Cell:2</td>
<td>Row:2 Cell:3</td>
<td>Row:2 Cell:4</td>
<td>Row:2 Cell:5</td>
</tr>
<tr>
<td>Row:3 Cell:1</td>
<td>Row:3 Cell:2</td>
<td>Row:3 Cell:3</td>
<td>Row:3 Cell:4</td>
<td>Row:3 Cell:5</td>
</tr>
<tr>
<td>Row:4 Cell:1</td>
<td>Row:4 Cell:2</td>
<td>Row:4 Cell:3</td>
<td>Row:4 Cell:4</td>
<td>Row:4 Cell:5</td>
</tr>
<tr>
<td>Row:5 Cell:1</td>
<td>Row:5 Cell:2</td>
<td>Row:5 Cell:3</td>
<td>Row:5 Cell:4</td>
<td>Row:5 Cell:5</td>
</tr>
<tr>
<td>Row:6 Cell:1</td>
<td>Row:6 Cell:2</td>
<td>Row:6 Cell:3</td>
<td>Row:6 Cell:4</td>
<td>Row:6 Cell:5</td>
</tr>
</table>
<br/>
<br/>
</div>

<hr/>

<div id="buton">
<a href="#" class="myButton">Submit</a>
<a href="#" class="myButton2">Save</a>
<a href="#" class="myButton3">Cancel</a>
</div>

</body>
</html>


And I have to validate it with HTML 1.0 Transitional. Did that and got the following errors:

Error Line 46, Column 22: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<div class="left">


Line 56, Column 5: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<p>Physical effort <span style="color:red">*</span>


+2 more but they're the same: one with div, one with p

 

w_dude




msg:4642568
 9:21 am on Feb 5, 2014 (gmt 0)

ok, got it :) closed a p tag earlier and now it says "tentatively" :D so that's good :) cheers

drhowarddrfine




msg:4642612
 1:46 pm on Feb 5, 2014 (gmt 0)

This line doesn't make any sense:
<html xmlns="http://www.w3.org/1999/xhtml">

Your doctype declares HTML5 but you then declare your namespace as XHTML. In no way are you serving XHTML so you do nothing but confuse the browsers (which actually just ignore that). So remove the xmlns part.

swa66




msg:4642684
 3:58 pm on Feb 5, 2014 (gmt 0)

Actually there's nothing wrong with the namespace.
It's allowed in html5 (and in xhtml5). It's even mandatory if one creates polyglot html5.

I'd leave it in - but then I generate polyglot xhtml5 (that's code that's valid HTML5 and xhtml5 at the same time) - and yes I serve it as xml if the browser is asking for it (IE is the usual culprit).

But I'd add a
<meta charset="UTF-8" />
line (assuming you're using UTF 8 - which you should be using given that xml namespace


HTML 1.0 Transitional.

HTML 1.0 ? Are you *sure* that's what you mean not html5 or xhtml or so ? HTML1.0 is like ancient history and didn't have a transitional variant.
I guess you meant xhtml1.0 transitional.
I honestly would not want to use that - and I'm not even in the boat of the "thou shall not use xhtml" followers. I'd go for polyglot html5 served as xml where possible instead if your code generates xml.
If you have validation issues then -it'll blow up in your browser - so be sure it's valid ...

Polyglot html5: [webmasterworld.com...]

drhowarddrfine




msg:4642724
 5:29 pm on Feb 5, 2014 (gmt 0)

The namespace is of no value, ignored, and is for XHTML, so it makes no sense whatsoever to include it in a HTML document.

But here's a test (not to pick on the OP). Can the OP give the reason for including it? I'd bet the only answer is cause he copied it from somewhere else or he's always done it that way or cause he thought he had to.

swa66




msg:4642763
 7:36 pm on Feb 5, 2014 (gmt 0)

I think the OP is validating it as xhtml to be honest and that the
I have to validate it with HTML 1.0 Transitional
is missing an X (given the Transitional)
lucy24




msg:4642791
 8:19 pm on Feb 5, 2014 (gmt 0)

Error Line 46, Column 22: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<div class="left">

Line 56, Column 5: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<p>Physical effort <span style="color:red">*</span>

When you get this type of error message, the chances are at least 99 out of 100 that you are not missing any of the things they list. What you are missing is a closing tag. A single omitted tag can easily lead to a cascade of hundreds or even thousands of errors. So always look in the line or two immediately before the reported error.

g1smd




msg:4648859
 10:52 am on Feb 25, 2014 (gmt 0)

Rather than using <br> to space elements, use CSS.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved