From: Mick3496 on
Hi,
I may be getting out of my depth here but I want to apply the H1 tag to all
the text that appears with in a headline div (#headline) on a large number of
pages.
I've used #headline to style the headline container (margins, border etc) and
I want the text inside to be styled using H1 (because, I understand, it's good
for SEO) rather than simply setting the styles within #headline.
Is there a way in CSS (perhaps within #headline) to automatically apply H1 to
all text within the div#headline or am I looking at applying the H1 tag on each
of the pages?
Thanks,
Mick

From: Murray *ACE* on
> I want to apply the H1 tag

Huh? You want to apply a tag?

> I want the text inside to be styled using H1 (because, I understand, it's
> good
> for SEO) rather than simply setting the styles within #headline.

CSS cannot do such things.

> am I looking at applying the H1 tag on each
> of the pages?

I think you will have to do this manually.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Mick3496" <webforumsuser(a)macromedia.com> wrote in message
news:g3g2cp$kro$1(a)forums.macromedia.com...
> Hi,
> I may be getting out of my depth here but I want to apply the H1 tag to
> all
> the text that appears with in a headline div (#headline) on a large number
> of
> pages.
> I've used #headline to style the headline container (margins, border etc)
> and
> I want the text inside to be styled using H1 (because, I understand, it's
> good
> for SEO) rather than simply setting the styles within #headline.
> Is there a way in CSS (perhaps within #headline) to automatically apply H1
> to
> all text within the div#headline or am I looking at applying the H1 tag on
> each
> of the pages?
> Thanks,
> Mick
>

From: Vix on
<h1> is an HTML tag. You'll have to apply the H1 tag manually to
whatever text you want to be a heading.

Then in your stylesheet you can style all H1s in the headline container
with something like #headline h1 {color: #000;} to make the text appear
as you want it.

Mick3496 wrote:
> Hi,
> I may be getting out of my depth here but I want to apply the H1 tag to all
> the text that appears with in a headline div (#headline) on a large number of
> pages.
> I've used #headline to style the headline container (margins, border etc) and
> I want the text inside to be styled using H1 (because, I understand, it's good
> for SEO) rather than simply setting the styles within #headline.
> Is there a way in CSS (perhaps within #headline) to automatically apply H1 to
> all text within the div#headline or am I looking at applying the H1 tag on each
> of the pages?
> Thanks,
> Mick
>
From: Joe Makowiec on
On 20 Jun 2008 in macromedia.dreamweaver, Mick3496 wrote:

> I've used #headline to style the headline container (margins, border
> etc) and I want the text inside to be styled using H1 (because, I
> understand, it's good for SEO) rather than simply setting the styles
> within #headline.

<h1> is not a style, it's a headline tag. Its intended purpose is to
mark the most important brief information on the page - the headline.
Less important information gets <h2>, <h3>, ... tags.

If you've got something like this:

<div id="headline">This is my entire headline text</div>

(which is bad practice by the way - what you're proposing to do is the
proper way). This will be a two-stage process. First, back up your
site.

First step:
Find in: [Entire current local site]
Search for: [Specific Tag] [div]
[With Attribute] [id] [=] [headline]

Action: [Add before end tag] [</h1>]

Second Step
Find in: [Entire current local site]
Search for: [Specific Tag] [div]
[With Attribute] [id] [=] [headline]

Action: [Add after start tag] [<h1>]

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/contact.php
From: Mick3496 on
Murray - yup, I wanted to see if I could apply a tag [b]automatically[/b]
rather than applying it manually over 40-odd pages.
I guess I'm getting lazy and trying to get a computer to do the donkey work
for me lol.

Joe, thanks, search & replace looks like the solution I'd not thought of! (I
know it's a tag not a style).

At the moment I have <div id="headline"><p>This is a headline</p></div>
and I need <div id="headline"><h1>This is a headline</h1></div>

So I guess I need to add another step to your solution to remove the <p> and
</p> tags.

I'll get on it,
Thanks,
Mick