<html> tag attributes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

<html> tag attributes

What attributea can we put to the <html> tag? Could you give me an example?

1st Apr 2018, 1:27 PM
michal
1 Answer
+ 9
You can use global attributes on html tag Some of the examples are lang - The lang attribute is use to specify the language for the browser. Ex - <html lang="en-us"> specifies the document is written in en-US language to the browser. Other examples are class and id. Full List of Global attributes - https://www.w3schools.com/tags/ref_standardattributes.asp
1st Apr 2018, 2:21 PM
Anonymous
Anonymous - avatar