first commit
This commit is contained in:
22
Suli/13.b/Frontend/Javascript/2024. 09. 23/index.html
Normal file
22
Suli/13.b/Frontend/Javascript/2024. 09. 23/index.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p name="kaka">ihufsf</p>
|
||||
|
||||
<script>
|
||||
let pElem = document.querySelector("[name='kaka']")
|
||||
pElem.innerText = "<strong>jisakjnkjdakjjinajajnaeiuafeiiuaeiaui</strong>"
|
||||
pElem.style.backgroundColor = "yellow"
|
||||
console.log(pElem.getAttribute("name"));
|
||||
let ujElem = document.createElement("div")
|
||||
ujElem.innerHTML = "KKAKAKAK"
|
||||
pElem.appendChild(ujElem)
|
||||
pElem.removeChild(ujElem)
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user