HTML Tutorials


» Introduction to HTML


» Getting Started

» HTML Example

» HTML Tags

» HTML Elements

» Nesting Tags

» Block & Inline Elements

» HTML Attributes

» HTML Comments

» File Paths

» HTML Entities & Symbols


» Important Tags

» HTML Headings

» Text Formatting

» HTML Links

» HTML Lists

» HTML Tables

» HTML Images

» HTML Audios

» HTML Videos

» HTML Iframes

» HTML Styles

» HTML Scripts

» Semantic Elements

» HTML Metadata


» Elements' ID

» Elements' Class

» Elements' Style

» Element's Align

» Element's Height & Width


» HTML Forms

» Input Elements

» HTML Textarea

» HTML Select


» Login Page

.. » HTML » Introduction » HTML Elements
Share Tweet WhatsApp

HTML Elements

An HTML element is all that makes up a defined HTML tag starting from its opening tag to its closing tag in a web page. An HTML element comprises the opening tag, the content (if any), attributes (if any) and finally the closing tag (if any). Most of the time, an HTML tag is usually confuse with an HTML element but the difference is a tag is one of the predefined tags in HTML markup while an element is what is created with a tag or the result of a tag in an HTML document like images, paragraphs, headers, tables, videos and etcetera. HTML Tags
<p> <!-- paragraph tag -->
<div> <!-- division tag -->
<img> <!-- image tag -->
<h1> <!-- header1 tag -->
HTML Elements
<h1>Hello World</h1> <!-- A header1 element -->
<img src='noon.jpg' height='60px' width='60px'/> <!-- An image element -->
<div><p>Welcome to my website where I share some tips on learning.</p></div> <!-- A division element with a paragraph element inside of it-->
In a nutshell, a tag such as the <img> enables us to create an image element. Basically, HTML elements are the building blocks of a webpage. This is because, all that exist in a webpage are one or more elements created with tags to define the structure and contents. SUMMARY
  1. HTML elements are the basic building blocks of a website as websites are made up of different elements like links, buttons, text, images and etcetera.
  2. The life of an HTML element in a webpage starts with the declaration of an HTML tag to create such element. This means elements are created with HTML tags e.g the <img> tag used in creating image elements.
  3. Elements are most of the time confused for same thing as tags. It is therefore imperative to understand the difference.
Take a short quiz on HTML Elements.
Ask a question or tell us if HTML Elements is easy or not.

Join our 1,090 subscribers to receive tutorials' updates!

  We won't spam your mail box. We hate it.

StackBeginner 2021 © Joseph Omamode