HTML5 Multiple choices


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

In HTML5, contextmenu and spellcheck are:


 

 

 

 



D


Solution:-

Definition and Usage of contextmenu attribute specifies a context menu for an element and the value of the attribute is the id of the <menu> element to open.

Syntax:-

<element contextmenu="menu_id">

Example:-
Specify a context menu for a <div> element. The context menu appears when a user right-clicks on the element:

<div contextmenu="mymenu">

<menu type="context" id="mymenu">
 <menuitem label="Refresh"></menuitem>
 <menuitem label="Twitter"></menuitem>
</menu>

</div>

Definition and Usage of spellcheck attribute specify whether the element is to have its spelling and grammar checked or not.

The following can be spellchecked:

  • Text values in input elements (not password)
  • Text in <textarea> elements
  • Text in editable elements
<element spellcheck="true|false">

Example:-
An editable paragraph with spellcheck:

<p contenteditable="true" spellcheck="true">This is a paragraph.</p>

 




Next 5 multiple choice(s)

1

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

2

Graphics defined by SVG is in which format?

3

The <canvas> element in HTML5 is used to:

4

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

5

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

Comments