Old 26-07-2004, 06:21   #1 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,469
Dreamweaver and lang="en"

Using DWMX 2004's validator tool, and it doesn't seem to like
Code:
lang="en"
Quote:
Originally Posted by Dreaweaver
The attribute xml:lang is required when using the attribute lang in xhtml10s. [XHTML 1.0 Strict]
Any ideas?
  Reply With Quote
Old 26-07-2004, 06:25   #2 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,469
Ahah, changed the Doctype gubbins from
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
to
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

Also found this useful article on getting Dreaweaver to behave: http://www.alistapart.com/articles/dreamweaver/
  Reply With Quote
Old 26-07-2004, 06:26   #3 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,200
You need to use both xml:lang="en" and lang="en"

Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 26-07-2004, 06:31   #4 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,469
W3C doesn't seem to mind if you leave out
Code:
xml:lang="en"
(e.g. )

but I can't see that it does any harm including it.
  Reply With Quote
Old 26-07-2004, 06:32   #5 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,469
Eh? Where's Bill's reply gone? Ah well.
  Reply With Quote
Old 26-07-2004, 06:35   #6 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,527
Cheeky.
  Reply With Quote
Old 26-07-2004, 06:36   #7 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,933
<reprise />

Keep lang="en" in there as it'll score you an extra brownie point if/when running your site through WAI/Section508/WCAG checkers such as Cynthia Says and Bobby.
  Reply With Quote
Old 26-07-2004, 06:45   #8 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,469
Thanks Bill.

Does anyone know if Dreamweaver goes by Section 508 or WCAG 1.0, or Its Own Set Of Made Up™ standards?
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8