FOLLOW US ON TWITTER



FOLLOW US



img/blogimg/html5.jpg


@coder 899

HTML Global Attributes


2021-11-17 19:51 · 4 min read

Global Attributes

Attributes that can be used with all HTML elements Known as Global Attributes.

Global Attributes.

AttributeDetails
classDefines one or more class names for an element. See Classes and IDs for more
contenteditableSets whether the content of an element can be edited.
contextmenuDefines a context menu shown when a user right-clicks an element.
dirSets the text direction for text within an element.
draggableSets whether an element can be dragged.
hiddenHides an element not currently in use on the page.
idDefines a unique identifier for an element. See Classes and IDs.
langDefines the language of an element's content and its text attribute values. See Content Languages.
spellcheckSets whether to spell/grammar check the content of an element.
styleDefines a set of inline CSS styles for an element
tabindexSets the order in which elements on a page are navigated by the tab keyboard shortcut
titleDefines additional information about an element, generally in the form of tooltip text on mouseover.
translateDefines whether to translate the content of an element.


 

contenteditable Attribute

<p contenteditable>This is an editable paragraph.</p>

Copy

Upon clicking on the paragraph, the content of it can be edited similar to an input text field

When the contenteditable attribute is not set on an element, the element will inherit it from its parent. So all child text of a content editable element will also be editable, but you can turn it off for specific text, like so:


 

<p contenteditable>
This is an editable paragraph.
<span contenteditable="false">But not this.</span>
</p>
TAGS:






POST COMMENTS
No Comment

Please login to post comment




POPULAR POSTS

best free web hosting services...
what is new in miui 11?...
free website ssl security using cloudfla...
do you want to make money online?...
CSS3 @IMPORT RULES...
What is HTML Anchor Tag and Hyperlinks?...
CSS3 RESPONSIVE UI...
How to host a web page in 10 minutes....
Tables HTML...
CSS3 FUNCTIONS...
How to use CSS3 Overflow Property?...
CSS3 FILTERS...


RECENT COMMENTS

2022-03-05 11:05
By coder on XAMPP - MySQL shutdown unexpectedly | How to fix MySQL crash unexpectedly
2021-10-12 12:34
By abnongoke on do you want to make money online?
2021-10-12 12:34
By abnongoke on how to get a free website domain name?
2021-10-12 12:34
By solar panel for shed on what is new in miui 11?
2021-10-12 12:34
By solar panel for shed on best free web hosting services
2021-10-12 12:34
By amos tanui on free website ssl security using cloudflare


SOCIAL SHARE



FOLLOW US ON TWITTER



FOLLOW US ON FACEBOOK



FOLLOW US







Recent Blogs



Contact Us

Subscribe Our News-Letter



Kashipur, 244713
Uttarakhand, India



© blog.theprodevelopers.com 2024. All Rights Reserved. Powered by Pro Developer