JSFiddle - React, Tailwind, and code Playground

by MythOfEchelon

HTML

<!DOCTYPE html> <!-- This is just my HTML5-valid template. Make sure you set this up correctly for your personal needs -->

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        
        <style>
            * {
                margin: 0;
                padding: 0;
            }
        
            html {
                font: 16px "Segoe UI", "Segoe WPC", Helvetica, Arial, "Arial Unicode MS", Sans-Serif;
            }
            
            div {
                float: left;
            }
        </style>
    </head>
    
    <body>
        <div id="page_Wrapper">
            <p>Question one:</p>
            <form method="post" action="#" name="question_1">
                <input type="radio" id="option_1" name="question_1" onClick="reportValue(this)" /> Option 1 <br />
                <input type="radio" id="option_2" name="question_1" onClick="reportValue(this)" /> Option 2 <br />
                <input type="radio" id="option_3" name="question_1" onClick="reportValue(this)" /> Option 3 <br />
                <input type="radio" id="option_4" name="question_1" onClick="reportValue(this)" /> Option 4 <br />
                <input type="radio" id="option_5" name="question_1" onClick="reportValue(this)" /> Option 5 <br />
            </form>
            <br />
            <p id="result"></p>
        </div>
        
        <!-- Include the script after all DOM elements have been created, to avoid any potential DOM-related errors -->
        <script>
            function reportValue(element){
                var result_Element = document.getElementById("result");
                
                if (element.id == "option_1"){
                    result_Element.innerHTML = "Enter text for Option 1 here.";
                } else if (element.id == "option_2"){
                    result_Element.innerHTML = "Enter text for Option 2 here.";
                } else if (element.id ==...