TutorialKart
index.html
►
Run
Reset
<!DOCTYPE html> <html> <body> <h2>Dynamic Update Example</h2> <p>This item was <del id="oldPrice">$200</del> but is now $150.</p> <script> const delTag = document.getElementById("oldPrice"); delTag.setAttribute("datetime", new Date().toISOString()); delTag.setAttribute("cite", "https://example.com/price-changes"); </script> </body> </html>