How to avoid Span Lang in Expression Web
Avoiding the dreaded Span Lang; example: <span lang="en-us">text</span> which can increase your code load
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.
The NEW Expression Web Tip 27 - Use a web.sitemap File for Navigation is available ONLY in the current issue of Any Expression Web Tips ezine Why wait? Sign up today.
Cheshire Web Designs - Cheshire website Designs by Any Expression Web Designs
Owner Any Expression Web Designs and Clarke Abstract Art
Copyright © 2006 - 2011 Tina Clarke of Any Expression Web Designs All Rights ReservedAre you looking for a Web Designer?
Web Designs created by Any Expression Web Designs