- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
HTML value Attribute
The HTML value attribute define the initial value of an HTML element in an HTML document. It can be applied to button, input, meter, li, option, progress and param HTML elements.
Syntax
Following is the syntax −
<tagname value=”text”></tagname>
Let us see an example of HTML value Attribute −
Example
<!DOCTYPE html> <html> <style> body { color: #000; height: 100vh; background-color: #8BC6EC; background-image: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%); text-align: center; } </style> <body> <h1>HTML value Attribute Demo</h1> <p>Uploading</p> <meter min="0" max="100" value="60"></meter> </body> </html>
Output
Advertisements