Archives
-
The new <main> element in HTML 5.1
In the upcoming specification for HTML 5.1, a new semantic element will be introduced, the <main> element.
-
Get under the hood with Shadow DOM
When you add an element to your page, it is being added to the Document Object Model (DOM). When added to the DOM, you can use CSS to style it or JavaScript (getElementById, querySelector etc) to get a reference to the element and modify it. There are some cases where this isn´t true though.