Skip to content

Commit

Permalink
Information text corrected to match html.onclick()
Browse files Browse the repository at this point in the history
Please consider the following small improvement made in information text to make it more clear since clicking inside the empty list will also add the 1st item.

Information text "Click anywhere outside list" changed to "Click anywhere on the page". 

Hope this description will more accurately indicate the functionality of html.onclick()
  • Loading branch information
johnjinto authored Jul 12, 2021
1 parent ce63ade commit 0cf7e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/introduction-to-html/the-html-head/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const list = document.createElement('ul');
const info = document.createElement('p');
const html = document.querySelector('html');

info.textContent = 'Below is a dynamic list. Click anywhere outside the list to add a new list item. Click an existing list item to change its text to something else.';
info.textContent = 'Below is a dynamic list. Click anywhere on the page to add a new list item. Click an existing list item to change its text to something else.';

document.body.appendChild(info);
document.body.appendChild(list);
Expand Down

0 comments on commit 0cf7e36

Please sign in to comment.