paint-brush
The Art of Naming: CSS Guideby@rahull
358 reads
358 reads

The Art of Naming: CSS Guide

by Rahul3mNovember 17th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Poorly written CSS will quickly turn into a nightmare. The Art of Naming: CSS Guide to Naming is published by Rahul Rahul Developer and Blogger/Blogger/Rhulism Rahul Developer. He has come with some amazing and very different strategies to name things in CSS. Use hyphen delimiters to name selectors in the correct way. Use a js-* class name to denote a relationship with the DOM element in question. Some developers use data attributes as JavaScript hooks to store custom data.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - The Art of Naming: CSS Guide
Rahul HackerNoon profile picture
Rahul

Rahul

@rahull

18, Hustler. Code/Design.

About @rahull
LEARN MORE ABOUT @RAHULL'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Rahul HackerNoon profile picture
Rahul@rahull
18, Hustler. Code/Design.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here