Adding custom attributes to HTML tags special usage

Source: Internet
Author: User

1 <!DOCTYPE HTML>2 <HTMLLang= "en">3 4 <Head>5     <MetaCharSet= "UTF-8">6     <title>Document7     </title>8     <styletype= "Text/css">9 . demo[aaaa]{Ten Color:Red; One     } A     </style> - </Head> -  the <Body> -     <DivAAAA class= "Demo">Demo</Div> -     <Divclass= "Demo">Demo</Div> - </Body> +  - </HTML>

This is a special usage that I have encountered in learning Vue, and Vue will have something similar to the HTML rendered to the interface: Data-v-47362a53, just a property, as if it were about the scoped of CSS.

There are similar selectors in jquery, but they have never been used.

There are many selectors in jquery, but a lot of them are seldom used in development, as long as they can get to the DOM, and occasionally encounter special, learning, is also very good.

Adding custom attributes to HTML tags special usage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.