In HTML5, contextmenu and spellcheck are:
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:
<element spellcheck="true|false">
Example:-
An editable paragraph with spellcheck:
<p contenteditable="true" spellcheck="true">This is a paragraph.</p>
The new HTML5 global attribute, "contenteditable" is used to:
In HTML5, which method is used to get the current location of a user?
Which attribute for <script> elements is no longer required in HTML5?
What is the correct HTML5 element for playing audio files?
What is the correct HTML5 element for playing video files?