<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> 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 where align="center" arranged its position at the middle <p> Defines a paragraph <br> Defines a single line break 2. Explain about the two types of HTML Tags? HTML Tags can be of two types which are paired tags or singular tags.
a) The first one is paired tags which is also called container tag. 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.
b) The second one type of tag is the singular tag, which is also known as a stand-alone tag or empty tag. The stand-alone tag does not have companion tag or closing tag.
3. Give some examples of HTML tags on both types of HTML tags.
a) Example of Paired Tags in HTML:
<p>this is example of paired tag</p>
<body>this is the second example</body>
b) Example of Singular Tags in HTML:
<br>
<hr>
<img>
<meta>
|
Wednesday, 20 March 2019
Lab 3
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment