Solved

HTML: class: what does it mean?

Posted on 2014-10-14
4
135 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
Comment Utility
It's for setting css on the whole page and for use in other things like javascript
0
 

Author Comment

by:epifanio67
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks Gary
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now