Skip to main content
CSS-Tricks
  • Articles
  • Alamanac
  • Guides
  • Videos
  • Books
  • Newsletter
Search

Articles Tagged
HTML

33 Articles
{
,

}
Web Form Accessibility with focus-within
Direct link to the article Accessible Forms with Pseudo Classes
accessibility CSS focus forms HTML semantics

Accessible Forms with Pseudo Classes

Hey all you wonderful developers out there! In this post, I am going to take you through creating a simple contact form using semantic HTML and an awesome CSS pseudo class known as :focus-within. The :focus-within class allows for …

Avatar of Chris DeMars
Chris DeMars on Mar 22, 2024 (Updated on Mar 29, 2024)
Direct link to the article Roundup of Recent Document Outline Chatter
accessibility document outline headers HTML semantics

Roundup of Recent Document Outline Chatter

It’s not everyday that HTML headings are the topic de jour, but my folder of saved links is accumulating articles about the recently merged removal of the document outline algorithm in the WHATWG Living Standard.

First off, you should know …

Avatar of Geoff Graham
Geoff Graham on Jul 21, 2022 (Updated on Jul 25, 2022)
Direct link to the article Write HTML, the HTML Way (Not the XHTML Way)
HTML semantics

Write HTML, the HTML Way (Not the XHTML Way)

You may not use XHTML (anymore), but when you write HTML, you may be more influenced by XHTML than you think. You are very likely writing HTML, the XHTML way.

What is the XHTML way of writing HTML, and what …

Avatar of Jens Oliver Meiert
Jens Oliver Meiert on Mar 21, 2022
Direct link to the article HTML Sanitizer API
HTML sanitizer api security

HTML Sanitizer API

Three cheers for (draft stage) progress on a Sanitizer API! It’s gospel that you can’t trust user input. And indeed, any app I’ve ever worked on has dealt with bad actors trying to slip in and execute nefarious code …

Avatar of Chris Coyier
Chris Coyier on Dec 16, 2021
Direct link to the article Semantic menu context
HTML menu semantics

Semantic menu context

Scott digs into the history of the <menu> element. He traced it as far back as HTML 2 (!) in a 1994 changelog. The vibe then, it seems, was to mark up a list. I would suspect the intention …

Avatar of Chris Coyier
Chris Coyier on Nov 11, 2021
Direct link to the article Jekyll doesn’t do components? Liar!
HTML jekyll liquid preprocessors

Jekyll doesn’t do components? Liar!

I like the pushback from Katie Kodes here. I’ve said in the past that I don’t think server-side languages haven’t quite nailed “building in components” as well as JavaScript has, but hey, this is a good point:…

Avatar of Chris Coyier
Chris Coyier on Oct 8, 2021
Direct link to the article Tabs in HTML?
HTML tabs

Tabs in HTML?

Brian Kardell shares a bit about the progress of bringing "Tabs" to HTML. We kinda think we know what they are, but you have to be really specific when dealing with specs and defining them. It's tricky.
Avatar of Chris Coyier
Chris Coyier on Aug 16, 2021
Direct link to the article HTML is Not a Programming Language?
HTML opinion

HTML is Not a Programming Language?

HTML is not a programming language.

I’ve heard that sentence so many times and it’s tiring. Normally, it is followed by something like, It doesn’t have logic, or, It is not Turing complete,.so… obviously it is not a programming …

Avatar of Alvaro Montoro
Alvaro Montoro on Aug 16, 2021 (Updated on Aug 23, 2021)
Direct link to the article Zero-Width Space
HTML unicode

Zero-Width Space

The name zero-width space is antithetical, but it’s not without uses. In text, maybe you’d use it around slashes because you want to be sure the words are treated individually but not have any physical space around the slash:…

Avatar of Chris Coyier
Chris Coyier on Jul 2, 2021
Direct link to the article HTML Boilerplates
boilerplate HTML

HTML Boilerplates

Manuel Matuzović goes line-by-line through a boilerplate HTML document. I like it. It’s a good reference and has a lot of the same type of stuff I tend to put in the main HTML template. It makes me think about …

Avatar of Chris Coyier
Chris Coyier on May 14, 2021
Direct link to the article The `ping` attribute on anchor links
analytics HTML

The `ping` attribute on anchor links

I didn’t know this was a thing until Stefan Judis’s post:

<a href="https://www.stefanjudis.com/popular-posts/" 
   ping="https://www.stefanjudis.com/tracking/"Read popular posts</a

You give an anchor link a URL via a ping attribute, and the browser will hit that URL with a web request …

Avatar of Chris Coyier
Chris Coyier on Apr 8, 2021
  • 1
  • 2
  • 3
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways hosting
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Write for us!
  • Advertise with us
  • Contact us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • X
Back to Top