document.documentElement の子要素はふつう ( A ) 要素と ( B ) 要素の2つである。
解答
A: <head>
B: <body>
解説
標準的なHTML文書では <html> の直下に <head> と <body> が入る。スタイルやメタ情報は <head>、本文コンテンツは <body> に入る。
使用例(サンプルコード)
[ js ]
console.log(document.documentElement.children[0].tagName); // "HEAD"
console.log(document.documentElement.children[1].tagName); // "BODY"