diff --git a/docs/create-modify-element.mdx b/docs/create-modify-element.mdx index cdcd819..caeef89 100644 --- a/docs/create-modify-element.mdx +++ b/docs/create-modify-element.mdx @@ -19,7 +19,7 @@ This method returns the **first element that matches the CSS selector**. If no m ```js document.querySelector(selector); -// Ex- .container > .box +//
document.querySelector(".box"); // returns .box document.querySelector(".not-found"); // null ``` @@ -147,5 +147,20 @@ eleDiv.appendChild(eleH1)