HTM-000003 | HTML Elements/Tags
- HTML is a markup language and makes use of various tags to format the content. These tags are enclosed within angle braces .
- Most of the tags require their corresponding closing tags.
- To learn HTML, you will need to study the various tags and understand their behavior while formatting a textual document.
- Learning HTML is simple, as users have to learn the usage of different tags in order to format the text or images to make a beautiful webpage.
Anatomy of an HTML element:
An HTML element is an individual component of an HTML document or web page, once this has been parsed into the Document Object Model.
HTML is composed of a tree of HTML nodes, such as text nodes.
Each node can have HTML attributes specified. Nodes can also have content, including other nodes and text.
Let’s explore our paragraph element a bit further:
The main parts of our element are:
-
- The opening tag: This consists of the name of the element (in this case, p), wrapped in opening and closing angle brackets. This states where the element begins or starts to take effect — in this case where the start of the paragraph is.
- The closing tag: This is the same as the opening tag, except that it includes a forward slash before the element name. This states where the element ends — in this case where the end of the paragraph is. Failing to include a closing tag is a common beginner error, and can lead to strange results.
- The content: This is the content of the element, which in this case is just text.
- The element: The opening tag, plus the closing tag, plus the content, equals the element.
Tasks to Complete
- Complete all available resources found in lesson resources.
- Read all content on this page.
- Follow any links and review their contents.
- There are no assignments associated with this section of the lesson that must be submitted
{post_title}
{post_content}
{associated_insight_resource.post_title}
{associated_insight_resource.resource_link}
{associated_insight_resource.insight_type }