TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

HTML

HTML Drop-down List

Overview

HTML Drop-down list allows the visitor to choose one of the values from the list of options.

Syntax

The <select> tag is used to create the drop-down list. The <option> tag is used to create the items in list. By default when the drop-down is inactive, it displays a single value, when clicked it displays a list of values.

<select>
<option>Small</option>
</select>

Example

<label >Shirt Size :</label>

<select>
<option selected disabled>–Select Size–</option>
<option>Small</option>
<option>Medium</option>
<option>Large</option>
<option>XL</option>
<option>XXL</option>
</select>
<br>

 

HTML Drop down List Demo

—

HTML Tutorials

HTML Tutorials on this website:

https://www.testingdocs.com/html-tutorials/

More Information on HTML:

https://www.w3.org/TR/html401/intro/intro.html

Related Posts

Create HTML File

HTML /

Create HTML file with NetBeans IDE

HTML /

HTML5 Document Structure

HTML /

Introduction To HTML5

HTML5 Application NetBeans

HTML /

Create an HTML5 Application using NetBeans IDE

CSS Validator Tool

HTML /

HTML & CSS Validator Tools

‹ HTML Form GET and POST Methods› HTML & CSS Validator Tools

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version