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

    • ChatGPT Subscription Plans
    • Stellar Converter for Database
    • Stellar Log Analyzer for MySQL
    • Stellar Repair for MySQL
    • ChatGPT Capabilities
    • How to secure your SQL Database: Tips and Tricks
    • ChatGPT4 Conversational AI Features
    • Shaping the Future of Development: Exploring Key Trends in Software Engineering
    • Improving Java Performance with Multithreading
    • Open-source Vector Databases

    Back to Top

    Links

    • Contact
    • Privacy Policy
    • Cookie Policy

    www.TestingDocs.com