Exercise: DOM Manipulation
- You should add your solution to the assignments folder (DOM Manipulation) – Week5 repo
Let’s start preparing the structure of our files:
create 2 files with .js and .html extensions.
Create the basic template for your html file.
Link your files together using <script> tag.
In your .js file do the following:
- Create a
<p>with red text that says "Hey I’m red!" and add it to the document’s body
- Create and add an
<h3>with blue text that says "I’m a blue h3!"
- Create and add a
<div>with a black border and pink background color with the following elements inside of it:
<h1>that says "I’m in a div"
<p>that says "ME TOO!"
- Hint for this one: after creating the div with createElement, append the
<p>to it before adding it to the
- Create a
Push your solution, create a pull request and submit the pull request URL to the Quiz below.
0 of 1 Questions completed
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 1 Questions answered correctly
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Submit your pull request URL
Grading can be reviewed and adjusted.Grading can be reviewed and adjusted.
This response will be awarded full points automatically, but it can be reviewed and adjusted after submission.