You are on page 1of 4

Name: John Carl T.

Cuerpo

1 WHOLE

1. Explain the role of HTML in creating web page.

The HTML is a markup programming language which is to create a web page that is display in a
browser

2. Justify the statement: “HTML web pages are always saved as text files only”.

The web pages are saved in a universal 'text' format without any proper formatting

3. Explain the structure of a HTML document with an example.

<!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<h1>Welcome to my first web page!</h1>
<p>This is my first paragraph.</p>
<p>This is my second paragraph.</p>
</body>
</html>

Here is my simple HTML code:

<!DOCTYPE html>: This is the document type declaration. It tells the web browser that this is an
HTML document.

<html>: This is the root element of the HTML document. It contains all the other elements of
the web page.

<head>: This is the head section of the HTML document. It contains meta information about
the web page, such as the title of the page.

<title>: This is the title of the web page. It is displayed in the browser's title bar.

<body>: This is the body section of the HTML document. It contains the visible content of the
web page.
<h1>: This is a heading element. It is used to define a heading for a section of the web page. In
this example, it is used to define the main heading of the web page.

<p>: This is a paragraph element. It is used to define a paragraph of text on the web page. In
this example, it is used to define two paragraphs of text.

4. What is a comment? How do you add comments in a HTML document? Explain with the help
of an example.

In HTML, a comment is a piece of text that is not displayed on the web page, but is instead used
to provide notes, explanations, or instructions for other developers who may read the code.
Comments can be helpful for documenting your code, explaining why you made certain design
decisions, or reminding yourself or others of important information.

5. What are the usage of the tag?

Tags are enclosed in angle brackets, and they can contain attributes that provide additional
information about the element.

6. Explain the usage of the TARGET attribute of the tag.

The target attribute is used to specify where to open the linked document when a user
clicks on a hyperlink. It can be used with the <a> tag, which is used to create hyperlinks in
HTML.

7. What is the significance of the SRC attribute of the tag?

The "src" attribute in HTML is used to specify the source like URL for example of an external
resource, such as an image, script, or video, that the browser should retrieve and display on the
web page.

8. Give the output of the following code:

a) <html>

<frameset cols=20%,*>

<frame name=”f1" src=”a.htm”>

<frameset rows=50%,*>

<frame name=”f2" src=” b.htm”>

<frame name=”f3" src=” c.htm”>


</frameset></frameset></html>

b) <html>

<body>

<table cellspacing=”4" cellpadding=”6" align=”center” border=”3">

<caption align=”top”><center><b>mark list</b></center></caption>

<tr valign=”middle”>

<th>name</th>

<th>marks</th>

<th>percentage</th>

</tr>

<tr valign=”middle”>

<td>snow</td>

<td>48/50</td>

<td valign=”bottom”>96%</td>

</tr>

<tr align=”middle”>

<td>channel</td>

<td>15/50</td>

<td>28%</td>

</tr>

<tr align=”center”>
<td>raggy</td>

<td align=”right” valign=”top” bgcolor=”yellow”>42/50</td>

<td>84%</td>

</tr>

</table>

</body>

</html>

You might also like