1<!-- The value attribute is used to for example fill data to an input -->
2
3<input type="text" value="I was already filled" id="textInput">
4
5<!-- The value can be set or copied using JavaScrpit -->
6<script>
7 // Get your element
8 var input = document.getElementById('textInput');
9
10 // get the value
11 var value = input.value;
12
13 // set the value
14 input.value = "i was changed";
15</script>
1The HTML lang attribute is used to identify the language of text content on the web. This information helps search engines return language specific results, and it is also used by screen readers that switch language profiles to provide the correct accent and pronunciation
2
3Syntax
4<element lang="language_code">
5
6Example
7Some French text in a paragraph:
8
9<p lang="fr">Ceci est un paragraphe.</p>