An HTML element consists of a start tag (or opening tag), content contained within, and an end tag (or closing tag). Consider the following HTML syntax.
<htmltag>The content goes inside HTML tags</htmltag>
Here are some examples of commonly used HTML elements.
1 2 3 4 |
<h1>Large Title Heading</h1> <p>This is a paragraph element with text content.</p> |
The following table explains the HTML examples shown above.
Start HTML Tag | HTML Element Content | End HTML Tag |
<h1> | The first heading and largest heading | </h1> |
<p> | This HTML paragraph tag conent. | </p> |
Not all HTML requirements require an end tag. Examples of HTML elements such as HTML line breaks and HTML horizontal rules do not need an end tag.