The HTML snippet collection contains tips, tricks and practical code examples to help you master web development. This collection covers elements, tags, links, forms, tables and more.
Make your HTML documents more SEO-friendly by including these lines in your <head>
element.
HTML, Metadata · Jan 26, 2023
Accessibility (a11y) can improve your website and attract new users. Learn how to get started with these 8 quick tips.
HTML, Accessibility · Jun 12, 2021
Ensure your HTML documents are properly structured by including these lines in your <head>
element.
HTML, Metadata · Jan 18, 2023
Preloading content is one of many ways to improve your website's performance.
HTML, Metadata · Oct 12, 2022
Understanding how to correctly load your JavaScript files can significantly improve your web application's performance.
HTML, Script · Sep 4, 2022
Discover how to improve your website's performance by implementing lazy loading for images using a native HTML attribute.
HTML, Image · Jun 12, 2021
Resource prefetching is a great way to improve perceived page speed on your website and requires little effort. Learn how to use it today.
HTML, Metadata · Jun 12, 2021
Opening a link in a new tab comes with a security vulnerability that you may not be aware of. Protect your users with this simple trick.
HTML, Link · Jun 12, 2021
Ensure your HTML documents have a proper favicon by including these lines in your <head>
element.
HTML, Metadata · Jan 24, 2023
Learn what HTML5 attribute you can use to customize the names of your downloadable files with this quick tip.
HTML, Link · Jun 12, 2021
Did you know there's an easy way to create a descending list of numbered items with pure HTML? Learn how with this handy tip.
HTML, Content · Jun 22, 2021
Ensure your HTML documents can be shared on social media by including these lines in your <head>
element.
HTML, Metadata · Jan 22, 2023
Use the HTML autocomplete
attribute to create more secure and accessible password fields.
HTML, Form · Jun 12, 2021