HTML Tags:
Tags are the starting and ending parts of
an HTML element.
They begin with < symbol and end with > symbol.
Whatever written inside < and > are called tags.
Example:
(html> ,
(head> ,
(title> ,
(body> ,
(h1> ,
(p> ,
(a> ,
(img> ,
HTML elements : Elements enclose the contents in between the tags.
They consist of some kind of structure or expression.
It generally consists of a start tag, content and an end tag.
Example :
(b>This is the content.(/b>
HTML Attributes : It is used to define the character of an HTML element.
All HTML elements can have attributes
Attributes provide additional information about elements
Attributes are always specified in the start tag
Example :
The (a> tag defines a hyperlink. The href attribute specifies the URL of the page
The (img> tag is used to embed an image in an HTML page. The src attribute specifies
the path to the image
The (img> tag should also contain the width and height attributes,
which specifies the width and height of the image (in pixels)
HTML Tags HTML Elements HTML Attributes HTML tags are used to hold the HTML element. HTML element holds the content. HTML attributes are used to describe the characteristic of an HTML element in detail. HTML tag starts with < and ends with > Whatever written within a HTML tag are HTML elements. HTML attributes are found only in the starting tag. HTML tags are almost like keywords where every single tag has unique meaning. HTML elements specifies the general content. HTML attributes specify various additional properties to the existing HTML element.