Hello guys,
in the above picture you can see there are many HTML elements are used. and the above example is divided into 3 part
Section 1: Main Section
Section 2: Head section
Section 3: Body Section
for any HTML code, you have to divide code into 3 parts.
For main section <html> tag used.
For head section <head> tag used.
For body section <body> tag used.
4. Html tag come in pairs. means there will be an open tag and closing tag.
In the above picture at line number 1 <html> tag open and it closed at line 10 with </html> tag.
All HTML tag closed by forward-slash(/). same as head tag open at line no 2 and closed at line no 4.
In the body section there Heading tag.
this is the output of the above example.
<h1> defines the most important heading. <h6> defines the least important heading.
Example:
Today I am going to start an HTML. Here I will explain to you in every detail. How to start HTML and see the output of the Html.
- The full form of the Html is HyperText Markup Language.
- By using HTML elements we can create a HTML pages.
- All HTML elements are designed in < > tags.
in the above picture you can see there are many HTML elements are used. and the above example is divided into 3 part
Section 1: Main Section
Section 2: Head section
Section 3: Body Section
for any HTML code, you have to divide code into 3 parts.
For main section <html> tag used.
For head section <head> tag used.
For body section <body> tag used.
4. Html tag come in pairs. means there will be an open tag and closing tag.
In the above picture at line number 1 <html> tag open and it closed at line 10 with </html> tag.
All HTML tag closed by forward-slash(/). same as head tag open at line no 2 and closed at line no 4.
In the body section there Heading tag.
this is the output of the above example.
- Heading Tag: Heading tag is used for display text in bold format as you can see output picture.
<h1> defines the most important heading. <h6> defines the least important heading.
- Paragraph Tag: Paragraph tag is used to display text normal format.
Example:
<html>
<head>
<title>my first example</title>
</head>
<body>
<h1>This is heading</h1>
<h1>This is another heading</h1>
<p>This is paragraph</p>
</body>
</html>
Follow the below steps to run the above code.
Step 1. open the notepad and copy-paste above code
Step 2. Save the file with an extension of .html like supposed you want to save your file with the name of example1 then your file name will be example1.html.
Step 3. The saved file open in any browser and see the output.
Thanks for reading, Wait for next post Html Part 2.
**************** Quotes ****************
“There is no end to education. It is not that you read a book, pass an examination, and finish with education. The whole of life, from the moment you are born to the moment you die, is a process of learning.”
Enjoy the post and try to learn something new from every post.
If you have any doubt or any question ask me on Instagram. You can join my telegram channel to get the latest updates on any post.
Telegram Channel: @akhifamily
Instagram : akhilesh_vis17
No comments:
Post a Comment