javascript html dom

html DOM要素
関連タイピング
-
プログラミングを学びたい方は是非!2013/07/03公開
プレイ回数35万1071打 -
基礎的なHTML
プレイ回数3090英語54打 -
メソッド名やクラス名をタイピングしよう
プレイ回数142長文英字60秒 -
プログラミングで良く使う英単語、構文のタイピングです!
プレイ回数2643短文英字429打 -
ブラウザで動くテトリスのコーディングです。
プレイ回数2788長文532打 -
JavaScript暗記用です
プレイ回数3119英語長文841打 -
初心者向けです。
プレイ回数6867英語546打 -
JavaScript暗記用です
プレイ回数2484英語長文601打
問題文
ふりがな非表示
ふりがな表示
(const p=document.createElement("p");)
const p=document.createElement("p");
(const text=document.createTextNode("new text");)
const text=document.createTextNode("new text");
(p.appendChild(text);)
p.appendChild(text);
(const parent=document.getElementById("div1");)
const parent=document.getElementById("div1");
(parent.appendChild(p);)
parent.appendChild(p);
(const child=document.getElementById("p1");)
const child=document.getElementById("p1");
(parent.insertBefore(p,child);)
parent.insertBefore(p,child);
(child.remove();)
child.remove();
(parent.replaceChild(p,child);)
parent.replaceChild(p,child);