html - Forward slash in class name -


this question has answer here:

is valid use / in class name in html/css?

// html <div class="/10"></div>  // css ./10{ float:left; } 

you can use unicode characters in both class , id attributes in html.

this means can indeed use / in classname in html, run problems when trying select ./10 in css, you've found out yourself. if escape slash, you're golden! :)

.\/10 {     float:left; } 

check out http://mathiasbynens.be/notes/html5-id-class , http://mathiasbynens.be/notes/css-escapes


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -