BIW 10103 | INTRO TO WEB TECHNOLOGY Semester II 2020/2021

 Lab #3: INTRODUCTION TO HTML TAG

CINDY BEH XIN YI AI200259 


 

QUESTIONS


1.     Explain about the HTML code above.

The HTML code above have the elements which is <html>, <head>, <title>, <body>, <h1 align="center">, <p> and <br>. I am going to explain these elements one by one.

 

Elements

Explanation

<html>

-       This is the root element which also the top-level element of an HTML page.

<head>

-       This contains meta information means data about data about the HTML page.

-       This element is placed between <html> tag and the <body> tag

<title>

-       This element specifies a title for the HTML page which is shown in the browser title bar or in the page’s tab.

-       This element is required in every HTML document.

-       It also category under <head> element.

-       This tag is used when we need to write a title in a website.

-       From the code above, the title is “My first Webpage”

<body>

-       This element defines the document’s body.

-       It is also a container for all the visible content such as headings, paragraphs, images, hyperlinks, tables, lists, etc.

-       This tag is used for insert text in body.

-       The content of the code above is “This is my first homepage”

<h1 align = “ center”>

-       This tag is used when we need to put text in center.

<p>

-       This tag is used to input paragraph and show in paragraph.

<br>

-       This tag means line break for the paragraph.

Eg. </head>

</h1>

</p>

</body>

</html>

-       The element with a slash “/” means it is end of the tag.

 

2.     Explain about the two types of HTML Tags?

 

There are two types of HTML tags which are the paired tags and unpaired tags.  Paired tags have open tags and close tag while unpaired tags are singular tag. For paired tags, they are a set of two tags with the same name but it has opening tag and closing tag. The closing tag has a / slash, means that the tag is closed. It is necessary to close paired tag or else it can result in the malfunctioning of the website. While for unpaired tag, it is single tag with no closing tag. The tags are also called Singular Tags, non-container tags as they do not contain any content.   But for closing unpaired tags we can add a slash / just before the greater than > sign which is like this <br/>.


 

3.     Give some examples of HTML tags on both types of HTML tags.

Paired Tags

Open Tags

Close Tags

<html>

</html>

<table>

</table>

<title>

</title>

<form>

</form>

<span>

</span>

<p>

</p>

<head>

</head>

 

Unpaired tags

Open tag

<br>

<input>

 

 

 

 


Comments

Popular posts from this blog

Lab 06 HTML Form

Lab 09 HTML Styles -CSS

Lab 07 HTML Radio & Check BIW 10103 INTRO TO WEB TECHNOLOGY