Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide example(s) of adding the lang attribute to an HTML element that uses more than one language #4064

Open
tamsinewing555 opened this issue Sep 9, 2024 · 2 comments · May be fixed by #4240

Comments

@tamsinewing555
Copy link

Task:
Add helpful examples to the 'Understanding SC 3.1.2 page of how to add the lang attribute to an HTML element that uses more than one language.

The only W3C page that provides this information is https://www.w3.org/International/questions/qa-html-language-declarations
But this is not easy for users to find.

@patrickhlauke
Copy link
Member

assuming you're referring to https://www.w3.org/International/questions/qa-html-language-declarations#contentvsattribute here? (where content and attributes diverge)

@tamsinewing555
Copy link
Author

That's the one, @patrickhlauke!

fstrr added a commit that referenced this issue Feb 20, 2025
…fferent languages”

Closes #4064

Add the requested example for “The element's content and attribute values are in different languages”.

Also:
1. updated some old attributes that didn’t do anything
2. changed bolded `p` tags to `h3` elements
@fstrr fstrr self-assigned this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants