Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <h1 id="title">my game survay</h1>
<form id="survey-form">
  <p id="description">games people enjoy playing</p>
  <div class="Container">
    <div id="Lable-side">
      <lable for="name" id="name-lable">*Name</lable>
      <label for="email" id="email-lable">*Email</label>
      <label for="number" id="number-lable">*Age</lable>
    <!--<lable for="game-type" id="game-type-lable">What type of games do you enjoy playing</lable>-->
    <lable for="game-genre" id='game-genre-lable'> What genre and type of game do you enjoy playing(select all that apply)</lable>
     
     <lable for="recomendations" id="recomendation-lable">Do you have any comments or recamendations to help improve this page</lable>
  </div>
  <div id="Answer-side">
    <input type="text" id="name" placeholder="Enter Your Name" required >
    <input id = "email" type="email" placeholder="Enter your Email" required >
    <input type="number" id="number" placeholder="Enter your Age" required>
    
     
    <!--<lable><input type="radio" name="game-type" value="first person">first person</lable>
    <lable><input type="radio" name="game-type" value="Third Person">third person</lable>-->
   <!--  List Start-->
    <div id ="list">
    <lable><input type="checkbox" name="game-genre" value="action" id="actionBox">Action</lable>
    <div class="action list" id="action">
    <lable>Action DIV</lable>  
      <lable> the value of listVal is:<p id="k"></p></lable>
      <p id="action-list">Here is a list of action game types</p>
      <ul>
        <li>Platform games<input type="checkbox" name="action-list" value="Platform Games"></li>
        <li>Shooter games<input type="checkbox" name="action-list" value="Shooter games"></li>
        <li>Fighting games<input type="checkbox" name="action-list" value="Fighting games"></li>
        <li>Beat 'em up games<input type="checkbox" name="action-list" value="Beat 'em up games"></li>
        <li>Stealth game<input type="checkbox" name="action-list" value="Stealth game"></li>
        <li>Survival games<input type="checkbox" name="action-list" value="Survival games"></li>
        <li>Rhythm games<input type="checkbox" name="action-list" value="Rhythm games"></li>
      </ul>
    </div>
    <lable><input type="checkbox" name="game-genre" value="action-adventure">Action-Adventure</lable>
     <div class="Action-adventure list" id="Action-adventure" id="Action-adventureBox">
    <lable>Action-adventure DIV</lable>
       
      <p id="Action-adventure-list">Here is a list of action-adventure game types</p>
      <ul>
        <li>Survival horror<input type="checkbox" name="Action-adventure-list" value="Survival horror"</li>
        <li>Metroidvania<input type="checkbox" name="Action-adventure-list" value="Metroidvania"></li>
      </ul>
    </div>    
    <lable><input type="checkbox" name="game-genre" value="adventure" class="Box">Adventure</lable>
    <div class="Adventure list" id="Adventure">
    <lable>Action DIV</lable>
      <p id="Adventure-list">Here is a list of Adventure game types</p>
      <ul>
        <li>Text adventures<input type="checkbox" name="Adventure-list" value="Text adventures"</li>
        <li>Graphic adventures<input type="checkbox" name="Adventure-list" value="Graphic adventures"></li>
        <li>Visual novels<input type="checkbox" name="Adventure-list" value="Visual novels"></li>
        <li>Interactive movie<input type="checkbox" name="Adventure-list" value="Interactive movie"></li>
        <li>Real-time 3D adventures<input type="checkbox" name="Adventure-list" value="Real-time 3D adventures"></li>
      </ul>
    </div>   
    <lable><input type="checkbox" name="game-genre" value="Role-playing(RPG)" class="Box">Role-playing(RPG)</lable>
    <div class="Role-playing list" id="Role-playing">
    <lable>Role-playing DIV</lable>
      <p id="Role-playing-list">Here is a list of Role-playing game types</p>
      <ul>
        <li>Action RPG<input type="checkbox" name="Role-playing-list" value="Action RPG"</li>
        <li>MMORPG<input type="checkbox" name="Role-playing-list" value="MMORPG"></li>
        <li>Roguelikes<input type="checkbox" name="Role-playing-list" value="Roguelikes"></li>
        <li>Tactical RPG<input type="checkbox" name="Role-playing-list" value="Tactical RPG"></li>
        <li>Sandbox RPG<input type="checkbox" name="Role-playing-list" value="Sandbox RPG"></li>
        <li>First-person party-based RPG<input type="checkbox" name="Role-playing-list" value="First-person party-based RPG"></li>
        <li>Cultural differences<input type="checkbox" name="Role-playing-list" value="Cultural differences"></li>
        <li>Choices<input type="checkbox" name="Role-playing-list" value="Choices"></li>
        <li>Fantasy<input type="checkbox" name="Role-playing-list" value="Fantasy"></li>
      </ul>
    </div>      
    <lable><input type="checkbox" name="game-genre" value="simulation" class="Box">Simulation</lable>
    <div class="Simulation list" id="Simulation">
    <lable>Simulation DIV</lable>
      <p id="Simulation-list">Here is a list of Simulation game types</p>
      <ul>
        <li>Construction and management simulation<input type="checkbox" name="Simulation-list" value="Construction and management simulation"</li>
        <li>Life simulation<input type="checkbox" name="Simulation-list" value="Life simulation"></li>
        <li>Vehicle simulation<input type="checkbox" name="Simulation-list" value="Vehicle simulation"></li>       
      </ul>
    </div>
    <lable><input type="checkbox" name="game-genre" value="strategy" class="Box">Strategy</lable>
    <div class="Strategy list" id="Strategy">
    <lable>Strategy DIV</lable>
      <p id="Strategy-list">Here is a list of Strategy game types</p>
      <ul>
        <li>4X game<input type="checkbox" name="Strategy-list" value="4X game"</li>
        <li>Artillery game<input type="checkbox" name="Strategy-list" value="Artillery game"></li>
        <li>Real-time strategy (RTS)<input type="checkbox" name="Strategy-list" value="Real-time strategy (RTS)"></li>
        <li>Real-time tactics (RTT)<input type="checkbox" name="Strategy-list" value="Real-time tactics (RTT)"></li>
        <li>Multiplayer online battle arena (MOBA)<input type="checkbox" name="Strategy-list" value="Multiplayer online battle arena (MOBA)"></li>
        <li>Tower defense<input type="checkbox" name="Strategy-list" value="Tower defense"></li>
        <li>Turn-based strategy (TBS)<input type="checkbox" name="Strategy-list" value="Turn-based strategy (TBS)"></li>
        <li>Turn-based tactics (TBT)<input type="checkbox" name="Strategy-list" value="Turn-based tactics (TBT)"></li>
        <li>Wargame<input type="checkbox" name="Strategy-list" value="Wargame"></li>
        <li>Grand strategy wargame<input type="checkbox" name="Strategy-list" value="rand strategy wargame"></li>
      </ul>
    </div>
    <lable><input type="checkbox" name="game-genre" value="simulation" class="Box">Sports</lable>
    <div class="Sports list" id="Sports">
    <lable>Sports DIV</lable>
      <p id="Sports-list">Here is a list of Sports game types</p>
      <ul>
        <li>Racing<input type="checkbox" name="Sports-list" value="Racing"</li>
        <li>Sports game<input type="checkbox" name="Sports-list" value="Sports game"></li>
        <li>Competitive<input type="checkbox" name="Sports-list" value="Competitive"></li>
        <li>Sports-based fighting<input type="checkbox" name="Sports-list" value="Sports-based fighting"></li>        
      </ul>
    </div>
    </div>
    <!-- Lits End -->
   <!--

--><div>
    <p> Please select your favourite genre of game from the list and your favourite type within that ganre from the following list(only one choice allowed)</p> 
    <select id="dropdown">
      <option disabled value selected>Select an option</option>
      <option value="Action">Action</option>
      <option value="Action-adventure">Action-adventure</option>
      <option value="Adventure">Adventure</option>
      <option value="Role-playing">Role-playing</option>
      <option value="Simulation">Simulation</option>
      <option value="Strategy">Strategy</option>
      <option value="Sport">Sport</option>
    </select>
    
    <div id="showAction" class="dList"> 
      <p> My Div 1</p>
            
    <lable>Action DIV</lable>  
      
      <p id="action-list">Here is a list of action game types</p>
      <ul>
        <li>Platform games<input type="radio" name="action-list" value="Platform Games"></li>
        <li>Shooter games<input type="radio" name="action-list" value="Shooter games"></li>
        <li>Fighting games<input type="radio" name="action-list" value="Fighting games"></li>
        <li>Beat 'em up games<input type="radio" name="action-list" value="Beat 'em up games"></li>
        <li>Stealth game<input type="radio" name="action-list" value="Stealth game"></li>
        <li>Survival games<input type="radio" name="action-list" value="Survival games"></li>
        <li>Rhythm games<input type="radio" name="action-list" value="Rhythm games"></li>
      </ul>
    </div>
    
    <div id="showAction-adventure" class="dList">
      
      <p> My Div 2</p>
      
    <lable>Action-adventure DIV</lable>
      <p id="Action-adventure-list">Here is a list of action-adventure game types</p>
      <ul>
        <li>Survival horror<input type="radio" name="Action-adventure-list" value="Survival horror"</li>
        <li>Metroidvania<input type="radio" name="Action-adventure-list" value="Metroidvania"></li>
      </ul>
       
    </div>

<div id="showAdventure" class="dList">
      
      <p> My Div 3</p>
  
   
    <lable>Action DIV</lable>
      <p id="Adventure-list">Here is a list of Adventure game types</p>
      <ul>
        <li>Text adventures<input type="radio" name="Adventure-list" value="Text adventures"</li>
        <li>Graphic adventures<input type="radio" name="Adventure-list" value="Graphic adventures"></li>
        <li>Visual novels<input type="radio" name="Adventure-list" value="Visual novels"></li>
        <li>Interactive movie<input type="radio" name="Adventure-list" value="Interactive movie"></li>
        <li>Real-time 3D adventures<input type="radio" name="Adventure-list" value="Real-time 3D adventures"></li>
      </ul>
     
    </div>

<div id="showRole-playing" class="dList">
      
      <p> My Div 4</p>
  
    <lable>Role-playing DIV</lable>
      <p id="Role-playing-list">Here is a list of Role-playing game types</p>
      <ul>
        <li>Action RPG<input type="radio" name="Role-playing-list" value="Action RPG"</li>
        <li>MMORPG<input type="radio" name="Role-playing-list" value="MMORPG"></li>
        <li>Roguelikes<input type="radio" name="Role-playing-list" value="Roguelikes"></li>
        <li>Tactical RPG<input type="radio" name="Role-playing-list" value="Tactical RPG"></li>
        <li>Sandbox RPG<input type="radio" name="Role-playing-list" value="Sandbox RPG"></li>
        <li>First-person party-based RPG<input type="radio" name="Role-playing-list" value="First-person party-based RPG"></li>
        <li>Cultural differences<input type="radio" name="Role-playing-list" value="Cultural differences"></li>
        <li>Choices<input type="radio" name="Role-playing-list" value="Choices"></li>
        <li>Fantasy<input type="radio" name="Role-playing-list" value="Fantasy"></li>
      </ul>
      
  
    </div>

<div id="showSimulation" class="dList">
      
      <p> My Div 5</p>  
    <lable>Simulation DIV</lable>
      <p id="Simulation-list">Here is a list of Simulation game types</p>
      <ul>
        <li>Construction and management simulation<input type="radio" name="Simulation-list" value="Construction and management simulation"</li>
        <li>Life simulation<input type="radio" name="Simulation-list" value="Life simulation"></li>
        <li>Vehicle simulation<input type="radio" name="Simulation-list" value="Vehicle simulation"></li>       
      </ul>
    
  
    </div>

      <div id="showStrategy" class="dList">
      <p> My Div 6</p>
    
    <lable>Strategy DIV</lable>
      <p id="Strategy-list">Here is a list of Strategy game types</p>
      <ul>
        <li>4X game<input type="radio" name="Strategy-list" value="4X game"</li>
        <li>Artillery game<input type="radio" name="Strategy-list" value="Artillery game"></li>
        <li>Real-time strategy (RTS)<input type="radio" name="Strategy-list" value="Real-time strategy (RTS)"></li>
        <li>Real-time tactics (RTT)<input type="radio" name="Strategy-list" value="Real-time tactics (RTT)"></li>
        <li>Multiplayer online battle arena (MOBA)<input type="radio" name="Strategy-list" value="Multiplayer online battle arena (MOBA)"></li>
        <li>Tower defense<input type="radio" name="Strategy-list" value="Tower defense"></li>
        <li>Turn-based strategy (TBS)<input type="radio" name="Strategy-list" value="Turn-based strategy (TBS)"></li>
        <li>Turn-based tactics (TBT)<input type="radio" name="Strategy-list" value="Turn-based tactics (TBT)"></li>
        <li>Wargame<input type="radio" name="Strategy-list" value="Wargame"></li>
        <li>Grand strategy wargame<input type="radio" name="Strategy-list" value="rand strategy wargame"></li>
      </ul>
    </div>
     <div id="showSport" class="dList">
       
    <lable>Sports DIV</lable>
      <p id="Sports-list">Here is a list of Sports game types</p>
      <ul>
        <li>Racing<input type="radio" name="Sports-list" value="Racing"</li>
        <li>Sports game<input type="radio" name="Sports-list" value="Sports game"></li>
        <li>Competitive<input type="radio" name="Sports-list" value="Competitive"></li>
        <li>Sports-based fighting<input type="radio" name="Sports-list" value="Sports-based fighting"></li>        
      </ul>
       
      <p> My Div 7</p>
    </div>
  <lable for="reason">Please give a reason for your choice</lable>
  <textarea id="reason"></textarea>
    </div>
    
    
    <textarea id="recomendations"></textarea>
  </div>
    
  <!--
    
 
 



        -->
 
  
  
  
  

  
  </div>
  <button type="submit" id="submit">Submit</button>
</form>
              
            
!

CSS

              
                h1, p{
  color:red;
  text-align:center;
}

#survey-form{
  background-color:green;
}
.list, .dList{
	display:none;
  BACKGROUND-COLOR:yellow;
}  
.Container{
  color:blue;
   display:grid;
  /*grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  /*grid-template-columns:60px 60px;
  grid-template-columns:50px 50px;
  margin: 100px 100px 100px 100px;
  padding: 20px 20px 20px 20px;*/
}
#submit{
  color:orange;
}
body{
  background-color: blue;
}

              
            
!

JS

              
                /*$(document).ready((function){
var arr = document.getElementsByClassname("Box");

for (var k=0; k<arr.length; k++)
   arr[k].addEventListener("click",checkShow);

});

function checkShow(){
if($(this).is(":checked"))
  {
$("#action").show();
  }
else
  {
$("#action").hide();
  }

});*/
//New test
/*
/*
$(function(){
  $("#list").click(function(){
    var if($(this).is(":checked")){
  var listval = $(this).val();
  }
  
    
    {
      $("#action").show();
    }
    else
    {
      $("#action").hide();
    }
  });  
});
*
$(function(){
  $("#list").click(function(){
  var listVal = $(this).val();
  document.getElementById("k").innerHTML = listVal;
    if($(this).is(":checked"))
    {
      $("#action").show();
      
    }
    else
    {
      $("#action").hide();
    }
  });  
});
//test start
$(function(){
  $("#actionBox").click(function(){
    var listVal = $(this).val();
  document.getElementById("k").innerHTML = listVal;
    if($(this).is(":checked"))
    {
      $("#action").show();
    }
    else
    {
      $("#action").hide();
    }
  });  
});
*/
//end Test
//start of list show
//action
$(function(){  $("#actionBox").click(function(){
    //var listVal = $(this).val();
  //document.getElementById("k").innerHTML = listVal;
    if($(this).is(":checked"))
    {
      $("#action").show();
    }
    else
    {
      $("#action").hide();
    }
  });  
});
//Action-adventure
$(function(){
  $("#ActAdvBox").click(function(){
    //var listVal = $(this).val();
  //document.getElementById("k").innerHTML = listVal;
    if($(this).is(":checked"))
    {
      $("#Action-adventure").show();
    }
    else
    {
      $("#Action-adventure").hide();
    }
  });  
});
//Adventure
$(function(){
  $("#adventBox").click(function(){
    //var listVal = $(this).val();
  //document.getElementById("k").innerHTML = listVal;
    if($(this).is(":checked"))
    {
      $("#Adventure").show();
    }
    else
    {
      $("#Adventure").hide();
    }
  });  
});
//Role-playing
$(function(){
  $("#RPGBox").click(function(){
    //var listVal = $(this).val();
  //document.getElementById("k").innerHTML = listVal;
    if($(this).is(":checked"))
    {
      $("#Role-playing").show();
    }
    else
    {
      $("#Role-playing").hide();
    }
  });  
});
//Simulation
$(function(){
  $("#SimBox").click(function(){
    //var listVal = $(this).val();
  //document.getElementById("k").innerHTML = listVal;
    if($(this).is(":checked"))
    {
      $("#Simulation").show();
    }
    else
    {
      $("#Simulation").hide();
    }
  });  
});
//stratergy
$(function(){
  $("#stratBox").click(function(){
    //var listVal = $(this).val();
  //document.getElementById("k").innerHTML = listVal;
    if($(this).is(":checked"))
    {
      $("#Strategy").show();
    }
    else
    {
      $("#Strategy").hide();
    }
  });  
});
//sports
$(function(){
  $("#SportBox").click(function(){
    //var listVal = $(this).val();
  //document.getElementById("k").innerHTML = listVal;
    if($(this).is(":checked"))
    {
      $("#Sports").show();
    }
    else
    {
      $("#Sports").hide();
    }
  });  
});
//end of list show
$(function(){
    $('#dropdown').on('change', function(){
    	 var demovalue = $(this).val(); 
      
        $("div.dList").hide();
        $("#show"+demovalue).show();
    });
});
/*
function checkShow({
$("#actionBox").click(function(){
if($(this).is(":checked"))
  {
$("#action").show();
    
  }
else
  {
$("#action").hide();
  }

});
});*/


              
            
!
999px

Console