

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 multiple Attribute
The HTML multiple attribute allow user to select/enter more than one value. It can only be applied on input or select HTML element.
Syntax
Following is the syntax −
<tagname multiple></tagname>
Let us see an example of HTML multiple 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 multiple Attribute Demo</h1> <p>Select your favourite subjects:</p> <select multiple> <option>Physics</option> <option>Chemistry</option> <option>Biology</option> <option>Maths</option> <option>German Language</option> </select> </body> </html>
Output
- Related Questions & Answers
- How to use multiple attribute in HTML?
- HTML accept Attribute
- HTML accesskey Attribute
- HTML autofocus Attribute
- HTML checked Attribute
- HTML Class Attribute
- HTML cols Attribute
- HTML colspan Attribute
- HTML content Attribute
- HTML contenteditable Attribute
- HTML data Attribute
- HTML dir Attribute
- HTML disabled Attribute
- HTML enctype Attribute
- HTML for Attribute
Advertisements