SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Struggling to get html5 to work with IE version 8 and old, please help!

    Hi all, Iím a newbie who just been learning html and css and building my first site for about a month or so and to date Iíve managed to solve all of the issues that Iíve come up against. However, Iíve been stuck on how to use html5 on my site and have IE versions 8 and older play along for a few days now. Assuming that my css is correct (a big assumption I know but I guest that this part of the form is just for html), it would be great if you could cast an expert eye over the below html and let me know if there is anything wrong with it in terms of IE version 8 and older not playing along (by the way with the associated css it works fin in other browser):

    HTML Code:
    <!DOCTYPE html>
    <html lang="en">
      <header>
        <title>[noparse]www.example.com[/noparse] - Home.</title>
        <meta charset="utf-8" />
        <!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <link href="style2.css" rel="stylesheet" type="text/css"/>
      </header>
      <body>
       <nav>
            <a href="www.examplea.html" <span class="example-a">Example A</span></a>      
            <a href="www.exampleb.html" <span class="example-b">Example A</span></a>
            <a href="www.examplec.html" <span class="example-c">Example A</span></a>
       </nav>
    </body>
    </html>
    Last edited by SpacePhoenix; Jul 18, 2012 at 13:35. Reason: placed html tags around code

  2. #2
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    The HEADER should be HEAD and the A elements are malformed; you haven't close the start tags.

  3. #3
    SitePoint Addict
    Join Date
    May 2006
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by xhtmlcoder View Post
    The HEADER should be HEAD and the A elements are malformed; you haven't close the start tags.
    Looks liek the a elements are closed, they just have the spans in them.

    Check you are calling the file "style2.css" correctly. You may need /css/style2.css or something, depends on where it is saved. took me ages to get my head around when I started.
    Get a little bit extra out of life with www.stakemyrep.com
    and stay motivated the easy way!

  4. #4
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    The A elements are missing '>' from the 'start tag' Lee highlighted the text so we can clearly see.

  5. #5
    SitePoint Addict
    Join Date
    May 2006
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    arr looked for ages did not see. heheh
    Get a little bit extra out of life with www.stakemyrep.com
    and stay motivated the easy way!

  6. #6
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank for all for your advice. I am so happy as I've now got it licked. My script was ok all along in terms of being able to render my styling in IE8, etc, as it was just... wait for it... my security settings that were preventing it from rendering. You live and learn!


Tags for this Thread

Bookmarks

Posting Permissions

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