This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
HTML Elements: Forms |
Answer»
<div class="demoForm"> <label for="name">Please input your name: </label> <input type="text" name="name" id="name" required> </div> <div class="demoForm"> <label for="email">Please input your email id: </label> <input type="email" name="email" id="email" required> </div> <div class="demoForm"> <input type="submit" value="Submit!"> </div> </form>
<html> <body> <p>Example of a button</p> <button type="button" onclick="alert(This is a button click!')">Click Me!</button> </body> </html>
<html> <body> <p>Demo of the datalist tag in HTML</p> <form action="" method="get"> <label for="browser">Choose your favourite fruit from the list given below:</label> <input list="fruits" name="fruit" id="fruit"> <datalist id="browsers"> <option value="Apple"> <option value="Orange"> <option value="Kiwi"> <option value="Pomegranate"> <option value="Dragon Fruit"> </datalist> <input type="submit"> </form> </body> </html>
<html> <body> <p>Demo of the progress tag</p> <label for="fileDownload">Progress of the download:</label> <progress id="fileDownload" value="64" max="80"> 64% </progress> </body> </html>
<select name="cuisine" id="cuisine"> <optgroup label="Indian Cuisine"> <option value="chola-bhature">Chola Bhature</option> <option value="dahi-vada">Dahi Vada</option> </optgroup> <optgroup label="Italian Cuisine"> <option value="pizza">Pizza</option> <option value="pasta">Pasta</option> </optgroup> </select>
<html> <body> <p>Demo of the legend and fieldset elements</p> <form action=""> <fieldset> <legend>Personal Information:</legend> <label for="firstname">First name:</label> <input type="text" id="firstname" name="firstname"> <label for="lastname">Last name:</label> <input type="text" id="lastname" name="lastname"> <label for="emailId">Email Id:</label> <input type="emailId" id="emailId" name="emailId"> <label for="birthday">Date of birth:</label> <input type="date" id="birthday" name="birthday"><br><br> <input type="submit" value="Submit"> </fieldset> </form> </body> </html>
At interviewbit.com we can learn how to prepare for coding interviews as it offers free tutorials in all Computer Science subjects. </textarea> |
|
| 2. |
HTML Elements: Tables |
Answer»
An example that shows the usage of a table in HTML is given below: <table><caption>Details about Tables in HTML</caption> <thead> <tr> <th rowspan="5">HTML table's header</th> </tr> </thead> <tbody> <tr> <td>Body of the table</td> <td>Table has 5 rows</td> </tr> </tbody> <tfoot> <tr> <td>Footer of the table </td> </tr> </tfoot> </table> |
|
| 3. |
HTML Elements: Demarcating Edits |
Answer»
An example which shows the usage of the <del> element and <ins> element is given below: <!DOCTYPE html><html> <body> <h1>Demo of the del element and ins element</h1> <p>Her favourite colour is <del> green</del> <ins> magenta</ins>!</p> </body> </html> |
|
| 4. |
HTML Elements: Interactive Elements |
Answer»
An example that shows the usage of the <summary> element and the <details> element is given below: <details><summary>Summary of the topic</summary> Java is an Object Oriented Programming Language. </details> |
|
| 5. |
HTML Elements: Adding Scripting |
Answer»
<script type="text/javascript" src="javascript.js"></script> <!-- HTML5 --> <script src="javascript.js"></script> |
|
| 6. |
HTML Elements: Adding Inline Text Semantics |
Answer»
Your browser is not supporting the <code>Audio</code> element. </audio>
|
|
| 7. |
HTML Elements: Adding Image and Multimedia |
Answer»
src="/pictures/apple-660-480.jpeg" alt="This is a picture of an apple">
<figcaption>Roaring of a lion:</figcaption> <audio controls src="/audio/demo/lion-roaring.mp3"> Your browser is not supporting the <code>Audio</code> element. </audio> </figure>
<track default kind="captions" srclang="en" WebsiteSetup.org - Beginner's HTML Cheat Sheet 11 src="/videos/demos/teachHTML.vtt"/> Seems like your browser is not supporting the feature of embedded videos. </video> |
|
| 8. |
HTML Elements: Adding Text Content |
Answer»
For 50 years, WWF has been protecting the future of nature. The world's leading conservation organisation, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally. </blockquote>
<p> This is a paragraph inside a div element</p> </div>
This message which is contained in a HTML pre tag will be shown in a fixed size font. Also,spaces and line breaks are preserved as it is. </pre>
An example which shows the usage of the <dl>, <dd> and <dt> elements is given below: <dl><dt>Tea</dt> <dd>Brown Hot drink</dd> <dt> Milk </dt> <dd>White cold drink</dd> </dl>
An example which shows the usage of the <ol>, <ul>, <li> elements is given below: <div><p>List of fruits</p> <ol> <li>Apple</li> <li>Orange</li> <li>Kiwi</li> </ol> <p>List of vegetables</p> <ul> <li>Carrots</li> <li>Broccoli</li> <li>Spinach</li> </ol> </div>
An example which shows the usage of the <figure> and <figcaption> elements is given below: <figure><img src="/pictures/lion-1080-720.jpeg" alt="Lion hunting"> <figcaption>Picture of a lion hunting its prey</figcaption> </figure> |
|
| 9. |
HTML Elements: Sectioning the Content |
Answer»
Written by <a href="mailto:interviewbit@example.com">Kit Harrington</a>.<br> Find us at:<br> interviewbit.com<br> Mumbai<br> India </address>
<h2>HTML Cheatsheet</h2> <p>HTML is an important markup language for web development</p> </article>
<h4>What's more on Interviewbit</h4> <p>Prepare for coding interviews of all companies at interviewbit</p> </aside>
<h1>Header over here</h1> <p>Content by Scaler</p> </header>
<p>Author: Jon Snow</p> <p><a href="mailto:jonsnow@example.com">jon@example.com</a></p> </footer>
<h1>The Heading tag</h1> </main>
<h2>The Subheading tag</h2>
<a href="/oop/">Learn OOPs</a> | <a href="/c++/">Learn C++</a> | <a href="/os/">Learn Operating System</a> | </nav>
<h2>More about Interviewbit</h2> <p>Interviewbit helps students prepare for technical interviews and crack the various interview rounds of companies</p> </section> |
|
| 10. |
HTML Elements: Sectioning the Root |
Answer»
An example illustrating the use of the body element is given below: <!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8"> <title> HTML Cheatsheet </title> <link rel="stylesheet" href="styles.css"> <style> h1 {colour:green;} p {colour:yellow;} </style> </head> <body bgcolour="red"> <p>This is a HTML cheatsheet </p> </body> </html>
|
|
| 11. |
HTML Meta Tag |
Answer»
An example showing the usage of all the above elements is given below: <!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8"> <title> HTML Cheatsheet </title> <link rel="stylesheet" href="styles.css"> <style> h1 {colour:green;} p {colour:yellow;} </style> </head> </html> |
|
| 12. |
Root Element in HTML |
Answer»
<html lang="en"> <head>...</head> <body>...</body> </html> The structure of an HTML document is shown below: |
|