Hi:
W3C suggests adding the document language tag to the <html> statement. e.g. <html lang="en">. Aside from exporting the html file and uploading, I don't see how to add this tag. Any suggestions?
Printable View
Hi:
W3C suggests adding the document language tag to the <html> statement. e.g. <html lang="en">. Aside from exporting the html file and uploading, I don't see how to add this tag. Any suggestions?
Open Web Properties / Website / HTML Code Head.
Paste in the required tag
Okay & Apply.
Thanks, but I tried that. When uploaded, the code appears at the end of the <head> section as a stray start tag. It needs to be in the first line <html> tag.
Attachment 119717
Thanks, I attempted to upload an image here, not sure if it worked. I already tried adding <html lang="en"> to the header as you suggested, but the code appears at the end of the header as a stray start tag.
You could try adding:
into the Page Head code.Quote:
<script>$(document).ready(function() {
$("html").attr("lang", "en");
});
</script>
You probably need a Name UsesJQuery added to an object on the page as well.
The source still shows <html> but the rendered page code inspection shows <html lang="en"> so I don't know if this is clever enough to convince your W3C validator.
Acorn
P.S. I reasoned that in XDPX there is an option under the Spell Checker for the Document Language, which should do the necessary. I changed all my text to English (U.K.) but nothing appeared in the code. I am adding this as a request to the Dear Xara... Forum.
Thanks Acorn. I also looked at the Spell Checker / Document Language. I agree that that should result in the necessary code. Thanks for submitting your request.
Yes, you're correct Acorn. I believe this code should be in the html declaration. There's no way to do this in Xara at present.
I think it should be:
Quote:
<!DOCTYPE html>
<html lang="fr">
<head>
Hi,
I've passed this request on as per Acorn's request in the Dear Xara forum https://www.talkgraphics.com/showthr...ument-Language. It looks like it will depend on how many people this is a problem for as to whether it is implemented or not.
Thanks,
Stephen
Thank you Stephen for passing this on, W3C seems to think it is important for HTML5: https://www.w3.org/International/que...e-declarations.
Acorn
Hi again,
Following the request this has now been fixed internally, and is due to be released via a patch. Thanks for the feedback :)
Stephen
That's good to hear. Thanks Stephen.