<!DOCTYPE html>
<
html
>
<
body
>
<
center
>
<
h1
style
=
"color: green;"
>
GeeksforGeeks
</
h1
>
<
h2
>HTML <
menu
> label Attribute</
h2
>
<
div
style="background:green;
border:2px solid black;
padding: 10px;"
contextmenu
=
"geeks"
>
<
p
>A Computer Science Portal for Geeks</
p
>
<
menu
type
=
"context"
id
=
"geeks"
>
<
menu
label
=
"Share on..."
>
<
menuitem
label
=
"Twitter"
onclick=
"window.open('//twitter.com/intent/tweet?text='
+ window.location.href);">
</
menuitem
>
<
menuitem
label
=
"Pinterest"
onclick="window.open(
window.location.href);">
</
menuitem
>
</
menu
>
<
menuitem
label
=
"Email This Page"
onclick="
window.location
=
'mailto:?body='
+ window.location.href;">
</
menuitem
>
</
menu
>
</
div
>
<
p
>A Computer Science Portal for Geeks</
p
>
<
hr
>
<
p
>Right click on green div and see the menuitem
</
center
>
</
body
>
</
html
>