Month: January 2019


Form with a text fields without a name attribute HTML Forms HTML Examples – HTML Code       <form action=”/action_page.php”> First name:<br> <input type=”text” value=”Mickey”> <br> Last name:<br> <input type=”text” name=”lastname” value=”Mouse”> <br><br> <input type=”submit” value=”Submit”> </form>    


Form with text fields and a submit button HTML Forms HTML Examples – HTML Code       <form action=”/action_page.php”> First name:<br> <input type=”text” name=”firstname” value=”Mickey”> <br> Last name:<br> <input type=”text” name=”lastname” value=”Mouse”> <br><br> <input type=”submit” value=”Submit”> </form>    


Form with radio button input HTML Forms HTML Examples – HTML Code       <form> <input type=”radio” name=”gender” value=”male” checked> Male<br> <input type=”radio” name=”gender” value=”female”> Female<br> <input type=”radio” name=”gender” value=”other”> Other </form>    


Form with text input HTML Forms HTML Examples – HTML Code       <form> First name:<br> <input type=”text” name=”firstname”> <br> Last name:<br> <input type=”text” name=”lastname”> </form>    


Variable formatting using the <var> element HTML Computercode Elements HTML Examples – HTML Code       <h2>The var Element</h2> <p>Einstein wrote: <var>E</var> = <var>mc</var><sup>2</sup>.</p>    


Programming code formatting preserving whitespace and line-breaks HTML Computercode Elements HTML Examples – HTML Code       <p>The code element does not preserve whitespace and line-breaks.</p> <p>To fix this, you can put the code element inside a pre element:</p> Read more…


Programming code formatting using the <code> element HTML Computercode Elements HTML Examples – HTML Code       <h2>The code Element</h2> <p>Programming code example:</p> <code> x = 5; y = 6; z = x + y; </code>    


Computer output formatting using the <samp> element HTML Computercode Elements HTML Examples – HTML Code       <h2>The samp Element</h2> <p>The samp element represents output from a program or computing system:</p> <p>If you input wrong value, the program will Read more…


Keyboard input formatting using the <kbd> element HTML Computercode Elements HTML Examples – HTML Code       <h2>The kbd Element</h2> <p>The kbd element represents user input:</p> <p>Save the document by pressing <kbd>Ctrl + S</kbd></p>    


Use of the <noscript> tag HTML Scripts HTML Examples – HTML Code       <p id=”demo”></p> <script> document.getElementById(“demo”).innerHTML = “Hello JavaScript!”; </script> <noscript>Sorry, your browser does not support JavaScript!</noscript> <p>A browser without support for JavaScript will show the text Read more…

"