Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 427 Bytes

File metadata and controls

20 lines (16 loc) · 427 Bytes

03. How do you set language in HTML

  • There are multiple ways to set language in HTML
  • By setting content-language in headers for language of the page
  • By setting accept-language in headers for list of language that a page accept
  • Setting lang attribute in html tag

Example:

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Document Title</title>
</head>
<body>

</body>
</html>