HTML Elements An HTML element is defined by a start tag, some content, and end tag. The HTML element is everything from the start tag to the end tag: <tag name> Content goes here....</tag name> Examples: <h1>First heading</h1> <p> First paragraph</p> Starting tag: <h1> Ending tag: </h1> Element content: First heading Note: Some elements have no content (like the <br> element). These elements are called empty elements. Empty elements do not have an end tag!. Nested HTML Elements: HTML elements can be nested (this means that element can obtain other elements). All HTML documents consist of nested HTML elements. The following example consist four HTML elements(<html>, <body>, <h1> an d <p>). <!DOCTYPE html> <html> <body> <h1> First heading </h1> <p> First paragraph </p> </body> </html> Example explained The <html> element is the ...
Hi, Here you will find out content related to computer science e.g. web development, programming languages etc.