HTML Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherHTML Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old June 12th, 2003, 11:38 AM
rustybrick's Avatar
rustybrick rustybrick is offline
Contributing User
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Apr 2003
Location: New York, USA
Posts: 2,642 rustybrick User rank is Private First Class (20 - 50 Reputation Level)rustybrick User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 17 h 40 m 42 sec
Reputation Power: 8
CSS <h1> tag

Is it less effective to use the h1 tag as follows:

<h1 class="classname">text</h1>

as opposed to

<h1>text</h1>

Thanks

Reply With Quote
  #2  
Old June 12th, 2003, 07:12 PM
rustybrick's Avatar
rustybrick rustybrick is offline
Contributing User
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Apr 2003
Location: New York, USA
Posts: 2,642 rustybrick User rank is Private First Class (20 - 50 Reputation Level)rustybrick User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 17 h 40 m 42 sec
Reputation Power: 8
Anyway know the answer to this?

Reply With Quote
  #3  
Old June 12th, 2003, 07:56 PM
Darrin Ward's Avatar
Darrin Ward Darrin Ward is offline
Founder, SEOChat.com :)
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Dec 2002
Location: Miami, Florida
Posts: 1,439 Darrin Ward User rank is Corporal (100 - 500 Reputation Level)Darrin Ward User rank is Corporal (100 - 500 Reputation Level)Darrin Ward User rank is Corporal (100 - 500 Reputation Level)Darrin Ward User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 17 h 5 m 20 sec
Reputation Power: 11
To be honest I'm not sure myself, but given that this and redefining the tag require CSS, you'd be better off redefining a tag as opposed to using the class attribute.
__________________
Darrin J. Ward, a Professional SEO Consultant and Original Founder of SEO Chat (this site), Google Dance Tool & some other cool stuff!

* Rankings Reporter - Track your Website's Keyword Rankings in Google & Yahoo.

* ChatButton - Free AJAX Chatboxes to embed onto any Webpage - super-easy copy/paste setup!.

Reply With Quote
  #4  
Old June 12th, 2003, 07:58 PM
rustybrick's Avatar
rustybrick rustybrick is offline
Contributing User
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Apr 2003
Location: New York, USA
Posts: 2,642 rustybrick User rank is Private First Class (20 - 50 Reputation Level)rustybrick User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 17 h 40 m 42 sec
Reputation Power: 8
hmm i would think so, but my programmer say that you can put font colors in the h1 tag, so whats the difference between a color and a class to google?

Reply With Quote
  #5  
Old June 12th, 2003, 08:00 PM
rustybrick's Avatar
rustybrick rustybrick is offline
Contributing User
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Apr 2003
Location: New York, USA
Posts: 2,642 rustybrick User rank is Private First Class (20 - 50 Reputation Level)rustybrick User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 17 h 40 m 42 sec
Reputation Power: 8
thanks for the response

Reply With Quote
  #6  
Old June 12th, 2003, 08:03 PM
Darrin Ward's Avatar
Darrin Ward Darrin Ward is offline
Founder, SEOChat.com :)
SEO Chat Beginner (1000 - 1499 posts)
 
Join Date: Dec 2002
Location: Miami, Florida
Posts: 1,439 Darrin Ward User rank is Corporal (100 - 500 Reputation Level)Darrin Ward User rank is Corporal (100 - 500 Reputation Level)Darrin Ward User rank is Corporal (100 - 500 Reputation Level)Darrin Ward User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 17 h 5 m 20 sec
Reputation Power: 11
It's very difficult to say, but I'd go with specifying the color in the CSS for the H1 tag, as other ways are more likely to be seen as an attempt to cloak the H1 tag.

Reply With Quote
  #7  
Old June 12th, 2003, 08:07 PM
rustybrick's Avatar
rustybrick rustybrick is offline
Contributing User
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Apr 2003
Location: New York, USA
Posts: 2,642 rustybrick User rank is Private First Class (20 - 50 Reputation Level)rustybrick User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 17 h 40 m 42 sec
Reputation Power: 8
Thank you for sharing the knowledge!

Reply With Quote
  #8  
Old June 16th, 2003, 06:25 AM
jimmy-yo's Avatar
jimmy-yo jimmy-yo is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: UK
Posts: 99 jimmy-yo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
I wouldn't worry about it to much.

Google seems to be taking the H tags less serious nowadays. Why? because on current standing, website with SEO techniques applied have the edge over none optimised sites. Now we all know that google isn't exactly that fond of SEO's, so by putting less emphasis on the h tags (which probably only SEO's know about) means that Joe Shmoe's website will get more of a chance to compete.

I've seen sites with bolder text at the top of the screen do equally as well as sites using the H tags.

--

<h1>text</h1>

The above would be my preferred H tag to use. Why? .., because it looks so much cleaner... haaaaaaaaaa, i like clean

Reply With Quote
  #9  
Old June 29th, 2003, 01:28 PM
asmith's Avatar
asmith asmith is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: 4th Dimension
Posts: 121 asmith User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Why would you want to create a css class for the h1 tag? Just modify the h1 tag in the css file (if you have an external style sheet):


h1 {
font-size: 20px;
font-family: Arial, Helvetica, sans-serif;
color: #002354;
padding-left: 3px;
}

Reply With Quote
  #10  
Old June 29th, 2003, 07:27 PM
thewatcher's Avatar
thewatcher thewatcher is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 438 thewatcher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 6 m 58 sec
Reputation Power: 6
better yet

h1 {
font: 11px verdana, arial, tahoma #000;
padding: 0px 0px 0px 3px;
margin: 0px;
}

Reply With Quote
  #11  
Old July 24th, 2003, 08:19 PM
arden42 arden42 is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Australia
Posts: 43 arden42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
If you were wanting to change the way all your h1 headings look, then yes you could set it in CSS like:

h1 {
font-size: 1.4em;
color: black;
font-face: arial, sans-serif;
}

but if you want it to only change for some of your level 1 headings, then a class is the best way to do it:

h1.classname {
font-size: 1.4em;
color: black;
font-face: arial, sans-serif;
}

I wouldn't think that Google would really care whether you have a class in your h1 tag - it is still an h1.

Just my opinion, though - I haven't got any proof. :-)
__________________
Mark Parnell
http://www.clarkecomputers.com.au

Reply With Quote
  #12  
Old July 24th, 2003, 09:00 PM
thewatcher's Avatar
thewatcher thewatcher is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 438 thewatcher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 6 m 58 sec
Reputation Power: 6
Mark, you wouldn't have to have <h1 id="classname"></h1> you could just have the h1 inside a div (which is what usually happens) then just put the style like this

#classname h1 {
sizeandstuffhere: 11px;
}

but you probably already knew this

Reply With Quote
  #13  
Old July 24th, 2003, 09:27 PM
arden42 arden42 is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Australia
Posts: 43 arden42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Yes, you could. (Though it should be #idname rather than #classname - just nitpicking!)

And specifying font size in pixels isn't a good idea - % or em is the way to go.

If you use a class you can use it more than once on the same page (not relevant for h1, but could be for other elements). For h1 your solution is equally as good, though.

Reply With Quote
  #14  
Old July 24th, 2003, 09:34 PM
thewatcher's Avatar
thewatcher thewatcher is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 438 thewatcher User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 6 m 58 sec
Reputation Power: 6
Yes Mark you are right about the font, but because of the flaws in some browsers i prefer to use px..

just a question do you use em all the time? for usability issues em is good, but because of the browsers i would rather px..

Reply With Quote
  #15  
Old July 24th, 2003, 09:44 PM
arden42 arden42 is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Australia
Posts: 43 arden42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
What flaws in which browsers?

IE has a bug that causes it to scale text dramatically if font sizes are specified in em. This can be avoided if you either use % or add body{font-size: 100%;} in your stylesheet.

I generally use %.

IE also has a bug that means if you have specified font size in px, then the user can't resize the text at all, so px is definitely not user-friendly.

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherHTML Coding > CSS <h1> tag


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump