How to learn HTML? Learn Html

How to learn HTMLHow to learn HTML

How to learn HTML

How to learn HTML? Learn Html

Today’s topic is html kaise sikhe (how to learn html). The full form of html is Hypertext markup language. It is used to create web pages. The use of html is also the most in creating the structure of the website. If you have to create your own website then it is very important for you to learn html language.

 

 

 

To learn html language and create web pages with its help, you need to know about html tags and html attributes. Only html tags and html attributes are used to give good structure to any web pages. html is a very simple markup language. In this article html kaise sikhe we will know what is html element’s and their html attributes, and how to create web pages with their help. So let’s know step by step html kaise sikhe.

 

 

 

 

How to learn HTML

 

 

Html kaise sikhe? Required for learning Html language. Knowledge of html tags and html attributes. Actually html is just the name of this markup language, the rest of the work is done by these html tags and html attributes. If you know all these html tags and their attributes then you can also become an html expert. Having knowledge of all these, creating a website for you will be a game of left hand. So let’s know now in this post html kaise sikhe. What are html tags and html attributes and how are they used.

 

 

 

What is HTML

The codes used to create the structure of a web page are called html tags or html element’s. This tag is a simple text between angular brackets (<>).

 

 

 

For example – (<h1>) This is a Heading tag. Which is defined by the starting word H of the heading. Most tags are also defined by their first word.

 

 

The opening and closing tags of these tags are definitely there. It is also taken special care while creating html file that the opening tag must be written first and the closing tag at the end, only then the html file will work correctly.

 

 

For example – If you have to type the heading in a web page. Then you will start with its opening tag <h1>. After writing its heading, we will close this heading tag by writing its closing tag </h1>. Similarly, the rest of the tag is also started from the opening tag and closes on the closing tag. Understand from the example below.

<h1> html how to learn </h1>

Following are the two types of html tags.

 

  1. Paired html tags.
  2. Unpaired html tags.

 

 

  1. Paired html tags – Tags that have both opening and closing tags are called paired html tags. Most html tags are paired only. They are written in this way.
  2. <h1> html kaise sikhe </h1>
  3. The heading tag here is a paired tag. Which has opening tag <h1> and closing tag </h1>.

 

  1. Unpaired html tags – These tags have no opening and closing tags. It is a kind of singular html tags. They are written in this way.

 

  1. <Br>
  2. This is the line break tag. While writing a paragraph, such a tag is used to end one line and write another line.

 

  1. By this article on html kaise sikhe, by now you must have known that html kya hai and html element’s and what are their attributes. So let’s know now about some html tags and their usage, in which they are used.
  2. Some basic html tags and their use:
  3. DOCTYPE tag – This tag explains the type of a document. Like here the type of this documnet is html. This tag is defined with <! DOCTYPE>.

 

  1. Html Tag – This tag is the main tag of html language. The html tag is defined with <html>. To start creating html document from such tag is started. All other tags are written within the opening and closing tags of this html tag.

 

  1. Head Tag – The head part of a web page is created with the help of this tag. Within the head tag, the titel, meta description and keyword tag of that web page are written. Let’s define it with <head>.

 

 

  1. Body Tag – The content area of ​​the web page is started with this tag. Body tag is defined with <Body>. Heading tag, Paragraph tag etc. These are written inside this tag. The body area of ​​a web page is designed with the help of this tag.

 

 

  1. Titel Tag – This tag is used to write the titel of a web page. This tag is defined with <titel>.

 

 

  1. Heading Tag – This tag is used to write Heading in the content of web page. The heading tag is defined with <h1>. The 6 heading tag can be used in a content. Whose tags are <h1>, <h2>, <h3>, <h4>, <h5>, <h6> respectively.

 

 

  1. Paragraph Tag – It is used to write a paragraph. You can use several paragraph tags in one content. This tag is defined with <p>.

 

 

  1. Line Break Tag – When writing a paragraph, a line break tag is used to finish a line and start the next line. This tag is defined by <br>.
  2. Bold Tag – Bold tag is used to bold (darken) an important text. This tag is defined with <B>.

 

 

  1. Underline Tag – This tag is used to underline a latter. It is defined with <u>.

 

  1. Italize Tag – This tag is used to Italize the latter. It is defined by <i>.

 

 

 

Now we know about this article on html kaise sikhe. What are html tags? So the drivers now know. What are html attributes?

 

 

What is html attributes?

 

Html attributes are used to provide additional information about an html elements (tag). In html file these attributes are written in two parts. Its first part is Attributes Name and the second part is its value. In an html file, these attributes are used together with the opening tag of an html elements (tag).

 

 

 

For example-:

 

 

<h1 attrname = “value”> Html kaise sikhe </h1>

This is a heading tag in the given exapmle. Which is indicated by its opening tag h1 and closing tag h2. Now, as we have told you above, html attributes provide additional information about html elements. So if we have to change the color of the heading of this html file, then here we will use the attributes from which the font color can be changed.

 

 

 

There are many such attributes, with the help of which we can extra configure html tags. In html file these attributes are always written with the opening tag of any html elements. As stated in the example above. An html attributes is represented by writing its name and its value.

In the example given above, you can see, an attribute example is given inside the opening tag h1 of the heading tag. Here any html attributes can be named instead of attrname. Then its value is written inside the Quotation marks [“”]. Similarly, the rest of the attributes are also written.

 

 

 

In this post html kaise sikhe now know some basic html attributes and their usage.

 

 

 

■ Some Basic html attributes and their use –

 

 

 

  1. Html href attribute – This attribute is used to join two web pages. This attribute is written in the opening tag of the <a> tag. <a> tag is also called hyperlink tag. The <a> tag is used to link a text or image. This tag allows to go to another web page.

 

 

For example -:

 

 

<a href= “https://nayaseekhon.com”> Nayaseekhon.com </a>

In the upper example, the href attribute is written with the opening tag of a tag. Here href is the name of this attribute, and https://nayaseekhon.com its value.

 

 

  1. Html src attribute – If you want to add an image to an html file, and you want to take that image from your computer or a website. So the src attribute is used to set the source address of this image file.

Example 1 – If the image file is in the same folder on the computer where the html file is saved, then the use of src attribute will be something like this.

 

 

<image src = “html attributes in hindi.jpg”> </image>

In this example, html attributes in hindi.jpg is the file name of an image. Here the src attribute is written in the opening tag of the image tag with its name – src and its value – html attributes in hindi.jpg.

 

 

Example 2 – If the image file is saved in another folder of the computer, then the use of src attribute will be something like this.

 

 

<image src = “Download / image / html attributes kya hai.jpg”> </image>

In this example, the image file is inside the image folder in the computer’s download folder. Similarly, whichever image file is saved in your folder, write the name of that folder by slash, then only your image will show in that html file.

 

Example 3 – If the image file is in the form of a url, then the use of src attribute will be something like this.

 

 

<image src = “https://nayaseekhon.com/html-kaise-sikhe.jpg> </image>

So friends, hope you liked this post. To learn html, it is important that you learn html element’s and their attributes well. In further posts, we will learn about them in more details. If you like this post html kaise sikhe, then do not forget to like, share, comment it at all. Thanks.

 

Jay hind / jay bharat

komal mishra: