Solved

HTML: class: what does it mean?

Posted on 2014-10-14
4
146 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
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.

623 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