Introduction To IT Systems Question Paper
Introduction To IT Systems Question Paper
Question Bank
<a
href="https://www.google.com">Visit Google</a>
3. Q. What is CSS? Explain its purpose in web 1+1 BL2 (Understand)
development.
1
elements.
h1
Ans.
{
color: blue;
text-align: center;
}
5. Q. Explain the difference between an ID and a class in 2 BL 4 (Analyze)
CSS.
2
7. Q. List any two basic HTML tags used for formatting 1+1 BL1 (Remember)
text.
3
12. Q. Write the HTML code to create a hyperlink that 2 BL 3 (Apply)
links to "https://www.example.com" with the text
"Click Here."
<a href="https://www.example.com">Click
Ans.
Here</a>
13. Q. What is the purpose of the <title> tag in HTML? 2 BL2 (Understand)
4
18. Q. Write the CSS code to center-align text in a <div> 2 BL 3 (Apply)
element.
div
Ans.
{
text-align: center;
}
19. Q. What CSS property is used to set the font size of 2 BL1 (Remember)
text? Provide an example.
P
{
font-size: 16px;
}
20. Q. Write the CSS code to set the width of an element to 2 BL 3 (Apply)
80% of the page.
Element
Ans.
{
width: 80%;
}
21. Q. What is the function of the <br> tag in HTML? 2 BL1 (Remember)
22. Q. What is the purpose of the <footer> tag in HTML? 2 BL2 (Understand)
5
The <footer> tag defines the footer section of a
Ans. webpage, usually containing information like
copyright, contact, and links.
23. Q. How do you specify a comment in HTML? 2 BL1 (Remember)
p
Ans.
{
border: 1px solid black;
}
25. Q. What CSS property controls the font style (italic, 2 BL1 (Remember)
normal)?
p
{
font-style: italic;
}
26. Q. Write the CSS code to make all links appear red and 2 BL 3 (Apply)
remove the underline.
a
{
color: red;
text-decoration: none;
}
27. Q. How would you link an external CSS file named 2 BL 3 (Apply)
"style.css" in an HTML document?
6
Ans. <link rel="stylesheet" href="style.css">
28. Q. Describe how inline CSS is applied to an HTML 1+1 BL2 (Understand)
element. Provide an example.
/* This is a comment */
p{
color: blue;
}
30. Q. How do you align text to the right in CSS? 2 BL 3 (Apply)
Example:
p{
text-align: right;
}
31. Q. Between using HTML tags and CSS for text 1+1 BL5 (Evaluate)
formatting, which do you think is more efficient for
creating consistent styles across a website? Explain
your reasoning.
7
Using CSS is more efficient for creating consistent
styles across a website because CSS separates content
Ans. from presentation. With CSS, a single stylesheet can
apply uniform formatting to multiple pages, making it
easier to manage and update.
32. Q. Create an HTML code snippet that includes a 1+1 BL6 (Create)
heading "My Hobby" and a paragraph describing
your favorite hobby?
<h1>My Hobby</h1>
Ans.
<p>My favorite hobby is reading books about science
and technology.</p>
33. Q. What do you mean by hyperlink? 2 BL2(Understand)
<th colspan="2">Name</th>
<th rowspan="2">Phone</th>
Cell padding is the space between the cell edges and the
8
Ans. cell content.
th, td {
padding: 15px;
}
table {
border-spacing: 30px;
}
9
<head> - This section contains metadata about the
HTML document, such as the document's title,
character set, and links to CSS files or JavaScript. It
does not display content on the webpage.
Example:
<html>
<head>
<title>Sample Page</title>
<meta charset="UTF-8">
</head>
<body>
<h1>Welcome to the Sample Page</h1>
<p>This is a simple HTML document structure.</p>
</body>
</html>
10
2. Q. What is CSS? Explain its different types and how 1+2+2 BL2 (Understand)
CSS is applied in an HTML document.
Example:
Example:
<head>
<style>
p{
11
color: green;
}
</style>
</head>
Example in HTML:
<head>
<link rel="stylesheet" href="styles.css">
</head>
p{
color: red;
}
Ans.
HTML (HyperText Markup Language) is the standard
language for creating webpages. It defines the
12
structure of a webpage, allowing developers to add
content like text, images, and links.
4. Q. What is the <table> tag in HTML, and how is it 1+4 BL2 (Understand)
structured?
Ans. The <table> tag is used to create tables in HTML,
organizing data in rows and columns. A table structure
typically includes:
Example:
13
<table>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
</tr>
</table>
5. Q. Explain the use of <ul>, <ol>, and <li> tags in 5 BL2 (Understand)
HTML.
Ans.
The <ul> (unordered list) and <ol> (ordered list) tags
are used to create lists in HTML. The <li> (list item)
tag defines each item within these lists.
Example:
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
6. Q. Describe the use of the <form> tag in HTML. 1+4 BL2 (Understand)
Mention some commonly used form elements.
14
Ans. The <form> tag is used to create forms for collecting
user input. It contains input elements like:
<a
href="https://www.example.com">Link</a>
15
id: Provides a unique identifier for an element.
<div id="uniqueID">Content</div>
8. Q. What is the purpose of the <br> and <hr> tags in 2.5+2.5 BL2 (Understand)
HTML?
The <br> and <hr> tags are both empty tags in HTML,
Ans meaning they don’t have closing tags:
Hello<br>World
<p>Section 1</p>
<hr>
<p>Section 2</p>
9. Q. What is the difference between the <div> and 5 BL4 (Analyze)
<span> tags?
<div class="container">
16
<p>Content inside a div.</p>
</div>
<table>
Ans.
<tr>
<Td>Row 1, Column 1</td>
<Td>Row 1, Column 2</td>
</tr>
<tr>
<Td>Row 2, Column 1</td>
<Td>Row 2, Column 2</td>
</tr>
</table>
11. Q. Evaluate the use of <div> and <section> tags in 1+2+2 BL5 (Evaluate)
HTML for organizing webpage content. Which tag
would you use for grouping related content, and
why? Provide examples.
<div> tag:
Ans.
o A generic container for grouping
content, but it carries no semantic
17
meaning.
o Useful for applying styles or JavaScript
functionality to a group of elements.
<section> tag:
o A semantic element that groups content
related to a specific topic or theme.
o Improves accessibility and SEO, as
screen readers and search engines can
better understand the structure of the
webpage.
<!DOCTYPE html>
Ans.
<html>
<head>
<title>Welcome Page</title>
</head>
<body>
<h1>Welcome to My Page</h1>
<br>
</body>
</html>
18