<!DOCTYPE html> <html> <head> <h1 style="font-family:jokerman;">COVID-19 Vaccination Registration</h1> <h3 style="font-family:jokerman;">Please Register yourself 👇 for covid vaccine</h3> </head> <body> <form action=thanks.html> <table> <tr> <td style="font-family:forte;"> Name : </td> <td style="font-family:forte;"> <input type="text" placeholder="Enter your Name here" name="username" required style="font-family:kristen itc;"> </td> </tr> <tr> <td style="font-family:forte;"> Password : </td> <td style="font-family:forte;"> <input type="Password" placeholder="Enter your Password here" password="password" required style="font-family:kristen itc;"> </tr> <tr> <td style="font-family:forte;"> Email ID : </td> <td> <input type= "mail" placeholder="Enter your Email ID here" name="email" required style="font-family:kristen itc;"> </td> </tr> <tr> <td style="font-family:forte;"> Phone Number: </td> <td style="font-family:kristen itc;"> <select value="phonecode" required style="font-family:kristen itc;"> <option selected value="">Select Phone Code</option> <option value="USA">+1(USA)</option> <option value="UK">+44(UK)</option> <option value="India">+91(India)</option> <option value="Mexico">+52(Mexico)</option> <option value="China">+86(China)</option> <option value="Other">Other</option> </select> <input type="Phone Number" placeholder="96647*****" name="phnumber" required style="font-family:kristen itc;"> </td> </tr> <tr> <td style="font-family:forte;"> Gender : </td> <td> <input type="radio" name="gender" value="m" required style="font-family:kristen itc;">Male <input type="radio" name="gender" value="f" required >Female </td> </tr> <tr> <td required style="font-family:forte;"> Select Vaccine </td> <td> <select required style="font-family:kristen itc;" required> <option selected>Choose Vaccine</option> <option>COVAXIN</option> <option>COVISHIELD</option> </td> </tr> <tr> <td style="font-family:forte;"> Choose Date </td> <td> <input type= "Date" placeholder= "Enter Date" required style="font-family:kristen itc;"> </td> </tr> <tr> <td style="font-family:forte;"> Choose Dose </td> <td> <select style="font-family:kristen itc;" required> <option selected>Dose 1/2</option> <option>1st Dose</option> <option>2nd Dose</option> </td> </tr> <tr> <td style="font-family:forte;"> If 2nd dose, select date of 1st dose </td> <td> <input type="Date" placeholder="Select date of 1st dose" style="font-family:kristen itc;"> <tr style="font-family:forte;"> <td style="font-family:forte;"> <input type="submit" style="font-family:forte;" Value="Submit"> </table> </form> </body> </html>
Write, Run & Share HTML code online using OneCompiler's HTML online Code editor for free. It's one of the robust, feature-rich online Code editor for HTML language, running on the latest version HTML5. Getting started with the OneCompiler's HTML compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as HTML
. You can also specify the stylesheet information in styles.css
tab and scripts information in scripts.js
tab and start coding.
HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991. Almost every web page over internet might be using HTML.
<!DOCTYPE html>
<html>
and ends with </html>
<h1>
to <h6>
where <h1>
is the highest important heading and <h6>
is the least important sub-heading.<p>..</p>
tag.<a>
tag.
<a href="https://onecompiler.com/html">HTML online compiler</a>
<img>
tag, where src
attribute consists of image name.<button>..</button>
tag<ul>
for unordered/bullet list and <ol>
for ordered/number list, and the list items are defined in <li>
.<a href="https://onecompiler.com/html">HTML online compiler</a>
CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.
Below is a sample style sheet which displays heading in green and in Candara font with padding space of 25px.
body{
padding: 25px;
}
.title {
color: #228B22;
font-family: Candara;
}
<table>
tag.<tr>
tag<th>
tag<td>
tag<caption>
tag<script>
is the tag used to write scripts in HTML<script src="script.js"></script>