You know that coding is how much powerful. YouTube, Google and all the other websites are created from coding. As well as software programs or apps are also created from coding. So, we will know What is HTML in this post.
HTML is a coding language to make websites. In our previous post, I told you how can you create websites from coding, there are so many languages to make websites, but HTML is the main language that is used in every website. Let’s know more about HTML.
What is HTML?
HTML is a language that is used in any website, it is the skeleton or the structure of the website. It is known as HyperText Markup Language. Without HTML, you can’t define the structure and without any element how can website can be created. In any website or this page which you have opened and reading this post also have images and texts which you are reading.
Example of HTML Coding:
Explanation of above code:
<!DOCTYPE html>defines that this document is an HTML document.
<html>is the root of an HTML page.
<head>element contains all the meta information like the title of your webpage or the favicon, or you also connect CDNs here.
<title>element specifies the title for your webpage.
<body>element contains all the elements that are shown to you in a webpage, like images or texts.
<h1>element defines heading 1(there are 6 headings, h1 is the largest one).
<p>element defines a paragraph.
- The tags like
</html>are the closing tags of
What is an HTML Element?
An HTML Element is created like this:
<tagname> Content </tagname>
This is the format, of an HTML element. The
<tagname> is the name of the tag like
</tagname> closes the tag some tags or elements does not require closing tag like
<br>. Some Examples of HTML Tags:
|Starting Tag||Content||Closing Tag|
|<h1>||This is a heading.||</h1>|
|<p>||This is a paragraph.||</p>|
|<div>||<h1>Sample Heading</h1><p>Sample Paragraph</p>||</div>|
And there are 1000s of tags in HTML. So, In this post You know what is HTML, In the next post, we will know about a Code Editor that will help you to write code very easily. You can also code on notepad, but I will recommend you to use a Code Editor and why you have to use Code Editors, you will know when you write code.
To write codes and make a website or app, you will need a laptop or pc. Without a laptop or pc, You can’t write codes and make websites.
Share this post to your friends or family members if you like. If you have any doubt, feel free to ask us at comment below. Subscribe Divya Tech Gyan for further updates.