<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/5-html-and-css-good-practices-tl7ikiwcl" -->

---
title: 5 HTML and CSS Good Practices | daily.dev
description: It is quite easy to find good practices for any technology, but unfortunately, the same cannot be said about HTML and CSS. I&#x27;ve made my list of 5 cases when...
canonical: https://daily.dev/posts/5-html-and-css-good-practices-tl7ikiwcl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 5 HTML and CSS Good Practices | daily.dev
og:description: It is quite easy to find good practices for any technology, but unfortunately, the same cannot be said about HTML and CSS. I&#x27;ve made my list of 5 cases when...
og:url: https://daily.dev/posts/5-html-and-css-good-practices-tl7ikiwcl
og:image: https://api.daily.dev/og/posts/Tl7iKiWcL.png
og:image:alt: 5 HTML and CSS Good Practices
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 5 HTML and CSS Good Practices

**[DZone](https://daily.dev/sources/dz)** · 4 min read · 118 upvotes · 4 comments

## Summary

It is quite easy to find good practices for any technology, but unfortunately, the same cannot be said about HTML and CSS. I've made my list of 5 cases when you can create a user-friendly, or clumsy, interface using only HTML andCSS. The alt attribute is quite useful, but many developers don’t use it efficiently.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dzone.com/articles/5-html-and-css-good-practices>

## Community discussion

Top comments from developers on daily.dev.

**@hiradnikoo** · 0 upvotes

> I didn't know about the animation settings on the OS.

**@syaman** · 0 upvotes

> Uhm sorry but, some of the advices about the flexbox is surely not the way to go :/

**@carlos\_lander** · 0 upvotes

> Ótimo conteúdo, parabéns.

**@kiransatyaraj** · 0 upvotes

> just finished reading this blog, understood whole html part, I'm just a day in or two learning CSS, I need to learn more to understand the CSS part and it seems these are some pretty good practices.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css), [#html](https://daily.dev/tags/html)

[View this post on daily.dev](https://daily.dev/posts/5-html-and-css-good-practices-tl7ikiwcl)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"5 HTML and CSS Good Practices","url":"https://daily.dev/posts/5-html-and-css-good-practices-tl7ikiwcl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/5-html-and-css-good-practices-tl7ikiwcl"},"datePublished":"2021-09-28T10:41:28.543Z","dateModified":"2021-10-07T14:17:10.317Z","description":"It is quite easy to find good practices for any technology, but unfortunately, the same cannot be said about HTML and CSS. I've made my list of 5 cases when...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7d94ba7daf8f0e1ea78c0dbec4a2ad87","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7d94ba7daf8f0e1ea78c0dbec4a2ad87","isAccessibleForFree":true,"articleSection":"DZone","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DZone","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/dz","url":"https://daily.dev/sources/dz"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/5-html-and-css-good-practices-tl7ikiwcl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":118},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"css,html","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DZone","item":"https://daily.dev/sources/dz"},{"@type":"ListItem","position":3,"name":"5 HTML and CSS Good Practices"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/5-html-and-css-good-practices-tl7ikiwcl","comment":[{"@type":"Comment","text":"I didn’t know about the animation settings on the OS.","datePublished":"2021-09-28T16:45:54.668Z","url":"https://daily.dev/posts/Tl7iKiWcL#c-q2L2MvRaC","author":{"@type":"Person","name":"Hirad Nikoo","url":"https://daily.dev/hiradnikoo","image":"https://avatars2.githubusercontent.com/u/5859897?v=4"}},{"@type":"Comment","text":"Uhm sorry but, some of the advices about the flexbox is surely not the way to go :/","datePublished":"2021-12-18T07:43:52.963Z","url":"https://daily.dev/posts/Tl7iKiWcL#c--b5fAsMgc","author":{"@type":"Person","name":"Sinan Yaman","url":"https://daily.dev/syaman","image":"https://lh3.googleusercontent.com/a/AATXAJxOkWZzvkGXFagnTwE4PRMaChA4XBLy0t57I_id=s100"}},{"@type":"Comment","text":"Ótimo conteúdo, parabéns.","datePublished":"2021-11-29T00:26:50.784Z","url":"https://daily.dev/posts/Tl7iKiWcL#c-cpkMr8Wqo","author":{"@type":"Person","name":"Carlos Roberto Landerdahl Neto","url":"https://daily.dev/carlos_lander","image":"https://avatars.githubusercontent.com/u/89170109?v=4"}},{"@type":"Comment","text":"just finished reading this blog, understood whole html part, I’m just a day in or two learning CSS, I need to learn more to understand the CSS part and it seems these are some pretty good practices.","datePublished":"2022-04-20T11:45:36.945Z","url":"https://daily.dev/posts/Tl7iKiWcL#c-8keNswst-","author":{"@type":"Person","name":"Kiran satya raj","url":"https://daily.dev/kiransatyaraj","image":"https://avatars.githubusercontent.com/u/90622705?v=4"}}]}
```

