DOM Manipulations
Use the below reference image link:.
https://res.cloudinary.com/dfxicv9iv/image/upload/v1619259911/dom-manipulations-2_ax38mg.gif
Dynamically add the elements in HTML container element with id
myContainer to achieve the design.
Note
Use the checked property and classList.toggle method to achieve the functionality.
CSS Colors used:
#7a0ecc
#f2ebfe
HTML Placeholder Attribute
Placeholder Attribute.
Use the below reference image link:.
https://assets.ccbp.in/frontend/content/dynamic-webapps/ce-3-2-1-html-placeholder-attribute-op.png
using CSS Border Properties
Properties.
Use the below reference image link:
https://res.cloudinary.com/dfxicv9iv/image/upload/v1619085330/css-border-properties-output_a4ucou.png
Achieve the design by using CSS border
border-* properties. The * indicates the direction.Apply the border shorthand property with the width
CSS Colors used:
#184b73
#ffffff
by using for...of loop.
Use the below reference image link:
https://assets.ccbp.in/frontend/content/dynamic-webapps/ce-3-1-3-for-of-loop-op.png.
Achieve the design using the
for...of loop to iterate over an array in the JS prefilled code.
Use DOM Manipulations
Dynamically add the input elements in HTML container element with id interestsContainer to achieve the design.
Note
USE
Remove and Add Class Names
Achieve the given functionality.
USE;Dynamic Event Listeners
Achieve the given functionality.
CSS Colors used:
Text colors Hex code values used:
#0000ff
USE;
Creating and Appending Elements Dynamically with JS.
Use the below reference image.
Achieve the given design using JS.
CSS Colors used:
Text colors Hex code values used:
#0000ff
Achieve the given functionality using JS.