The DOM: What the Browser Builds From Your Markup
Your file is text. The DOM is the live tree the browser built from it, and they are not the same thing. Knowing the difference is what makes debugging...
The HTML markup language.
113 notes tagged
Your file is text. The DOM is the live tree the browser built from it, and they are not the same thing. Knowing the difference is what makes debugging...
Where a script tag sits and which attribute it carries decides whether your page paints in half a second or four. Three loading behaviours, and when e...
The viewport tag, flexible images, relative units and the mobile first habit. Half of responsive design is decided before a single media query is writ...
Grid and flexbox changed what markup a layout needs. Fewer wrappers, source order that matches reading order, and the reorder trap that breaks keyboar...
The structure you write decides which selectors are available. Attribute selectors, sibling combinators and structural pseudo classes can replace a su...
Two ways to name an element, with different rules and different jobs. Choosing correctly makes a stylesheet maintainable and stops the specificity war...
External, internal and inline styles. One of them is the answer almost always, and knowing why the other two exist is what tells you when to break the...
The small icon in a tab, and the larger ones a device uses when a site is saved to a home screen. A short modern set replaces the twenty file mess of...
Control what appears when your page is shared in a chat, a feed or a message. Without these tags the platform guesses, and it usually guesses badly.
Three head entries that shape how a page appears in search results, whether it is indexed at all, and which URL gets the credit.
Two lines that every page needs. One decides whether your text is readable at all, the other decides whether your page works on a phone.
Nothing in the head is drawn, and yet it decides how the page is found, shared, cached and rendered. The title alone is the most valuable line of mark...