0% found this document useful (0 votes)
44 views

HTML Background Theory Questions

HTML describes the structure of a web page and uses elements like headings, paragraphs, and links to tell browsers how to display content. The document discusses the basic HTML structure and various lists like ordered, unordered, and definition lists that can be created using tags like <ol>, <ul>, and <dl>. It also explains hyperlinks, tables, images, and forms - key elements in building web pages.

Uploaded by

Legend Gaming
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

HTML Background Theory Questions

HTML describes the structure of a web page and uses elements like headings, paragraphs, and links to tell browsers how to display content. The document discusses the basic HTML structure and various lists like ordered, unordered, and definition lists that can be created using tags like <ol>, <ul>, and <dl>. It also explains hyperlinks, tables, images, and forms - key elements in building web pages.

Uploaded by

Legend Gaming
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

HTML background theory questions:

1. What is HTML? Write and explain the basic structure of HTML.


HTML describes the structure of a Web page. HTML elements tell the browser how to
display the content. HTML elements label pieces of content such as "this is a heading",
"this is a paragraph", "this is a link", etc.
Basic structure of HTML is:
<DOCTYPE html>
<html>
<head><title>First page</title></head>
<body> First wedsite??
</body>
</html>

2. What is listing in HTML? Explain different types of listing used in HTML. Listing is the
process in of arranging many items to make a group. There are mainly three types of list:
A. Ordered list:
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>

B. Unordered List:
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>

C. Definition List:
<dl>
<dt>Term 1</dt>
<dd>Definition 1</dd>
<dt>Term 2</dt>
<dd>Definition 2</dd>
<dt>Term 3</dt>
<dd>Definition 3</dd>
</dl>
defined by anchor <a> tag in HTML. Hyperlinks are
often displayed as text or images, and are usually
underlined and/or colored to indicate that they are
clickable. Its types are:
A. External hyperlink: External hyperlinks are created
using the <a> tag and the "href" attribute, which
specifies the URL of the external page or website that
the hyperlink should point to.
External hyperlinks can be used to provide additional
information, reference sources, or direct users to
related websites. When a user clicks on an external
hyperlink, the browser loads the destination page or
website in a new browser window or tab. Example:
<a
href="https://domf5oio6qrcr.cloudfront.net/medialibra
ry/6372/202ebeef-6657-44e
c-8fff-28352e1f5999.jpg>Visit Banana</a>
B. Internal Hyperlink: Internal hyperlinks can be used
to provide navigation within a web page or website, or
to direct users to related content on the same page.
When a user clicks on an internal hyperlink, the
browser scrolls to the destination section or anchor on
the same page. Example:

<a href="#section2">Go to Section 2</a>

...

<h2 id="section2">Section 2</h2>


<p>This is the content of Section 2.</p>

4. Write the use of <table> tag and explain different


Attribute Border=N
attributes of <table> tag with examples.
3. What is hyperlink? Explain different types of The <table> tag is used in HTML to create a table on a
hyperlinks used in HTML. web page. Tables are commonly used to display data
A hyperlink is a link between two files and it is in an organized and structured format. The <table> tag
is typically used in conjunction with other tags, such Defines border color of a table
as <tr> (table row), <th> (table header), and <td>
(table data), to structure and format the table.
Descriptions

Defines size of table border


Bordercolor=”colorcode”
Cellspacing=N Define Distance between cell cell’s <table cellspacing="pixels">
borders in a table
Cellpadding= N Height of table or row
Width=N

Height=N No of cells to be merged column wi

No of cells to be merged row wise in


Colspan=N
Rowspan=N Table or roe background color

Bgcolor=”colorname” Align=”left/right/center”
Defines alignment in a table or in a
Distance between cells content a

Defines table width

5. Write the use of <a> tag and explain different attributes of <a> tag with examples.
The <a> tag is used in HTML to create hyperlinks or anchor links. Hyperlinks are
clickable links that direct the user to a different web page or website, while anchor links
are clickable links that direct the user to a specific section or anchor within the same web
page or website. The <a> tag is typically used in conjunction with the href attribute,
which specifies the destination of the hyperlink.
Example Attributes of tags

<a href=”filename”>Test or Picture</a> href=”File name of URL”

<a href=http://www.google.com>Google<a/> Downlode=filename

<a href=mailto.xyz@hotmail><email</a> Target= “_blank”

<a href=”tel:+987654321”></a> Type=media_type

<a href=”#section1”>go to section</a>


6. Write the use of <img> tag and explain different attributes of <img> tag with
examples.
The <img> tag in HTML is used to display images on a web page. The tag has a few
important attributes that can be used to customize the display of the image.
Attribute description Example

Src= “” The src attribute specifies the URL


<img src="image.jpg" alt="An example
of the image to use as a submit
alt = “” image">
button.
The alt attribute specifies an
<img src="image.jpg" alt="An example
alternate text for an area, if the
image">
image cannot be displayed.

Width= “” The width attribute specifies the


<img src="image.jpg" alt="An example image"
width of the element, in pixels.
width="400" height="300">

Style= “” The style attribute is part of the


<img src="image.jpg" alt="An example image"
Global Attributes, and can be used
style="border: 1px solid black; opacity: 0.8;">
on any HTML element

7. What is CSS? Write different methods of using CSS in HTML.


CSS stands for Cascading style Sheet is a style sheet language used to describe the
presentation of a document written in HTML or XML. CSS provides a way to separate the
presentation of a document from its content, making it easier to maintain and style web
pages.
There are two method of using CSS in HTML:
i. External CSS: In this method, CSS is written in a separate file with a CSS extension
and linked to the HTML document using the <link> tag in the head section of the
HTML document. Here's an example:
<head>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>

ii. Internal CSS: In this method, CSS is written within the <style> tag in the head section of
the HTML document. Here's an example:
<head>
<style>
h1 {
color: red;
}
</style>
</head>

8. What is <form> tag? Explain different tags used within <form> tag in with
examples.
The <form> tag in HTML is used to create an interactive form on a web page. It defines a
container for form elements such as input fields, checkboxes, radio buttons, and
buttons.
<tag> Descriptions of the attributes Example

<input> This tag is used to create various types of input fields


<label for="name">Name:</label>
within the form, such as text fields, password fields,
<input type="text" id="name" name="name"><br>
checkboxes, radio buttons, and buttons

<select> This tag is used to create a dropdown list of options within


<select id="country" name="country">
the form.
<option value="usa">USA</option>
<option value="canada">Canada</option>
<option value="mexico">Mexico</option>
</select>

<label> This tag is used to associate a label with an input field,


<label for="name">Name:</label>
making it easier for users to understand what information
<input type="text" id="name" name="name"><br>
is required in each field.

<button> It allows the users to create a clickable button. <button type= “button” name=
“button”>click</button>

9. What is the use of <frameset> tag and <frame> tag in HTML? Explain with examples.
Frameset is a tag in HTML which allows the user to divide a window into multiple section
and multiple webpages can be embedded on these section as frame. Example:
<!DOCTYPE html>
<html>
<head>
<title>My Frameset Example</title>
</head>
<frameset cols="25%, 75%">
<frame src="menu.html">
<frame src="content.html">
</frameset>
</html>
The <frame> tag is used to define each frame within the <frameset> tag.
10.Write short notes on:
a) Web page b) Web site c) URL d) Search Engine
e) CMS (Content Management System) f) Web Server
g) Protocols (TCP/IP, HTTP, HTTPS, FTP, SMTP, POP)

a) Webpage is the collection of electronic documents provided by the website to the user in
internet. We can post our information in the form of audio, video, pictures, text etc. as a
webpage.
b) Website is a collection of web pages that are inter related to one another and typically
hosted on the same domain. A typical website includes several pages, each with its own
content and purpose, and interconnected through hyperlinks. The homepage serves as
the main entry point to the website and provides an overview of the site's content and
navigation options.
c) URL stands for uniform resource locator. It refers to the address of specific webpage or files on
the internet.
d) Search engine is a web application or a website which helps to search the information from the
worldwide web. The searched information contains, link, picture, video etc. Google, Bing etc. are
some example of search engines.
e) A content management system often called CMS is typically a form of software which helps the
users to create, manage and modify the content on a website without specialized technology
knowledge. A Content Management System (CMS) is a software application that allows users to
create, manage, and publish digital content, typically for websites, without the need for
advanced technical skills.
f) A web server is a software application that handles requests from web browsers and delivers
web content to the requesting client over the internet. The web server software runs on a
physical server, which is typically hosted in a data center and connected to the internet via a
high-speed network connection.
g) Protocols are a set of rules and procedures that define how data is transmitted over a network.
They provide a standardized way for different devices and software applications to communicate
with each other and exchange data. Protocols are essential for enabling communication between
different devices, networks, and systems.

There are several types of protocols used in computer networking, including:

Transmission Control Protocol/Internet Protocol (TCP/IP): This is the primary protocol used for
transmitting data over the internet. TCP ensures reliable delivery of data by breaking it into
packets and verifying that each packet is received correctly. IP is responsible for addressing and
routing packets to their destination.

Hypertext Transfer Protocol (HTTP): This is the protocol used for transmitting web pages and
other web content over the internet. HTTP defines how web browsers and servers communicate
with each other to request and deliver web content.

File Transfer Protocol (FTP): This is the protocol used for transferring files between computers
over a network. FTP allows users to upload and download files to and from a remote server.

Simple Mail Transfer Protocol (SMTP): This is the protocol used for sending email messages over
the internet. SMTP defines how email servers communicate with each other to send and receive
email messages.

Domain Name System (DNS): This is the protocol used for translating domain names (such as
google.com) into IP addresses that can be used by network devices to locate servers on the
internet.
A Project Report on
HTML
Submitted to
Department of Computer
Uniglobe Secondary School (UGSS)/College, Kamaladi,
Kathmandu

Submitted By
Aagat Adhikari

Certificate of Approval

The project work entitled “C-programming” by Mr. Aagat Adhikari under the supervision of
Mr. Navin Gurung is hereby submitted for the partial fulfillment of requirement of Computer
exam in grade XI. This project work has not been submitted in any other institution previously
for the award of grade XI.

Sign……………

Supervisor

Mr. Navin Gurung

Department of Computer

Uniglobe Secondary College


Declaration

I Aagat Adhikari hereby declare that the project work entitled “HTML” the supervision of Mr.
Navin Gurung of Uniglobe secondary school herein is genuine work done originally by me and
has not been published or submitted elsewhere for the requirement of any degree program. Any
literature, data or work done by others and cited in this project work has been given due
acknowledgement and listed in the reference section.

Sign………………………..

Mr. Aagat Adhikari

Grade: XI

E-mail address: [email protected]

Date: 2023/24/03

You might also like