Loading...
Please wait.

Join LetsLearnLights for expert coding and programming guidance. Study popular languages like Java, Python and JavaScript. Improve your skills today

HTML Basic Tags: A Comprehensive Guide to Understanding and Using Them

Information about all HTML tags and all the elements used in it.

Description:

In previous posts I have explained what an HTML is. How to make it and how to make it work. If you haven't seen those tutorials, you should try them first. Later in today's post we will see which tags are used in HTML and how they are used and what they do. Today we will only talk about HTML then we will talk about how it is designed using styles.


The Table of content is given below

   

Headlines.

We are going to talk about the basic tags of HTML. Basic tags are essential for learning HTML before moving on to Advance. let's start...

  • Headings.

There are six headings in HTML. As shown below.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

HTML headings are described with  <h1>  to  <h6>  tags. Heading 1 is considered the most important heading and Heading 6 is considered the last important heading. And their HTML coding is as follows.
<h1> Heading 1 </h1>
<h2> Heading 2 </h2>
<h3> Heading 3 </h3>
<h4> Heading 4 </h4>
<h5> Heading 5 </h5>
<h6> Heading 6 </h6>
  • Paragraphs.
The second important thing in HTML after headings is paragraphs. A paragraph is actually a block of text. It always starts with a new line in which we explain something.
In HTML, a paragraph is defined by  <p> .
Examples:

<p>This is a Paragraph 01</p>
<p>This is a Paragraph 02</p>

 Preview:

This is a Paragraph 01

This is a Paragraph 02

Leaving extra space in the paragraph or leaving extra lines doesn't make a difference to the preview. When a paragraph is displayed on a browser, the browser automatically removes the extra space or lines.
For example:
<p>
This is a demo text.
This is a demo text.                              This is a demo text.

This is a demo text.                  This is a demo text.                  This is a demo text.
    
    
                                                  This is a demo text.
    
    
    
    This is a demo text.
    
    
                                  This is a demo text.
    
    
    
    This is a demo text.
</p>

Preview: 

This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text.

Top

In the paragraph, the brake tag  <br>  is used to stop the line, while the  <hr>  tag is used for the thematic break. The  <hr>  tag describes the thematic spacing in HTML pages, and often appears as a horizontal rule. The  <hr>  element is used to separate (or explain the change) content in the HTML page:

For example:
<p>
This is a demo text.
This is a demo text.
    <hr>
This is a demo text This is a demo text This is<br> a demo text This is a demo<br> text This is a demo text.
This is a demo text.
This is a demo text.
This is a <br>demo text.
This is a demo text.
This is a demo text.<hr>
This is a demo text.
</p>
Preview: 

This is a demo text. This is a demo text.


This is a demo text This is a demo text This is
a demo text This is a demo
text This is a demo text. This is a demo text. This is a demo text. This is a
demo text. This is a demo text. This is a demo text.

This is a demo text.

Top
<br> and <hr> are empty tags, so they don't have ending tags.

The  <p>  tag is not used in the paragraph to display the absolute space or line in the browser.
The  <pre>  tag is used for this.  <pre>  The tag displays all the lines and spaces in the text in exactly the same way as the coding.

For example:

<pre>

This is a demo text.

                                      This is   a demo text.

This is a demo     text.


This is a demo text.

     This is a demo text.

This is a


                 demo text.

This is a demo                   text.

This is a demo text.

</pre>

Preview: 

This is a demo text.
                                      This is   a demo text.
This is a demo     text.

This is a demo text.
     This is a demo text.
This is a

                 demo text.
This is a demo                   text.
This is a demo text.
  • Text Formatting.
There are many elements in HTML to mark something special.
For example:
- Bold text Important text | Italic text | Emphasized text | Marked text | Smaller text | Deleted text | Inserted text | - Subscript text | - Superscript text
Code:
<b> - Bold text </b>

<strong> - Important text</strong>

<i> - Italic text</i>

<em> - Emphasized text</em>

<mark> - Marked text</mark>

<small> - Smaller text</small>

<del> - Deleted text</del>

<ins> - Inserted text</ins>

<sub> - Subscript text</sub>

<sup> - Superscript text</sup>
Top

HTML <b> and <strong> elements:

The HTML  <b>  element defines bold text, without any additional importance.

The HTML  <Strong>  element explains the strong importance of text. The contents are usually shown in bold.

HTML <i> and <em> elements:

The HTML  <i>  element defines a portion of the text in alternate sound or mode. The contents usually appear in italics. Hint:  <i>  The tag is often used to indicate a technical term, a phrase in another language, a thought, the name of a ship, etc.

The HTML  <em>  element defines the stressed text. The contents usually appear in italics. Hint: A screen reader will pronounce words aloud in  <em>  using verbal pressure.

HTML <small> element:

The HTML  <small>  element defines short text.

HTML <mark> element:

The HTML  <mark>  element defines the text that should be marked or highlighted.

HTML <del> element:

The HTML  <del>  element defines text that has been deleted from a document. Browsers will usually attack a line with deleted text.

HTML <ins> element:

The HTML  <ins>  element defines the text that is inserted into the document. Browsers will typically sketch incoming text.

HTML <sub> element:

The HTML  <sub>  element defines the subscript text. The subscript text appears with half a letter below the normal line, and is sometimes rendered in lower font. Subscript text can be used for chemical formulas, such as  CH  The  "4"  is a sub element.

HTML <sup> element:

The HTML  <sup>  element defines superscript text. Superscript text appears in half a letter above the usual line and is sometimes rendered in small fonts. Superscript text can be used for footnotes, such as   Copyright©     The  "©"   is a sup element.

Top

Explain in Details.

In this article, you will learned about all the basic HTML tags. If we show all the tags here, it may bother you and you may not be able to read well. So we decided to teach you about html step by step. In the next post, I will show all the advanced tags of HTML and then we will talk about all the elements of HTML.
Now, what is the basic, advance and all the elements? If we say that all HTML tags, then the distribution will not be and believe that in this case you may have trouble understanding the tags. So we divided them into basic, advanced and elemental. Basic tags mean you may be able to create basic layouts on a site. Then we will talk about advanced tags. Advanced tags make your site more flexible, responsive and friendly. And then finally, we will teach about the elements. Elements are also tags but I describe them as elements which means they have some special structure.
Top

Final Lines.

Finally, basic tags help build the infrastructure of a site.
Think of any article. Check out this current article. It is titled "All HTML Basic Tags and Information About Their Use." Which is the 'heading'. Its HTML code is  <h1>  Information about all HTML Basic tags and all about their usage.  </h1>  then we describe description. which is Paragraph then we use all tags and explain in details. You can see that this beautiful article is made up of basic tags. Only a few times have I used some boxes that are made up of advanced tags.

Top

Posted by Mnzr chauhan
««« Thanks again for reading our blog. If you have any questions, feel free to ask. Your support is enough for us to share this post with your friends. And a good comment for our hard work. »»»
Thank you ツ

Post a Comment

0 Comments