HTML-Elements in HTML

HTML Elements


HTML elements can be defined by start tag, some content and end tag. HTML is based on tag and all elements of HTML is between tags. 

HTML-Elements in HTML


Example:

<tagname>Content goes here...</tagname>

HTML elements are all from starting and ending tag.

<h1>My heading</h1>

<p>My paragraph</p>

Explanation:

<h1> Tag is used for heading.

<p> Tag is used for paragraph.

we will discuss in more detail below.

HTML Tags

Skipping ending tag:

HTML is work with starting tag <h1> for heading and ending tag </h1>. If you skip ending tag then you will face the unexpected error. Some Elements of HTML will display correctly even without ending tag.
Example:
<html>
    <body>
        <p>My Paragraph
        <p>My Second Paragraph
    </body>
</html>

Nature of HTML:

HTML is not a case-sensitive language like you can use both <P> and <p> for paragraph but we will prefer to use lower case. 

HTML Tag Refernce:

<HTML>             Define the root of document.
<body>              Define the body of document.
<h1> to <h6>    Define the HTML heading.
<p>                   Define the HTML parahraph.
Click on the tags for more refernces.

If you want to practice HTML in run-time and want to create amazing front-end click here.

Tags:

HTML

coding

Hyper Text Markup Language

computer language

HTML Elements


Read more about HTML:


Post a Comment

0 Comments