Skip to main content
CSS-Tricks
  • Articles
  • Videos
  • Almanac
  • Newsletter
  • Guides
  • DigitalOcean
  • DO Community
Search

Articles Tagged
HTML

31 Articles
{
,

}
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

Direct Link

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
Shared by Chris Coyier on Dec 16, 2021
Direct link to the article Semantic menu context
HTML menu semantics

Semantic menu context

Direct Link

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
Shared by 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!

Direct Link

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
Shared by Chris Coyier on Oct 8, 2021
Direct link to the article Tabs in HTML?
HTML tabs

Tabs in HTML?

Direct Link

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
Shared by 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

Direct Link

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
Shared by Chris Coyier on Apr 8, 2021
Direct link to the article Definition Tag
dfn HTML

Definition Tag

Direct Link

It’s <dfn. Jen Kramer and Erika Lee are doing a #30DaysofHTML email list thing-y on Substack, which is an easy subscribe. It’s only been a few days and all of them have little gems, even for someone like me …

Avatar of Chris Coyier
Shared by Chris Coyier on Apr 5, 2021
Direct link to the article Smarter Ways to Generate a Deep Nested HTML Structure
haml HTML JavaScript php preprocessing pug

Smarter Ways to Generate a Deep Nested HTML Structure

A look at using HTML preprocessors to generate HTML, particularly deeply nested HTML, which is useful for a variety of interesting browser art and experimentation.
Avatar of Ana Tudor
Ana Tudor on Oct 20, 2020 (Updated on Jul 7, 2021)
  • 1
  • 2
  • 3
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • DigitalOcean
  • DigitalOcean Community
  • About DigitalOcean
  • Legal
  • Free Credit Offer
Minisites
  • The Power of Serverless
  • Upcoming Conferences
  • Coding Fonts
  • The Greatest CSS Tricks
Contact
  • Email
  • Guest Writing
Follow
  • Twitter
  • Instagram
  • YouTube
  • CodePen
  • iTunes
  • RSS
Back to Top