span tags

B

Bill

Can someone tell me how I turn off the <span> tag. All
text I type into the Editor is preceeded with <span
lang="en-au"> and finishes with </span>
 
J

Jim Carlock

Click on Tools, then Web Settings, then the Language tag.

Make sure you have a language specified there. This will put a meta tag
into the <head> section.

If you're using US/Western European you will get a tag like:

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

in the <head></head> section. The number will will be different at the end
of that tag if you're not using US/Western European. It will be 1256 if you
chose Vietnamese, 1258 if you choose Arabic, etc.

This specifies the default language for the whole document. I'm thinking
that you probably have None set up there.

You also might want to uncheck the following:

Click on Tools, Page Options..., then on the General Tab:

Make sure the spelling is set up for the appropriate language.

There are several items at the top that indicate Use <div> <span>,
automatically enclose inside form stuff, assign unique ids to new
tables.

If you're using alot of the FrontPage themes or borders, you'll
probably want to leave them checked.

Let us know if that works for you.
 
B

Bill

Hi Jim, after a long search I found the following answer:

In Knowledge Base Article 311574 it
states:

"Span Lang Tag Inserted if Keyboard and Language Do Not
Match
If you set the page language to a language different from
the keyboard language, any text that you type on the page
is encapsulated with the following tag:
<span lang="keyboard language code">

SP-1 changes this behavior so that this tag is used only
when the keyboard and page language use different code
pages. "

This has obviously been my problem all along. Yes, you
are correct I had "None" selected. Is this done by
default ? If so, many folks will fall for this problem.
When I create a new page I will have to remember to set
the language each time.

My problem now is to get rid of all the <span lang> tags
that are liberally distributed amongst the 30 web sites I
run :(

Thanks agin Jim.
 
J

Jim Carlock

Read the reply inline below...

Bill said:
Hi Jim, after a long search I found the following answer:

In Knowledge Base Article 311574 it states:

"Span Lang Tag Inserted if Keyboard and Language Do Not
Match
If you set the page language to a language different from
the keyboard language, any text that you type on the page
is encapsulated with the following tag:
<span lang="keyboard language code">

SP-1 changes this behavior so that this tag is used only
when the keyboard and page language use different code
pages. "

This has obviously been my problem all along. Yes, you
are correct I had "None" selected. Is this done by
default ?

I don't think FrontPage selects "None" by default. I'm guessing
that FrontPage selects the language based upon OS settings
for the keyboard when FrontPage is installed on the system.

Only know that I've never had a none setting and that FrontPage
has always put the meta tag in for me.

Of course I've used FrontPage since Version 1.0 but when I've
looked at other websites created in FrontPage I see the same
meta tag there.

What I did right before I posted the message, was changed
the setting then created a new page and noticed that FrontPage
changed the:

<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252" />

I'm thinking that you probably set it to None thinking that you
don't need a setting there. I mean that sounds like something
I'd do! ;-) Once it's set for one site, all new pages created
will be set accordingly.
If so, many folks will fall for this problem.
When I create a new page I will have to remember to set
the language each time.

My problem now is to get rid of all the <span lang> tags
that are liberally distributed amongst the 30 web sites I
run :(

I think FrontPage has a global search and replace that you can
apply to a whole website. I tend to hand code things so I know
there are very few <span> tags in the sites I work with. I don't
use all the fancy FrontPage items. Tend to stick with CSS and
vbScript inside of ASP for server side things, and then
JavaScript for client-side things.

The only thing I ever use span tags for are inline style sheet
references to force something to be inline where I've not been
able to find any other HTML tag work.

Linked style sheets are the way to go, providing outstanding
control over a site.
Thanks agin Jim.

Welcome, glad to be of some help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top