Skip to content

practicing createElement, appendChild, document fragment

Notifications You must be signed in to change notification settings

Megraohoh/createComponents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Practice

  1. 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.

  2. Put an article DOM element in your index.html with the id attribute value of messages.

  3. In your JavaScript, use querySelector() to obtain a reference to that article DOM element.

  4. Create five (5) section elements, each with a class of message, and with textContent of your choosing.

  5. Using appendChild(), attach each message as a child to the messages element.

About

practicing createElement, appendChild, document fragment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published