473,569 Members | 2,737 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 5245
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.h1classwhi chshouldnotbene eded{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
2230
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 applications (although I trying to make some now). There is still a lot I don't know when it comes to making programs. I know all the theory, but...
12
1430
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 get a DLL, but only one that omits System.Windows. It does have a lot of useless (for me) web stuff in System. The topic...
28
2920
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! PEP: 359 Title: The "make" Statement Version: $Revision: 45366 $ Last-Modified: $Date: 2006-04-13 07:36:24 -0600 (Thu, 13 Apr 2006) $
7
2682
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 the goals -- the make statement is mostly syntactic sugar for:: class <name> <tuple>: __metaclass__ = <callable>
2
1148
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 how to easily generate the form? By properties I mean the business object looks like: public class BusinessObject { public string prop1;...
19
2420
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; //every class may have this statement self.hello = function() {
8
8914
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. Like, for instance the Objective-C method: +(void)initialize Which has the following characteristics: It is guaranteed to be run
3
1468
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 in a table along with a type id to tell me what type of feature it is. ie a poll feature has an id of two and has the properties of feature plus a...
19
2192
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 like Text replaces an item or something like that. This results in a runtime error at which time I learn that the item that should be CQQ is a...
7
1297
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 instance?
0
7700
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7676
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7974
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.