HTML TAG

<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>


QUESTIONS

1. Explain about the HTML code above.
    <html> - defines the root of an HTML document
    <head> - defines information about the document
    <title> - defines a title for the document
    <body> - defines the document's body
    <h1> - defines HTML headings
    <p> - defines a paragraph
    <br> - defines a single line break

2. Explain about the two types of HTML Tags?
    Paired Tags
    - also called container tag
    - along with a companion tag or closing tag appears at the end
    - eg: <p> </p>

    Singular Tags
    - also known as a stand-alone tag or empty tag
    - does not have companion tag or closing tag
    - eg: <HR>

3. Give some examples of HTML tags on both types of HTML tags.
    Paired Tags
    - <title> </title>
    - <head> </head>
    - <body> </body>
   
    Singular Tags
    - <BR>
    - <HR>
    - <!-->




Comments

Popular posts from this blog