errors in the code -w3 validator

S

sugarbabe

Hi i am checking my site and w3 validator is says This page is not Valid HTML
4.01 Transitional!
and coming up with 2 error messages

1. Error Line 9 column 6: required attribute "TYPE" not specified.
<style>
The attribute given above is required for an element that you've used, but
you have omitted it. For instance, in most HTML and XHTML document types the
"type" attribute is required on the "script" element and the "alt" attribute
is required for the img" element.

2. Error Line 19 column 57: there is no attribute "HEIGHT".
<table border="0" cellpadding="0" cellspacing="0" height="1072" width="955">
You have used the attribute named above in your document, but the document
type you are using does not support that attribute for this element. This
error is often caused by incorrect use of the "Strict" document type with a
document that uses frames (e.g. you must use the "Transitional" document type
to get the "target" attribute), or by using vendor proprietary extensions
such as "marginheight" (this is usually fixed by using CSS to achieve the
desired effect instead).

This error may also result if the element itself is not supported in the
document type you are using, as an undefined element will have no supported
attributes; in this case, see the element-undefined error message for further
information.

How to fix: check the spelling and case of the element and attribute,
(Remember XHTML is all lower-case) and/or check that they are both allowed in
the chosen document type, and/or use CSS instead of this attribute. If you
received this error when using the <embed> element to incorporate flash media
in a Web page, see the FAQ item on valid flash.

Any ideas how to fix this, I am not very good at writing code.
 
S

sugarbabe

Most of my pages are now valid thanks for all your help. on two pages i have
this line.

<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns="http://www.w3.org/TR/REC-html40">

Have no idea where it came from when i delete it it keeps returning
 
S

Steve Easton

Are you using word art on the pages??


--
Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm

sugarbabe said:
Most of my pages are now valid thanks for all your help. on two pages i have
this line.

<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns="http://www.w3.org/TR/REC-html40">

Have no idea where it came from when i delete it it keeps returning
 
R

Ronx

You are, however using a text box for your contact details.
Text-boxes, WordArt and ShapeArt are all VML graphics, which are only
rendered correctly on IE5.5 on Windows, in particular, links in text
boxes do not work in non IE browsers.

See http://www.rxs-enterprises.org/tests/vml-graphics.htm for reasons
why VML should be avoided.

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/
http://www.rxs-enterprises.org/fp
 
M

Murray

There are 12 errors on the page. The first 3 are related to your use of
WordArt. Get rid of the word art.

The 4th is related to FP's improper use of the "language" attribute in a
form tag:

<form action="http://www.chelmerpcservices.co.uk/form/FormMail.cgi"
method="POST" onsubmit="return FrontPage_Form1_Validator(this)"
language="JavaScript" name="FrontPage_Form1">
-------------------------------------------------^^^^^^^^^^^^^^^^^^^^^^

That is not valid HTML.

The 5th is related to your use of the height attribute in a table tag -

<table border="0" width="100%" id="table2" style="border-collapse: collapse"
height="40">

That, too, is invalid HTML and should not be used.

The remainder are either WordArt again, or missing alt attributes in your
image tags.

All of these are easy to fix, either by removing from your page, or by
adding the required attribute.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top