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

The new HTML5 global attribute, "contenteditable" is used to:

2

In HTML5, which method is used to get the current location of a user?

3

Which attribute for <script> elements is no longer required in HTML5?

4

What is the correct HTML5 element for playing audio files?

5

What is the correct HTML5 element for playing video files?

Comments