PDA

View Full Version : validator error for css



rusting
23 Nov 2006, 10:47 PM
Hi,
I have designed a website using css and then liked an external css file to the page. However when i ask the html validator to validate my page, i get atleast 15-20 errors, most of them being about head, body, style tags.
what am i doing wrong? But if i write the css code into the style section, the validator says that my page has been successfully validated.
I have written the link (<link rel="stylesheet" type="text/css" href="CSS.css" />) just after the title end tag and before the start of style tag.
also can anyone tell me where can i find tutorials to design forms and then successfully send the content to an email address withput opening a email client such as outlook express?
Specifically i am looking for a tutorial to design a commen form into my page
Thanks

Wickham
24 Nov 2006, 02:53 AM
You seem to have the link to your stylesheet correct.
See http://www.w3schools.com/html/html_styles.asp
It sounds like it isn't being found, so check your directory structure. The CSS file should be in the same directory as the html file with the way you have linked it.

Are you using HTML or XHTML? Ending the stylesheet link with /> is XHTML; HTML is just >

The stylesheet link should be on its own in the head section, don't put it in <style>...</style> tags.

Sending form info without opening your email client needs server side scripting; see comments in these posts; then ask again on the PHP board:-
http://www.codeguru.com/forum/archive/index.php/t-202893.html
This javascript version might be useful; see item 7 :-
http://www.programsdb.com/script/646/15456/Crazy_Email_Form_Without_Mailclient.html

I haven't tried either solution.