Forum Moderators: open
Line 20, column 50:
... brides bouquets and corsages at our mart." border="0" width="730" src= ...
^
Error: there is no attribute "border" for this element (in this HTML version)
Line 20, column 50:
... t." border="0" width="730" src="images/logo.gif" />
^
Error: element "img" not allowed here; possible cause is an inline element containing a block-level elementLine 21, column 5:
<br />
^
Error: element "br" not allowed here; possible cause is an inline element containing a block-level element
Line 21, column 5:
<br />
^
Error: element "br" not allowed here; possible cause is an inline element containing a block-level element
Doesn't that refer to the specifications for nesting of inline and block elements? Without seeing the code, I surmise it's because a block-level element is contained inside of tags for an inline element.
Birdman, let us know how it comes off after you check those two things out. If those are all over the page, it may be that you're pretty close to validating unless there's a lot of other errors in addition.
The power of the W3C Validator is that it gives conclusive "pointers" regarding what code snippets it flags. Sometimes it might seem a bit overwhelming, but it is not... really! Now first off, STRICT is just that: Strict! Some of the elements and attrbutes that are allowed in XHTML Transitional:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Are not allowed in Strict:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
With Transitional, you are allowed to include <font></font> elements (resist these! use CSS!) and use attributes such as bgcolor="ffffff" while these are NOT allowed in XHTML Strict which expects presentational styling to come from CSS instructions rather than HTML tags.
A good reference for DEPRECATED TAGS & Attributes will come in handy here.
Also, as Marcia points out, improper nesting will earn you plenty of "yellow highlighter" courtesy of the W3C Validator! ;)
An example of an improperly nested element would be this:<a href="another_page.htm"><h3>More Infomation</h3></a>
The above is incorrect while this:
<h3><a href="another_page.htm">More Information</a></h3>
is valid.
Remember, with XHTML STRICT, all "presentational" information is expected through style sheets.
You might sweat a bit before you get your code down but, you will have learned a lot about the "logic" of coding structure.
Keep the faith!
- papabaer