Elements
HTML stands for Hyper Text Markup Language
HTML is a markup language that defines the structure of your content.
HTML consists of a series of elements
Elements vs Tags
An HTML element is the collection of start tag and end tag, its attributes plus everything in between the start and end tag.
An HTML tag (either opening or closing) is used to mark the start or end of an element.
Elements
An HTML element has an opening tag and a closing tag.
label
section
a
object
Inline Elements
span
b
button
img
code
Block - Level Elements
div
ul / li
h1 - h5
p
table
hr
Formatting Elements
<b>
<strong>
<i>
<em>
<mark>
<small>
<sub>
Attributes
An element can have attributes
An attribute should always have a space between it and the element name.
The attribute name must be followed by an equal sign.
There must be quote marks around the attribute value.
<p class="something">
<p style="color:red">text</p>
<a href="">display</a>
<img src="">
Comments
<!-- something -->
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext