<!DOCTYPE html> <html> <head> <title> HappyPlace - Rental Property Portal </title> <style> * { background-color: #C2A1A1; color: #FFFFFF; font-family: Georgia; font-size: 20px; } input[type="text"], input[type="number"], input[type="date"], select, textarea { width: 98%; } input[type="range"] { width: 60%; } ::placeholder { color: #FFFFFF; } h3 { border: 2px solid #FFFFFF; text-align: center; background-color: #FFFFFF; color: #5D4079; border-radius: 6px; margin-left: auto; margin-right: auto; font-size: 30px; border-spacing: 2px; width: 60%; } table { margin: auto; width: 60%; } td { border: 2px solid #FFFFFF; color: #FFFFFF; padding: 5px; border-radius: 6px; border-spacing: 5px; } #submit { margin-left: 45%; background-color: #5D4079; color: #FFFFFF; border-radius: 6px; font-weight: bold; padding: 3px; } #submit:hover { background-color: #FFFFFF; color: #5D4079; } .d { color: #000000; } .c { color: #5D4079; font-style: bold; background-color: #FFFFFF; } </style> </head> <body> <script> function show_value1( x ) { document.getElementById( "demo1" ).innerHTML = x; } function show_value2( x ) { document.getElementById( "demo2" ).innerHTML = x; } </script> <h3> HappyPlace - Rental Property Portal </h3> <table> <tr> <td class="c">Property Details</td> </tr> <tr> <td><select id="type"> <option value="Select the property type..">Select the property type..</option> <option class="d" value="Independent">Independent House</option> <option class="d" value="Gated">Gated Community</option> </select> </td> <td><select id="age"> <option value="Select the age of property..">Select the age of property..</option> <option class="d" value="0-1">0-1</option> <option class="d" value="1-5">1-5</option> <option class="d" value="5-10">5-10</option> <option class="d" value="10+">10+</option> </select> </td> </tr> <tr> <td><input type="text" id="sqft" placeholder="Enter the area in sq.ft*"></td> <td><input placeholder="Enter the no of bedrooms*" type="number" id="bhk"></td> </tr> <tr> <td colspan="2"><textarea id="address" col="10" row="10" placeholder="Enter the Address*"></textarea></td> </tr> <tr> <td>Posted on :<br /><input type="date" id="postedon"></td> <td>Available from :<br /><input type="date" id="availablefrom"></td> </tr> <tr> <td>Rent :<input type="range" id="rent" min="6000" max="30000" onchange="show_value1(this.value);"> <span id="demo1"></span></td> <td>Deposit : <input type="range" id="deposit" min="20000" max="200000" onchange="show_value2(this.value);"> <span id="demo2"></span></td> </tr> <tr> <td><input type="number" id="floor" placeholder="Enter the floor no*"></td> <td><input type="checkbox" id="parking"> Parking facility</td> </tr> <tr> <td>Extra Aminities </td> <td><input type="checkbox" id="lift"> Lift <br> <input type="checkbox" id="staff"> Maintanance staff <br> <input type="checkbox" id="park"> Park <br> <input type="checkbox" id="intercom"> Intercom <br> <input type="checkbox" id="furnishing"> Furnishing</td> </tr> <tr> <td> <input type="text" id="oname" placeholder="Enter the Owner name*"> </td> <td> <input type="tel" id="phno" placeholder="Contact number*"> </td> </tr> </table> <br/> <p><input type="button" id="submit" value="POST PROPERTY"></p> </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>