HTML CSS examples for HTML:Document
The third part of the document is the content, which is inside a body element.
Adding the body Element to an HTML Document
<!DOCTYPE HTML> <html> <head> <!-- metadata goes here --> <title>Example</title> </head> <body> <!-- content and elements go here --> I like <code>HTML</code> and CSS. </body> </html><!-- www . ja v a 2 s . c o m-->
HTML elements have defined relationships with the other elements.
An element that contains another element is the parent of the second element.
The <code> element is a child of the body element.
An element can have multiple children, but only one parent.