Help need where to put the H1 tag on this code

Discussion in 'HTML & Website Design' started by rimon, Nov 25, 2012.

  1. #1
    Hi, i am bewbie on coding, can you show me exactly where i have to put h1 tag <h1>....</h1> ?

    Here is the code, its embelled with my website Logo and test are grabbed from Title

    <div class="header">
    <div class="logo-adv">
    <!-- start logo -->
    <div class="logo"><a href="<?php echo home_url(); ?>" title="<?php bloginfo('title')?> - <?php bloginfo('description')?>"><img src="<?php echo $logo?>" alt="<?php bloginfo('title')?>" /></a></div>
    <!-- end logo -->


    please show me where to put the H1 tag properly , thanks :)
     
    rimon, Nov 25, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    What text, specifically, do you want in header size? The tag can go anywhere in the body of the page. (It's like asking us where to put the underline and you show us a letter you're typing up. The answer is usually "wherever you want it".)
     
    Rukbat, Nov 25, 2012 IP
  3. orphicpixel

    orphicpixel Member

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    46
    #3
    <div class="logo"><h1><a href="<?php echo home_url(); ?>" title="<?php bloginfo('title')?> - <?php bloginfo('description')?>"><img src="<?php echo $logo?>" alt="<?php bloginfo('title')?>" /></a></h1></div>

    but make sure to define the text-indent

     
    orphicpixel, Nov 25, 2012 IP
  4. Roger Pelt

    Roger Pelt Active Member

    Messages:
    121
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Usually H1 tag use as a heading tag, I think you should use H1 tag as your targeted keyword on the page. i.e. - "Apple Mobiles". H1 is most important part and it should be use only one time on the page.
     
    Roger Pelt, Nov 25, 2012 IP
  5. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #5
    You don't always need css.
     
    Rukbat, Dec 4, 2012 IP