CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
4
Change Text ContentSelect the paragraph with id="message" and change its text content to "Text has been changed!".
easyNot startedSolve
5
Add CSS ClassSelect the button with id="myButton" and add the CSS class "active" to it.
easyNot startedSolve
7
Change Button TextSelect the button with id="submitBtn" and change its text content to "Submit Form".
easyNot startedSolve
8
Add CSS Class to HeadingSelect the heading with id="pageTitle" and add the CSS class "highlight" to it.
easyNot startedSolve
9
Change Image SourceSelect the image with id="profilePic" and change its src attribute to "avatar.png".
easyNot startedSolve
12
Change Multiple CSS StylesSelect the paragraph with id="styledText" and change its color to "blue", fontSize to "20px", and backgroundColor to "lightyellow".
easyNot startedSolve
13
Toggle CSS ClassSelect the div with id="themeBox" and toggle the CSS class "dark" on it.
easyNot startedSolve
14
Change innerHTMLSelect the div with id="contentBox" and replace its innerHTML with a new heading and paragraph.
easyNot startedSolve
16
Remove an ElementSelect the paragraph with id="removeMe" and remove it from the page.
easyNot startedSolve
19
Update a Link's DestinationSelect the link with id="navLink" and change its href to "https://example.com" and its text content to "Visit Example".
easyNot startedSolve
20
Remove CSS ClassSelect the div with id="alertBox" and remove the CSS class "error" from it.
easyNot startedSolve
21
Query Selector by ClassUse querySelector() to select the first element with class "highlight" and change its text content to "Highlighted Text".
easyNot startedSolve
69
Change Paragraph TextA paragraph with id="msg" currently says 'Old text'.
easyNot startedSolve
70
Hide an ElementA div with id="box" is visible.
easyNot startedSolve
106
Change the Heading TextThe page has a heading with the id title.
easyNot startedSolve
107
Highlight the ButtonThere is a button with the id cta.
easyNot startedSolve
108
Set the Image Alt TextAn image with the id logo is missing its alternative text, which screen readers rely on.
easyNot startedSolve
109
Paint the Paragraph RedA paragraph with the id note should stand out as a warning.
easyNot startedSolve
110
Rename the ProductA <span> element has the class product-name and currently shows Widget.
easyNot startedSolve
111
Update the Link URLA navigation link with the id home-link currently points to a placeholder #.
easyNot startedSolve
112
Add a To-Do ItemThere is a to-do list <ul> with the id todo that already contains one item.
easyNot startedSolve
166
Set Input Placeholder TextSelect the input with id="nameInput" and set its placeholder attribute to "Enter your name".
easyNot startedSolve
167
Set an Element's Text ColorSelect the paragraph with id="msg" and set its text color to "red" using the style property.
easyNot startedSolve
168
Set a Background ColorSelect the element with id="banner" and set its backgroundColor style to "yellow".
easyNot startedSolve
169
Make Text BoldSelect the span with id="label" and make its text bold by setting fontWeight to "bold".
easyNot startedSolve
170
Add Alt Text to an ImageSelect the image with id="logo" and set its alt attribute to "Company logo".
easyNot startedSolve
171
Add Multiple Classes at OnceSelect the paragraph with id="note" and add BOTH classes "bold" and "rounded" in a single classList.add() call.
easyNot startedSolve
172
Replace a CSS ClassSelect the div with id="alert" and replace its "info" class with "warning" using classList.replace().
easyNot startedSolve
173
Set a Tooltip TitleSelect the button with id="delBtn" and set its title attribute to "Delete this item" so it shows a tooltip on hover.
easyNot startedSolve
174
Open a Link in a New TabSelect the link with id="siteLink" and set its target attribute to "_blank" so it opens in a new tab.
easyNot startedSolve
175
Copy Text From One Element to AnotherRead the text from the span with id="source" and copy it into the span with id="dest" so both read "Hello".
easyNot startedSolve
176
Set an Image's WidthSelect the image with id="pic" and set its width attribute to "200" using setAttribute().
easyNot startedSolve
177
Select First Paragraph by TagUse document.querySelector() with the tag name "p" to select the FIRST paragraph on the page and change its text to "Updated first".
easyNot startedSolve
183
Increment a CounterThe span with id="counter" holds the number 5.
easyNot startedSolve
6
Update Text and Add ClassSelect the paragraph with id="status", change its text content to "Complete", and add the CSS class "done" to it.
mediumNot startedSolve
10
Update Span Text and Add ClassSelect the span with id="counter" and change its text to "5", then add the CSS class "active" to it.
mediumNot startedSolve
11
Change Link Href and TextSelect the link with id="homeLink" and change its href attribute to "/home" and its text content to "Go Home".
mediumNot startedSolve
15
Create and Append New ElementCreate a new paragraph element with the text "This paragraph was created with JavaScript!" and append it to the div with id="container".
mediumNot startedSolve
17
Create Image Element with AttributesCreate a new image element and set its src to "photo.jpg" and alt to "My Photo".
mediumNot startedSolve
18
Create List with Multiple ItemsCreate an unordered list (<ul>) with three list items containing "Apple", "Banana", and "Orange".
mediumNot startedSolve
71
Mark a Task as DoneA list item with id="task" represents a to-do item.
mediumNot startedSolve
72
Set a Data AttributeA button with id="btn" needs a custom attribute.
mediumNot startedSolve
73
Update a Title and CounterThe page has a heading with id="title" (currently 'Welcome') and a span with id="count" (currently '0').
mediumNot startedSolve
113
Activate the Menu TabA menu tab <div> has the id tab and the class menu-item.
mediumNot startedSolve
114
Mark the Status as DoneA status badge <span> has the id status and the class pending.
mediumNot startedSolve
115
Build a Follow ButtonAn empty container <div> has the id panel.
mediumNot startedSolve
178
Add a Class to Every List ItemSelect ALL list items inside the list with id="menu" and add the class "nav-item" to each one.
mediumNot startedSolve
179
Uppercase an Element's TextSelect the heading with id="heading", read its current text, and replace it with the UPPERCASE version.
mediumNot startedSolve
180
Append a Paragraph to a ContainerCreate a new <p> element with the text "New paragraph" and append it inside the empty div with id="box".
mediumNot startedSolve
181
Create a Link ElementCreate a new <a> element with href "https://example.com" and text "Visit", then append it inside the nav with id="nav".
mediumNot startedSolve
182
Read a Data AttributeRead the data-username value from the div with id="widget" using its dataset, and display it as the text of the span with id="output".
mediumNot startedSolve
184
Disable a ButtonSelect the button with id="saveBtn" and disable it by setting its disabled property to true.
mediumNot startedSolve
185
Remove an AttributeThe button with id="submitBtn" starts disabled.
mediumNot startedSolve
186
Clear a List's ContentsSelect the list with id="todos" and remove all of its items by setting its innerHTML to an empty string.
mediumNot startedSolve
187
Count List ItemsCount how many <li> items are inside the list with id="list" and show that number (3) as the text of the paragraph with id="count".
mediumNot startedSolve
74
Create and Append a List ItemAn empty unordered list has id="list".
hardNot startedSolve
75
Highlight All ParagraphsA container with id="para-list" holds three <p> elements.
hardNot startedSolve
188
Add a Status Class Based on a ScoreThe div with id="result" has a data-score attribute.
hardNot startedSolve
189
Reverse the Order of List ItemsReverse the order of the <li> items inside the list with id="ranking" so the list reads "Third", "Second", "First".
hardNot startedSolve
190
Move an Element Into Another ContainerMove the paragraph with id="item" out of the div with id="source" and into the div with id="target".
hardNot startedSolve