<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<h1 align=”center”>My First Webpage</h1>
<p>Welcome to my first web page. I am writing this page using a text editor and plain old html.</p>
<p>By learning html, I’ll be able to create web pages like a pro….<br>which I am of course.</p>
</body>
</html>
Explain about the HTML code above.
- The
<html>element is the root element of an HTML page - The
<head>element contains meta information about the document - The
<title>element specifies a title for the document - The
<body>element contains the visible page content - The
<h1>element defines a large heading - The
<p>element defines a paragraph - Use
align="center"for text alignment (center, right, left) - The
<br>tag inserts a single line break.
Refer:
https://www.w3schools.com/html/html_intro.asp
https://www.w3schools.com/html/html_styles.asp
https://www.w3schools.com/tags/tag_br.asp
Explain about the two types of HTML Tags.
In HTML, the tags begin with (<) and end with (>). HTML tags can be of two types. They are:
1. Paired Tags
2. Unpaired Tags
Paired Tags:
A tag is said to be a paired tag if the text is placed between a tag and its companion tag. In paired tags, the first tag is referred to as Opening Tag and the second tag is referred to as Closing Tag.
Unpaired Tags:
An unpaired tag does not have a companion tag or closing tag. Unpaired tags are also known as Singular or Stand-Alone Tags.
Refer:
https://www.plus2net.com/html_tutorial/html_tagtypes.php
Give some examples of HTML tags on both types of HTML tags.
Paired Tags:
<i></i>
<strong></strong>
Unpaired Tags:
<br>
<hr>
Refer: