JavaScript linking with HTML
المعرفة:: JavaScript
الحالة:: ملاحظة_مؤرشفة
المراجع:: JavaScript Essential Training
Where to put JavaScript code?¶
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
Inline: in an HTML document¶
<script>
const allCode = document.querySelectorAll("code");
for (let item of allCode) {
item.innerHTML = `<${item.innerHTML}>`;
}
</script>
External file¶
Last update :
August 14, 2023
Created : August 23, 2022
Created : August 23, 2022