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
Easy- Inside "calculator,” create an input tag with type attribute text and an ID display. Also, make it disabled.
- 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
1Introduction
What will you build?