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...

One of the most powerful, yet simple manipulations that can be done with your htaccess file is a basic redirect function.

One of the most powerful, yet simple manipulations that can be done with your htaccess file is a basic redirect function. A .htaccess file resides in the web-root directory of most Linux servers that have Apache installed (which is a majority of the servers online). This .htaccess file is a text file which contains user-defined server configuration settings, which include URL manipulations.

The simplest and most common configuration setting is the redirect. Using this function, you can create pseudo directories and files on your local host that will redirect to other URLs. This can be used to hide (or cloak) affiliate links and manage the file linking structure of your website more efficiently. The syntax is simple:

redirect {local/pseudo location} {destination URL}

Example:

redirect    /facebook     http://www.facebook.com/pa…

If this htaccess file resides on my blog at http://www.matthewbredel.com and I typed in:

http://www.matthewbredel.com/facebook

My host will redirect the user to:

http://www.facebook.com/pages/Ryan-Moran-and-Matthew-Bredel/…

Try it!

Go to: http://www.matthewbredel.com/facebook

I think you would agree that the local URL is much cleaner and easier to remember than the destination URL.

Tags: , , , ,

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

First Name:
Email:

15 Responses to “Htaccess and Redirects for Dummies”

  1. I just had a “duh!” moment. Been trying to figure out a way to do some redirecting, and I hadn’t even though to do an .htcaccess file. Duh… I suppose that’s why you’re the mastermind.

  2. I spent awhile trying to find a solution to this problem (including cheesy cloaking programs, etc.), but they did not work well and these redirects are SO easy. It was a true lightbulb moment when I stumbled about these htaccess files.

  3. nice little intro to .htaccess files

  4. [...] Htaccess and Redirects for Dummies - A good intro… [...]

  5. Matt,
    Oh my gosh this looks very easy.I wish I’d seen this post last year when you wrote it!

    I say ‘oh my gosh’ because I broke 12 of my websites when I tried to do something like this a few months ago. The nice people at hostgator fixed it for me which was nice of them but didn’t teach me what I did wrong.

    So…next week I’m going to see if I can do another one myself. Let’s hope I don’t break anything. LOL.

  6. Hey Dana,

    You know you’ll always have me as tech support! But remember that fiddling around with htaccess files can be scary, as you have learned.

    Still, it is perhaps one of the most overlooked, under-used, super powerful (and most cryptic!) components of managing a website’s linking structure!

    cheers…matt

  7. [...] most of my redirects, I edit my htaccess file: Using Your HTAccess File to Redirect Users.  I actually wrote a post on this and did a video, too (see previous link).  This may be a little [...]

  8. I have been trying to Gain access to this site for a while. I was using IE7 then when I tried Firefox, it worked just great? Just wanted to bring this to your attention. London,UK

  9. Thanks, thats some great information there. Let me know when you update the blog as I would love to keep up to date with your articles.

  10. I use Netobjects fusion to create and update my site. I can not figure out a way to use this .htaccess redirect in it. If it can’t be done, how do I get around it?


  11. Almost everyone that earnsan income on the internet (even the millionaires) do so through affiliate marketing. Being successful in affiliate marketing involves applying the formula that makes other affiliate marketers successful. For example, autoblogging. Autoblogging is one of the least well-known forms of making money for quite some time… basically because it’s quite difficult to make a good auto-blog. Yet, when done right, it can provide you with a lifetime of passive income with the only real work required being the setting up process. Video Marketing, and several other marketing strategies are all designed to drive traffic to your site, can be incorporated gradually in order to raise the position your site appears in the search engine results page when any one searches for a term related to your site. And yet, even this can be totally automated.

  12. Cool thing about .htaccess is if you break your site, just delete the file, revert to your previous version and try again.

  13. I have read a few of the posts on your site now, and I truly like your style of blogging. I added it to my favorites internet site list and will be checking back soon. Please visit my web site too and let me know your thought.

  14. This was THE BEST cite explaining the URL re-writes. Others make it soooo complicated. Thank you , I could not believe how quickly I got this done. I am very busy and don’t leave feedbacks almost at all but this time the comment is so deserved that I could not miss it.

  15. hello,
    iam trying to redirect error page to a custom error page by using the follow .htaccess code { ErrorDocument 404/error.html } but

    when i open my document in browser it is giving me error saying
    { Internal Server Error } can you please help me to solve the problem


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>