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

Published: 12 November 2023
on channel: 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


On this page of the site you can watch the video online Attributes and properties - Basic JavaScript Fast (52) | setAttribute, getAttribute, dataset with a duration of hours minute second in good quality, which was uploaded by the user Begin Coding Fast 12 November 2023, share the link with friends and acquaintances, this video has already been watched 78 times on youtube and it was liked by 6 viewers. Enjoy your viewing!