Submit Your Article Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read


Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2005, 05:11 PM
WebProWorld New Member
 
Join Date: Dec 2004
Location: PA
Posts: 16
Ritch111 RepRank 1
Default Probably a simple H1 tag question

What is the best way to write your H1 tags?

Is it best to get the Header tag right next to the phrase or word? For example.
<H1>Find the Best information</H1>

or

is it ok to have other HTML code in between, such as style, font, etc?

How do you keep the font normal size and not freak the page out when you make the tags like <H1>Find the Best information</H1>

I'm having a tough time keep the font the size I want.

Thanks,
Ritch
Reply With Quote
  #2 (permalink)  
Old 03-10-2005, 05:24 PM
MarcieZoob's Avatar
WebProWorld Veteran
 
Join Date: Jul 2004
Location: Michigan, USA
Posts: 931
MarcieZoob RepRank 2
Default

Define the font face and style for your H1 tags in your stylesheet. That way you can make them the same size as your body text.
__________________
Marcie Wolf
AlphaGeek Web Design | MarcieWolf.com
Reply With Quote
  #3 (permalink)  
Old 03-10-2005, 05:29 PM
WebProWorld New Member
 
Join Date: Dec 2004
Location: PA
Posts: 16
Ritch111 RepRank 1
Default

MarcieZoob,

Thanks for the reply. I'm coming from a frontpage enviroment and forgot about adding this to the style sheet.

Thanks,

Ritch
Reply With Quote
  #4 (permalink)  
Old 03-11-2005, 06:50 AM
Faglork's Avatar
WebProWorld Veteran
 
Join Date: Feb 2005
Location: Forchheim, Germany
Posts: 941
Faglork RepRank 1
Default

Here's the offical w3c reccomendation:
http://www.w3.org/TR/html4/struct/global.html#h-7.5.5

Tip: Write all tags in lower case to make a future switch to xhtml easier <h1> instead of <H1>.

Additionally, maybe you should set the initial font size in your CSS to 101% - due to a bug in some browsers (cant recap which ones) font sizes of the h tags may be rendered just too big. That way, you can keep them in ems or percentages and do not have to fix the sizes (if your design can adapt to larger/smaller font sizes).

Alex
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 04:29 PM.



Search Engine Optimization by vBSEO 3.3.0