Attributes and properties - Basic JavaScript Fast (52) | setAttribute, getAttribute, dataset

Publié le: 12 novembre 2023
sur la chaîne: Begin Coding Fast
78
6

This video discusses the relationship between the attributes in HTML and the properties in DOM nodes. Standard attributes can be converted to DOM properties, but the non-standard ones cannot. To access the non-standard attributes, we use the "attributes" method. We can also get, set or remove an attribute, too. The conversion between HTML attributes and DOM properties are synchronized. Though the attribute value is a string, the corresponding DOM property value can be of other data types. Finally, we discuss the dataset property of DOM nodes, which helps to organize our custom attributes for easy access.

2:09 - Conversion between HTML attributes and DOM node properties
11:01 - Attribute-property synchronization
14:03 - DOM properties can be of other data types
16:24 - dataset property of DOM nodes

Playlist of my JavaScript course
   • [20 hours] JavaScript tutorial for be...  

Playlist of my HTML5 and CSS3 tutorials
   • [12 hours] HTML and CSS tutorials for...  

Playlist of my algorithm walkthrough
   • Algorithms and data structures | DSA ...  

Playlist of my Java course
   • [14 hours] Java tutorial for beginner...  

Playlist of my Java examples
   • Java projects for beginners | Java pr...  

#javascripttutorial #javascriptfullcourse #begincodingfast #javascript #dataset


Sur cette page du site, vous pouvez voir la vidéo en ligne Attributes and properties - Basic JavaScript Fast (52) | setAttribute, getAttribute, dataset durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Begin Coding Fast 12 novembre 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 78 fois et il a aimé 6 téléspectateurs. Bon visionnage!