2 ms·
Not just to make the markup pretty. It also means that if you view the page without scripting, or with a screen reader, you'll get results that make sense. An
by JoshTriplett 14y ago
Not just to make the markup pretty. It also means that if you view the page without scripting, or with a screen reader, you'll get results that make sense. And it means that robots, scrapers, indexers, and search engines can actually see the template content, which they can't easily do if you embed it in Javascript document.createElement calls.