Basic HTML Tags List With Examples | Tech Worthy Mind
Start to Learn HTML
Before we start learning HTML we need to know basic knowledge i.e Where we can write HTML code, how to execute HTML code.
We can write HTML code in any text editor or code editor like visual code studio, etc.
And next question is that where we can run HTML code so the answer is that we can run in any browser like chrome, firefox, etc.
Now we are ready to learn HTML so get started HTML.
Tags In HTML |
How to create an HTML file :
Before writing some code in HTML we have to save that file by creating that filename using the filename.html
Note: Index.html is a special file name in HTML which is displayed when the website root address is typed
Overview of a basic HTML page
<html lang="en"> <head> <meta charset="UTF-8"></meta> <meta content="IE=edge" http-equiv="X-UA-Compatible"></meta> <meta content="width=device-width, initial-scale=1.0" name="viewport"></meta> <title>Document</title> </head> <body> </body> </html>
Tags in HTML
what are tags? so the answer is tags works as a container that stores the content of webpages and also the other HTML tags.
- The Head portion of an HTML page contains the metadata, the title of the page, any linking of files, etc.
- The body portion of an HTML page contains all the content, which is visible to the user on the webpage. Body tag defines the layout of the HTML page.
- Head tag and Body tag are the subsets of HTML tag.
- Some tags have no content, these are called empty tags
- Most of the tags have opening and closing tags with content between the opening & closing tags.
The Comment In HTML
Case Sensitivity
HTML is case insensitive language. <H1> and <h1> treat as the same.
we can use uppercase and lowercase letters in tags and in properties of tags both are valid.
The Heading Tag
<H1> This is H1 tag </H1>
<H2>This Is H2 tag</H2>
<H3>This is H3 Tag</H3>
<H4>This is H4 Tag</H4>
<H5>This is H5 tag</H5>
<H6>This is H6 tag</H6>
Note: We should not use heading tags to make text thick and bold. Paragraph tag used to make a paragraph in HTML
The Bold, italic, and underline tags
Big and Small tags
HR tag
The Anchor Tag
<a href="https://honeytechindia.blogspot.com">ClickMe</a>
The Image Tag
<img src="img.jpg>
Pre Tag
Conclusion:
In this article, we cover all the basic tags of HTML like body tag, head tag, HTML tag, anchor tag, heading tag, Bold tag, italic tag, underline tag, pre tag, HR tag, image tag, and another important concept of HTML.
In the next article, we will enhance our knowledge by covering the Table and Form concept in HTML.
Comments
Post a Comment
DON'T COMMENT LINK.