Just Ask Matt - Answers

Changing the Font & Style of Your H1 Tags

QUESTION: (Rhonda) I am having problems changing the font size of my H1text. Is this very important? If so, how do I go about changing it?

Changing the text and/or style of an H1 tag is simple in CSS.  It does not affect anything other than how the visitor sees it though (i.e., if you use a large font, it means nothing more than a smaller font, in SEO terms or how Google sees it).

You can change the H1 tag locally or in the CSS definition file.

If you want to change all of the H1 tag settings in your entire website, you would do this in the CSS file:

h1 {
font-size: 24px;
}

You would use the h1 tag as you normally would:
<h1>This is my H1 tag</h1>

You can define a class in the CSS file which allows you to define your new style whenever you wish anywhere on the site:

.h1style {
font-size: 24px;
}

You would add this class to your h1 tag, when you wish it:

<h1 class=”h1style”>This is my H1 Tag</h1>

* Remember to add the “.” when defining it in the CSS to classify it as a class.

Finally, you can do it locally using a style attribute (without the CSS file):

<h1 style=”font-size:24px;”>This is my H1 Tag</h1>

All of the above do the exact same thing.  Their use is based on how often you use the style and how you want it defined (whether globally or locally).

Also, remember you can add other styles to the same definition (like color):

<h1 style=”font-size:24px; color:red;”>This is my H1 Tag that is Red and 24px high</h1>

I find that being able to change the styles of my text for header and other standard tags to be quite invaluable!  Knowing a little bit of CSS can go a long way.  Give this a try!

The easiest thing to try first is the local definition using the style attribute. If this is working for you, consider creating or editing your own CSS file!

Good luck!  cheers…matt


Read Full Post >>
More Questions & Answers...
GOT A QUESTION?

Who is Behind Marketing Mind?

Matthew Bredel begin_of_the_skype_highlighting     end_of_the_skype_highlightingMy name is Matthew Bredel and as of March, 2007, I am a full-time, work-at-home internet marketer. For close to 10 years, I worked for a defense company which was an OK job, but I was so uninspired in life and frankly, I needed some more money. That is when I first discovered internet marketing! Now I admit that I didn't start making thousands in my first couple of months (in fact, I lost my shirt!), but I finally saw the "internet light"...

Read More about Matthew Bredel
GURU STUFF END -->

Share This Post...

Trying to get three kids to smile and cooperate for a picture is impossible…this is the best I could do!

Trying to get three kids to smile and cooperate for a picture is impossible…this is the best I could do!

(Spanish Dancer, Tulip Fairy, Luigi…and my made-up Charger/hippie look)

…I wish I had that much hair!

halloween2009

(For those looking for a treat, check out some free chapters of Worldwide Brands The Whole$ale!)


Don't Buy Another Money Making Product Until You Watch These FREE Videos!

First Name:
Email:

9 Responses to “Boo! Happy Halloween!”

  1. Matt,

    That is one intense “comb over”. Who says this Holiday is just for kids?

    “… a little laughter goes a long way…”

    Ron


  2. Actually, I found all of the hair kind of irritating…Maybe bald is a blessing! Happy Halloween, Ron! cheers…matt

  3. Hi Matthew! Your kids are sooo cute, now what are u dressed as? -a cast off from the 70’s?!!!! lol

    I didn’t realize u use to be an electrical engineer and worked for a defense company to boot….now that’s not too shabby…for u to quit and go into IM’ing full time and make it…there’s hope for me yet!

    BTW, I love this blog set-up, nice and clean looking, easy on the eyes.

  4. Kim - I’m not exactly sure what the heck I am…this is the kind of cr*p that I have sitting in my closet. Next year, I’ll be more creative.

    And just to let you know…even though I quit my electrical engineering defense job well over 2 years ago, old co-workers still think that I am “nuts” for chasing “internet riches”…(I think I made a good choice!)

    thanks for the blog comment, too…I’ve been fiddling with it a lot lately!

    Happy halloween…cheers…matt

  5. Hi Matt,

    Great picture of you and your beautiful kids. Hope you guys have a blast tonight. Costume Recommendation: If you want to go as someone really scary, dress up as a Raider fan next year.

    Have fun,
    Michael

  6. Your kids are toooo cute! And, you too….I think..

  7. A Raider Fan? What do you want me to do - scar my kids for life???

  8. Good on you Matt,

    We have a therapy fund for our kids so when they grow up they can just see whoever they need to get over those embarrassing moments !!!

  9. LOL…I think I need my own therapy fund!!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>