After knowing the basic Codes of HTML, we have to know what is HTML elements. Inorder to understand HTML elements, we should know what is an HTML tag firstly.
The HTML tags include "<" and ">" on either side of each tag's command.
Example: <body> tag, <head> tag, <title> tag etc.
An HTML tag has two parts:- start tag and end tag. The difference between HTML start tag and end tag is the addition of "/" to the end tag.
Points to be noted:
<h1> These are the texts within the First Heading. </h1>
<p> These are the texts within the paragraph. </p>
Here, <h1> and <p> are called start tag or on tag.
</h1> and </p> are called end tag or off tag.
The texts within the start tag and end tag are called elements content.
For more Understanding, lets have a look the following table:
All the tags will not appear on the web-browser because they are not considered as text. If you do not use "<" and ">" entities, then the browser will assume your command as text.
Document tag: These are the tags that are necessary for each and every HTML page. An HTML document has two distinct parts- a head and a body.
2. All the contents and layouts are contained within <body> tag and </body> tag.
An HTML element consists of start tag and end tag and the elements content in between them. That is
An HTML Elements consists of three parts:
Inorder to understand completely, let us take an example of Block and Inline elements each
<h3> and <p> Block Element
<h3> HTML </h3>
<p> HTML is the acronym of HyperText Markup Language. It is the most common language of making a web-pages. </p>
From the above example, you know that inline-level elements is used within the block-level elements. Also, they do not give a line-break like as block-element.
HTML attributes provides an additional information or style about an HTML element. It always associated with the start tag such they comes in the form of name="value".
For example, <p style="font-family:Arial">, <span style="color:red">, <i style="font-size:20px"> etc.
<p style="font-family:Arial"> The full form of <i style="font-size:20px"> HTML </i> is <span style="color:red"> HyperText Markup Language </span> .</p>
Our site offers a lot of HTML5 learning from absolutely beginning to advanced level. If you want to make a website with HTML, this site will completely guide you a lot. So learn HTML5 syntax and form of coding easily with this website. If you have any doubt, leave a message on us. We will return you so soon. This site includes innumerable number of references you need to do after studying their corresponding elements.