473,395 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 5233
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Simon Harvey | last post by:
Festive greetings fellow programmers! I've been programming now for about 4, maybe 5 years now. 4 of those years were at university so and I havent had much work experience of making real world...
12
by: Will Pittenger | last post by:
I am attempting to reuse code. Some of the code is such that I need a base class for my forms. I know that those base classes must be in a DLL. However, if I create a "Class Library" project, I...
28
by: Steven Bethard | last post by:
Ok, I finally have a PEP number. Here's the most updated version of the "make" statement PEP. I'll be posting it shortly to python-dev. Thanks again for the previous discussion and suggestions!...
7
by: Steven Bethard | last post by:
I've updated PEP 359 with a bunch of the recent suggestions. The patch is available at: http://bugs.python.org/1472459 and I've pasted the full text below. I've tried to be more explicit about...
2
by: james | last post by:
I recieve a business object and need to create a form to edit each property. This object is huge (like over 100 properties), and I dont want to make 100 label/textboxes by hand. Does anyone know...
19
by: zzw8206262001 | last post by:
Hi,I find a way to make javescript more like c++ or pyhon There is the sample code: function Father(self) //every contructor may have "self" argument { self=self?self:this; ...
8
by: Per Bull Holmen | last post by:
Hey Im new to c++, so bear with me. I'm used to other OO languages, where it is possible to have class-level initialization functions, that initialize the CLASS rather than an instance of it....
3
by: Charlie Bear | last post by:
i've got myself into a bit of an oo mess. it's probably me misunderstanding how oo works. I've got a base class called "Feature" which some classes inherit. in the database i've stored the data...
19
by: active | last post by:
I'm using a ComboBox to display objects of a class I've defined, say CQQ. Works great except somehow I occasionally set an Item to a String object instead of an object of type CQQ. It looks...
7
by: Andy B | last post by:
I have an instance of an object that needs to be accessed by all members of a page like page_load, button_click events and so on. Where in the codebehind would I put the creation of the object...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.