Skip to content

Commit

Permalink
Merge pull request #26353 from satvator/main
Browse files Browse the repository at this point in the history
HTML Boilerplate lesson: Add 2 lines about 'HTML attributes'
  • Loading branch information
zachmmeyer authored Sep 20, 2023
2 parents f21fe6a + cd14060 commit 996da59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions foundations/html_css/html-foundations/html-boilerplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ Back in the `index.html` file, let's add the `<html>` element by typing out its
</html>
~~~

Noticed the word `lang` here? It represents an HTML attribute which is associated with the given HTML tag i.e. `<html>` in this case.These attributes provide additional information about HTML elements.(More about `HTML attributes` in the following lesson)

#### What is the lang attribute?

`lang` specifies the language of the text content in that element. This attribute is primarily used for improving accessibility of the webpage. It allows assistive technologies, for example screen readers, to adapt according to the language and invoke correct pronunciation.
Expand Down

0 comments on commit 996da59

Please sign in to comment.