QUESTION IMAGE
Question
what is the relationship of <h1> and <body>? select the one choice that best answers the prompt above. answer 1: <body> is the child of <h1>; answer 2: <body> is the cousin of <h1>; answer 3: <body> is the parent of <h1>; answer 4: <body> and <h1> are siblings.
In HTML document structure, the <body> tag is the parent element that contains other elements like <h1> (heading level 1). So <body> is the parent of <h1>. Answer 1 is wrong as <h1> is a child of <body>, not vice versa. Answer 2 is wrong as they are not cousins (cousin implies a more distant non - parent - child relationship which is not the case here). Answer 4 is wrong as they are not siblings (siblings would be elements with the same parent, but <h1> is a child of <body>).
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
- <body> is the parent of <h1>