---
title: "Discussion on \"5 lines of CSS style for disabled elements (from Material Design)\" | Hashnode"
description: "Discussion on \"5 lines of CSS style for disabled elements (from Material Design)\". If I are creating a form with HTML, sometimes I wanted to disable a text box for users. Here came the disabled attribute.\nDisabled Controls\nThe Boolean disabled attribute, when present, makes the element not mutable, focusable, or even submitted with..."
url: "https://hashnode.com/posts/5-lines-of-css-style-for-disabled-elements-from-material-design/616d31b3f1f4c944cc6b3113"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [5 lines of CSS style for disabled elements (from Material Design)](https://ksengine.hashnode.dev/5-lines-of-css-style-for-disabled-elements-from-material-design?utm_source=hashnode&utm_medium=feed)

If I are creating a form with HTML, sometimes I wanted to disable a text box for users. Here came the disabled attribute. Disabled Controls The Boolean disabled attribute, when present, makes the element not mutable, focusable, or even submitted with...

Oct 18, 2021 · 2 min read · ksengine.hashnode.dev  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#material-design](https://hashnode.com/tag/material-design)

## Written by

[Kavindu Santhusa](https://hashnode.com/@ksengine)

@ksengine · Sri Lanka

  
[View profile](https://hashnode.com/@ksengine)

💻happy coding!!!

👋Hi, I’m @ksenginew 👀 I’m interested in coding 🌱I’m currently learning CSS, JavaScript, Typescript 💞 I’m looking to collaborate on cool projects 📮 How to reach me ksengine.github@gmail.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
