Menu
Coddy logo textTech

Display input and buttons

Lesson 3 of 14 in Coddy's DOM Project - Calculator course.

The disabled attribute is used to control whether the user can interact with specific input fields, ensuring proper flow and data integrity in the form.

Example:

<input type="password" name="title" disabled>
challenge icon

Challenge

Easy
  1. Inside "calculator,” create an input tag with type attribute text and an ID display. Also, make it disabled.
  2. Below the input, create a div with the class name 'buttons'.

Try it yourself

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="styles.css">
</head>
    <body>
        <!-- Write HTML code here -->
        <script src="script.js"></script>
    </body>
</html>

All lessons in DOM Project - Calculator