Results 1 to 2 of 2

Thread: validator error for css

  1. #1
    Join Date
    Aug 2006
    Posts
    19

    validator error for css

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    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/archiv.../t-202893.html
    This javascript version might be useful; see item 7 :-
    http://www.programsdb.com/script/646...ailclient.html

    I haven't tried either solution.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •