Jan
24th
Thu
24th
HTML 5 differences from HTML 4
“element.classList is a convenient accessor for className. The object it returns exposes methods, such as has(), add(), remove() and toggle() for manipulating the element’s classes.”
div.classList.toggle(‘active’);
Nice. And thanks to the genius semantic redefinition of the i tag, we know how to format a ship’s name, too.
(And what’s up with tumblr not escaping > and