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 Radio Button

Overview

HTML Radio button is used when we allow user to select only one option from the many available options.

Syntax

<input type=”radio” name=”rb”> Option1
<br
<input type=”radio” name=”rb”> Option2
<br/>

Example

<html>
<!–
####################################
# HTML Radio Button Demo
# www.TestingDocs.com
####################################
–>
<head>
<title> HTML Tutorials – HTML Radio Button Demo</title>
</head>

<body>
<h1> Sample HTML Form </h1>
<h3> Radio Button Demo </h3>
<p>
Display a sample Radio button:
</p>

<form>
<br/>
<strong>Choose the subject you like the most::</strong>
<br/>
<input type=”radio” name=”rbuttonDemo” value=”Maths”>Mathematics
<br/>
<br/>
<input type=”radio” name=”rbuttonDemo” value=”Physics”>Physics
<br/>
<br/>
<input type=”radio” name=”rbuttonDemo” value=”Chemistry”>Chemistry
<br/>
<br/>
<input id=”submit” type=”submit”/>
<br/>
<br/>
</form>
<p>
<h2>
HTML Tutorials – www.TestingDocs.com
</h2>
</p>

</body>
</html>

Sample Output

HTML Radio Buttons

 

—

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 Textbox› HTML Checkboxes

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