Solved

HTML: class: what does it mean?

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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)
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

752 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