<html> tag attributes | Sololearn: Learn to code for FREE!


<html> tag attributes

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

4/1/2018 1:27:59 PM


1 Answer

New Answer


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