---
title: "HTML Articles: Native Elements and Resource Hints"
description: "HTML that replaces JavaScript: the details and search elements, the popover attribute, form validation states, and preload, preconnect and modulepreload."
canonical: "https://www.trevorlasn.com/topics/html"
author: "Trevor I. Lasn"
last-updated: "2026-11-08"
---

# HTML Articles: Native Elements and Resource Hints

HTML that replaces JavaScript: the details and search elements, the popover attribute, form validation states, and preload, preconnect and modulepreload.

11 current articles on HTML, newest first. See [every topic](https://www.trevorlasn.com/topics.md).

## 2025

- [CSS :interest-source and :interest-target Pseudo-Classes](https://www.trevorlasn.com/blog/css-interest-pseudo-classes.md): Style connected UI with the :interest-source and :interest-target pseudo-classes. Interactive examples of tooltips, forms and navigation without JavaScript. (2025-11-12)
- [::details-content: Style Expandable Content, No Wrappers](https://www.trevorlasn.com/blog/details-content-pseudo-element.md): The ::details-content pseudo-element lets you style the expandable content of details elements separately from the summary, no divs needed. (2025-11-11)
- [Native Popover Element with HTML](https://www.trevorlasn.com/blog/native-popover-with-html.md): The HTML Popover API builds tooltips, dropdowns and overlays without a JavaScript library. How to use it, what it returns and where browsers support it. (2025-01-24)

## 2024

- [CSS :user-valid and :user-invalid for Friendlier Form Errors](https://www.trevorlasn.com/blog/css-user-valid-and-user-invalid-pseudo-classes.md): The new pseudo-classes :user-valid and :user-invalid give us a smarter way to style form validation states based on user interaction (2024-12-12)
- [HTML Details Element: The Native Accordion You're Not Using](https://www.trevorlasn.com/blog/html-details-element.md): Discover how the HTML details element can replace your JavaScript accordions and why it might be better than your current solution (2024-12-10)
- [link rel=modulepreload: Load JavaScript Modules Sooner](https://www.trevorlasn.com/blog/module-preload.md): rel=modulepreload fetches, parses and compiles an ES module before a script imports it. How to use it, and why each module in the graph needs its own link. (2024-12-04)
- [The HTML Search Element: A Native Tag for Search Forms](https://www.trevorlasn.com/blog/html-search-element.md): The <search> element wraps a search form or filter controls so browsers and screen readers know their purpose. When to use it, with input type=search examples. (2024-12-02)
- [Preload Responsive Images with imagesrcset and imagesizes](https://www.trevorlasn.com/blog/preloading-responsive-images.md): A plain preload link fetches the wrong file for a responsive image. Add imagesrcset and imagesizes to link rel=preload so the browser picks the same image. (2024-11-28)
- [Speculation Rules API: Prefetch and Prerender Next Pages](https://www.trevorlasn.com/blog/speculation-rules-api.md): How the Speculation Rules API improves web performance by prefetching and prerendering future navigations (2024-09-15)
- [Improve PageSpeed Insights Score with Lazy Loading Iframes](https://www.trevorlasn.com/blog/lazy-loading-iframes.md): Set loading=lazy on an iframe and the browser waits to load it until the reader scrolls near. Before-and-after code, the bandwidth saved and browser support. (2024-09-13)
- [Preconnect to Required Origins with rel=preconnect](https://www.trevorlasn.com/blog/preconnect-to-required-origins.md): Using link rel='preconnect' can improve your website's performance by reducing connection setup times to key external domains. (2024-09-13)
