473,503 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5236
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
2210
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
1424
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
2907
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
2675
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
1143
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
2411
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
8910
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
1458
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
2186
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
1294
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
7202
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
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.