HTML Content - HTML CSS HTML

HTML CSS examples for HTML:Document

Introduction

The third part of the document is the content, which is inside a body element.

Adding the body Element to an HTML Document

Demo Code

ResultView the demo in separate window

<!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-->

Parents, Children, Descendants, and Siblings

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.


Related Tutorials