471,627 Members | 1,152 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

make a class with H1 properties?

What I have to do is replace some h1 tags with basic p tags but the
end appearance has to be the same. I'm thinking, where I have
<H1>yada</H1>
I can replace it with
<p class="looks like it would if this was an H1 tag">yada</p>
if you get my meaning, so what properties would that class tag have to
have? I mean, what's the standard H1 tag properties please?
I'm sure this is defined somewhere but I can't find it.

Many thanks.

BB
--

http://www.fat-odin.com/
http://www.kruse.co.uk/close-ended-questions.htm
http://www.kruse.co.uk/seo-software-review.htm
Oct 17 '07 #1
3 5174
On Wed, 17 Oct 2007 12:19:56 +0200, Big Bill <bi**@kruse.co.ukwrote:
What I have to do is replace some h1 tags with basic p tags but the
end appearance has to be the same. I'm thinking, where I have
<H1>yada</H1>
I can replace it with
<p class="looks like it would if this was an H1 tag">yada</p>
if you get my meaning, so what properties would that class tag have to
have? I mean, what's the standard H1 tag properties please?
I'm sure this is defined somewhere but I can't find it.
There are NO standard H1 properties. Each UA has it's own default
rendering. You could set the presentation for both by using
h1,p.h1classwhichshouldnotbeneeded{font-size:150%;font-weight:bold;} for
instance.

Care to explain why should something be displayed 'like a H1' and not be
one? You might be trying to solve the wrong problem.
--
Rik Wasmus
Oct 17 '07 #2
On 2007-10-17, Big Bill wrote:
>
What I have to do is replace some h1 tags with basic p tags but the
end appearance has to be the same. I'm thinking, where I have
<H1>yada</H1>
I can replace it with
<p class="looks like it would if this was an H1 tag">yada</p>
Why do you have to do that? If it has to look like a heading, why
not make it a heading?
if you get my meaning, so what properties would that class tag have to
have? I mean, what's the standard H1 tag properties please?
I'm sure this is defined somewhere but I can't find it.
There is no standard, though most browsers have fairly similar
settings. The suggested default style sheet is at
<http://www.w3.org/TR/CSS21/sample.html>.
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Oct 17 '07 #3
Big Bill wrote:
What I have to do is replace some h1 tags with basic p tags
Why? If it's a heading, it should be marked up as such. If it's not
really a heading, do as Mr Wasmus suggests, except use a class name
that's descriptive of the content, not the styling.

--
Berg
Oct 17 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

28 posts views Thread by Steven Bethard | last post: by
7 posts views Thread by Steven Bethard | last post: by
2 posts views Thread by james | last post: by
19 posts views Thread by zzw8206262001 | last post: by
8 posts views Thread by Per Bull Holmen | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.