HTML5 Multiple choices


Total available count: 25
Subject - Web Development
Subsubject - HTML5

In HTML5, which attribute is used to specify that an input field must be filled out?


 

 

 

 



C


Solution:-

HTML <input> required Attribute Definition and Usage:
The required attribute is a boolean attribute.
When present, it specifies that an input field must be filled out before submitting the form.
Note: The required attribute works with the following input types: text, tel, email, password, date pickers, number, checkbox, radio, search, URL, and file.

Syntax:-

<input required>

An example of an HTML form with a required input field is as follows:

<form action="https://www.slightbook.com/">
  <label for="bookname">bookname:</label>
  <input type="text" id="bookname" name="bookname" required>
  <input type="submit">
</form>

 




Next 5 multiple choice(s)

1

Which built-in HTML5 object is used to draw on the canvas?

2

The <canvas> element in HTML5 is used to:

3

Graphics defined by SVG is in which format?

4

In HTML5, you can embed SVG elements directly into an HTML page.

5

In HTML5, contextmenu and spellcheck are:

Comments