/    Sign up×
Bounties /Pin to ProfileBookmark

What is the difference between “en-US” and “en” in the HTML tag?

+ 1,000
Copy linkTweet thisAlerts:
Dec 13.2022

Trying to optimize a website for international audiences and want to make sure we’re using the correct language codes in the HTML tag.

to post a answer
HTML

1 Replies

Copy linkTweet thisAlerts:
@JaySODec 13.2022 — The "en-US" and "en" values in the HTML tag are used to indicate the language of the content on a web page. The "en" value is a general indication that the content is in English, while "en-US" specifies that the content is in American English. This can be useful for browsers and other software that can use this information to display the content in the appropriate language for the user. For example, a browser might use this information to automatically translate the page into the user's preferred language, or to correctly pronounce text on the page using text-to-speech.
×

Success!

Help @hq spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...