-
You're going to create a simple list of chat messages that you might have with one of your family members. Maybe it's that wacky aunt that you see every Christmas and Fourth of July.
-
Put an article DOM element in your index.html with the id attribute value of messages.
-
In your JavaScript, use querySelector() to obtain a reference to that article DOM element.
-
Create five (5) section elements, each with a class of message, and with textContent of your choosing.
-
Using appendChild(), attach each message as a child to the messages element.
-
Notifications
You must be signed in to change notification settings - Fork 0
Megraohoh/createComponents
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
practicing createElement, appendChild, document fragment
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published