Posts

Showing posts with the label lowercase tags

HTML Elements, nested elements and empty elements

HTML Elements, nested elements and empty elements HTML Elements HTML Elements An HTML element usually consists of a start tag and end tag, with the content inserted in between &colon; <tagname>content goes here...</tagname> The HTML element is everything from the start tag to the end tag &colon; <p>My first paragraph.</p> Start tag Element content End tag <h1> My First Heading </h1> <p> My first paragraph. </p> <br /> HTML elements with no content are called empty elements. Empty elements do not have an end tag, such as the <br/ > element(which indicates a line break). Nested HTML Elements HTML elements can be nested (elements can contain elements). All HTML documents consists of nested HTML elements. This example contains four HTML elements &colon; Example &colon; Answer &colon; <!DOCTYPE html> <html> <body...