June 2025
Beginner
817 pages
31h 30m
English
Several properties are available to change the content of an HTML element. Table 19.3 contains a brief overview of these properties or methods, which will be described separately later in this chapter.
|
Method or Property |
Description |
|---|---|
|
element.innerHTML= |
Changes the content of an HTML element |
|
element.attribute= |
Changes the value of an HTML attribute |
|
element.setAttribute(attr,val) |
Changes the value of an HTML attribute |
|
element.style.property= |
Changes the style (CSS) of an HTML element |
Table 19.3 Various Properties and a Method for Changing HTML Elements
You can change the content of ...
Read now
Unlock full access