Skip to main content

Featured

Tags and attributes? How to use tags and attributes? Heading tag. [examples]

Tags and their Attributes

As you may see in above screenshot that the red blocked item is tag and blue blocked item is known as attribute of that tag respectively.

As you can see tag are written in this format.

ove item is tag with attributes and their values.

In HTML, tags and attributes are the soul of html. tags are basically of two types

  1. Closed Tag [<ol>]
  2. Opened Tag [<p>]
Tags and attributes are of two types as ypu have seen above, let's get how to write these both types of Tags.
Closed Tag
Closed tags needs a closing ending.
example:- html, head, body, b, i, u, sup, sub etc because it is needed to clarify that where those tags contents will be closed . if this is harder to understand then we are taking this example
<b> makes a text bold and if you are making a two words bold in a paragraph and ypu will not close those tags then your browser will not found that where it will close its boldness.
Opened tag
in opened tags, you don't need to close their tags because browser will understand that if a new tag is used this means that it is closed.
every tags ending will automatically create a new line

There are a lot of tag in html (approx 113 till the publish). and you donot have to remember all those tags. you will get their works and their format throughout this website.

<font>

above item is known as tags and item inside symbols are tag name.

<font color="red">

above item is tag with attributes and their values.

There are a lot of tag in html (approx 113 till the publish). and you donot have to remember all those tags. you will get their works and their format throughout this website.

I will share some tags and their attributes with their preview below it in this blog post and others in next blogs.
<h1>Your heading here</h1>

Your heading here


<h1>Your heading here</h1>

Your heading here


<h2>Your heading here</h2>

Your heading here


<h4>Your heading here</h4>

Your heading here


<h5>Your heading here</h5>
Your heading here

<h6>Your heading here</h6>
Your heading here

Above tags that are shown are used for creating heading you can copy and paste as it is with changed heading

Comments

Popular Posts