I'm trying to validate my page. I'm suing:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
I have a few errors that I have no idea how to fix. Here it is:
character "&" is the first character of a delimiter but occurred as data:
shows & gigs without.... (plain text)
there is no attribute "name":
<form name="login" action="index.asp" method="post">
document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag:
<input type="text" name="username" value="username" /><br />
document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag:
...="password" name="username" value="password" /><br />
I would suggest that you simply use HTML 4.01 Strict.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Originally posted by weee character "&" is the first character of a delimiter but occurred as data:
shows & gigs without.... (plain text)
In XHTML, & must be written out as &amp;.
Originally posted by weee there is no attribute "name":
<form name="login" action="index.asp" method="post">
In XHTML, the NAME attribute has been deprecated. Use ID instead.
Originally posted by weee document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag:
<input type="text" name="username" value="username" /><br />
Elements within a FORM must be enclosed within a block-level element. The most common being a DIV:
<form action="" method="">
<div>
<!-- form stuff here -->
</div>
</form>
Or a FIELDSET:
<form action="" method="">
<fieldset>
<legend>Form</legend>
<!-- form stuff here -->
</fieldset>
</form>
Originally posted by weee document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag:
...="password" name="username" value="password" /><br />
Same as above.
However, I agree with Charles that you should just use HTML 4.01 Strict.
Thousand different paths
So many sterile ends
I chose the Devil's path
Never shall the sun kiss my face
And caress me with it's burning light
For I dwell in the shadows
And sleep side by side with death
Originally posted by weee why? What's the difference?
XHTML has all kinds of little differences with HTML. If you don't really know what you are doing you can cause all kinds of trouble.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
I guess I'm going to use this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Do I still need to make BR tags like that: <br /> (including "img src" tags as well?
What do I need to do with that?
document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag:
<input type="text" name="username" value="username"><br>
document type does not allow element "INPUT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag:
<input type="password" name="username" value="password"><br>
Originally posted by Paul Jr Elements within a FORM must be enclosed within a block-level element. The most common being a DIV:
<form action="" method="">
<div>
<!-- form stuff here -->
</div>
</form>
Or a FIELDSET:
<form action="" method="">
<fieldset>
<legend>Form</legend>
<!-- form stuff here -->
</fieldset>
</form>
Thousand different paths
So many sterile ends
I chose the Devil's path
Never shall the sun kiss my face
And caress me with it's burning light
For I dwell in the shadows
And sleep side by side with death
Bookmarks