Solved

HTML: class: what does it mean?

Posted on 2014-10-14
4
141 Views
Last Modified: 2014-10-15
Hello Experts,

when I visit a site, the root element <html> has a sub element called class.
example below:

<html class="js no-touch svg wf-franklinitcprobold-n4-active wf-franklinitcprolight-n4-active wf-georgiapro-n4-active wf-georgiaproblack-n4-active wf-georgiaprocond-n4-active wf-georgiaprolight-n4-active wf-georgiaprosemibold-n4-active wf-active" lang="en" data-useragent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.122 Safari/537.36 OPR/24.0.1558.64" data-platform="Win32">

Open in new window


What does it mean and how does it get set?

Thanks for your help....

Regards,
0
Comment
Question by:epifanio67
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40381172
It's for setting css on the whole page and for use in other things like javascript
0
 

Author Comment

by:epifanio67
ID: 40381193
hmmm.... thank you Gary...
I noticed the html class some times it shows
js
no-js
touch
no-touch

how are these set? or part of the html class?
see what I mean?
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40381263
They are usually set by and for javascript plugins that do different things if the device has touch screen
0
 

Author Closing Comment

by:epifanio67
ID: 40383069
Thanks Gary
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question