Optimizing with H1 and H2 Tags

4 replies
  • WEB DESIGN
  • |
I'm building a new website and have run up against an old problem that I really need an answer to.

If I follow the SEO guidelines to use the H1 Tag for the title and the H2 Tag for the subtitle, my design looks ridiculous because of the sizes that these tags automtically create.

How can I get the size of font I want, and the good SEO, while using these tags?

I'm stumped,

Cathy
#optimizing #tags
  • Profile picture of the author tajimd
    h1 {
    font-size:16px; /* or whatever font size you want */
    }

    h2 {
    font-size:14px; /* or whatever font size you want */
    }

    Put above css in your styesheet and you should be fine.

    Regards
    Tajim
    {{ DiscussionBoard.errors[2000021].message }}
  • Profile picture of the author ninal
    Are you using stylesheets?

    If you are you can use this code within your css file:

    Code:
    h1{
     color:green; 
     font-size:15px;
    }
    if you don't have an external stylesheet

    Code:
      <h1 style="color:green;font-size:15px;>Text here</h1>
    Of course you can change the values for the color and font size.
    Signature
    Hello
    {{ DiscussionBoard.errors[2000028].message }}
    • Profile picture of the author CKTaylor7
      Thanks for helping everyone!
      {{ DiscussionBoard.errors[2012669].message }}
    • Profile picture of the author BobJutsu
      Originally Posted by ninal View Post

      Are you using stylesheets?

      If you are you can use this code within your css file:

      Code:
      h1{
       color:green; 
       font-size:15px;
      }
      if you don't have an external stylesheet

      Code:
        <h1 style="color:green;font-size:15px;>Text here</h1>
      Of course you can change the values for the color and font size.
      if not using an external stylesheet, then:
      <style type="text/css">
      h1{
      color:green;
      font-size:15px;
      }
      </style>

      in the head. But, use an external stylesheet...easier all around. Don't ever, ever bug with inline styles.
      {{ DiscussionBoard.errors[2013280].message }}

Trending Topics