Go Back   HTMLCenter Web Development Forums > Web Design and Development > Programming and Scripting

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-24-2002, 04:09 PM
Registered User
 
Join Date: Jan 2002
Posts: 3
Arrow Changing <H1> tags

I am trying to use a syle sheet or a <style> tag to change my <H1> tags. I heard that it really helps in some search engines. The problem I am having is that I always get a blank line before and after the tag. Everything in the <stlyle> tag or style sheet works, it just puts extra lines in there. I found a way around it by using a table and the <td> tags, but I would rather not use a table if at all possibe. Can anyone help me? I want this line to show up all as one font and size.

Here is my text with my <h1>keyword</h1> in the h1 tag.
Reply With Quote

  #2 (permalink)  
Old 01-24-2002, 05:11 PM
Allen's Avatar
Administrator
 
Join Date: Dec 2001
Location: Atlanta, Georgia, USA
Posts: 1,037
Hi Neil,

To the best of my knowledge, using an <h> tag will always put a break before the copy.

I suggest using a <div class="blah">copy</div>. You can also use the class within a span, p or table tag. This should fix your problem.

As for the search engines, what you are saying used to be true but I am not sure it is still the case. I will ask some of my search engines bud***s and get back with you.

Thanks,
Allen
Reply With Quote
  #3 (permalink)  
Old 01-25-2002, 03:38 AM
Till's Avatar
Administrator
 
Join Date: Jan 2002
Location: Berlin, Germany
Posts: 1,453
Re: Changing <H1> tags

Hi Neil!

Quote:
Originally posted by Neil Wardyn
I am trying to use a syle sheet or a <style> tag to change my <H1> tags. I heard that it really helps in some search engines. The problem I am having is that I always get a blank line before and after the tag. Everything in the <stlyle> tag or style sheet works, it just puts extra lines in there. I found a way around it by using a table and the <td> tags, but I would rather not use a table if at all possibe. Can anyone help me? I want this line to show up all as one font and size.

Here is my text with my <h1>keyword</h1> in the h1 tag.
I haven't heard about <h1> influencing your ranking, but if you want search engines to "notice" you, just put the "description" (from the meta tags) somewhere on your page. For example:

Code:
<meta name="description" content="This page is about Meta Tags">
And somewhere in the <body>:

Code:
<!-- This page is about Meta Tags -->
Of course that's not everything there's to it. META tags are not some kind of magic, there's a lot more. We'll have a new improved article (tutorial) on meta tags and searchengines up soon. If you want I would notify you once it's available to the public.


Best regards,

_till
Reply With Quote
  #4 (permalink)  
Old 02-28-2006, 09:32 AM
Registered User
 
Join Date: Feb 2006
Posts: 1
Lightbulb Some info and a solution

H1 tags do indeed influence your pagerank on certain search engines. Some factors that are ranked higher than H1 include the page title, page filename, and domain name. Meta tags are also a good place to put keywords, but they are less influential due to those who fill them with hundreds of innacurate keywords, having one or two keywords in your page filename and H1 tags is a good idea.

Now to answer your question, H1, and all other H tags have an implied line-break. To overcome this you simply need the following CSS rule:
h1 {
display: inline;
}

You may also be referring to the large Margin and Padding that surrounds H tags, varying by text size. To overcome those, use these rules:
h1 {
margin: 0;
padding:0;
}

Last edited by dabdinoor : 02-28-2006 at 09:35 AM.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -5. The time now is 01:54 AM.

 
KickApps
Clicky Web Analytics


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter