Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

HTML: class: what does it mean?

Posted on 2014-10-14
4
Medium Priority
?
176 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
  • 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 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

782 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