How to avoid Span Lang in Expression Web

Tina Clarke

 

Avoiding the dreaded Span Lang; example: <span lang="en-us">text</span> which can increase your code load

 

 

 

General Tab. 

Under  the Tools menu In the Page Editor Options Dialog box - General Tab, there is a setting for 'Automatically switch keyboard to match language of surrounding text' make sure this is not ticked. (It is not ticked by default).

Make sure your Default Page Language is set to the language of your country, in my case English (United Kingdom).

When you make a blank new page and begin to type in the Design View, your default language meta will be automatically inserted. However this only happens the first time you begin to type. In my case this will be:

<meta http-equiv="Content-Language" content="en-gb" />

(for xhtml doctype)

<meta http-equiv="Content-Language" content="en-gb">

(for html doctype)

As long as this is in place the span lang problem should not occur.

You can set the page and language encoding for a website or page - see Authoring Tab

Do not forget to include the language meta when making a template or dwt.

To remove span lang's already within a page, just use the Find and Replace feature within Expression Web.

 

Tina Clarke Signature.
Cheshire Web Designs - Cheshire website Designs by Any Expression Web Designs
Owner Any Expression Web Designs and Clarke Abstract Art

Copyright © 2006 - 2021 Tina Clarke of Any Expression Web Designs All Rights Reserved

Are you looking for a Web Designer?
Web Designs created by Any Expression Web Designs