ICT Chapter 4 HTML
ICT Chapter 4 HTML
Website:
A website is a collection of related web pages that are connected and available on the internet under one
domain name.
Example:
Webpage:
A single document on a website that displays: Text, Images, Videos, Links etc.
Example:
A company
The government
An educational institute
An individual person
A hospital
Advantages/Benefits of website:
Easy to communicate
Gives quick access to info
Saves paper and time
Helps in marketing and selling
Reaches more people
Good for publicity and ads
Works from anywhere, anytime
24/7 hours services
1
Disadvantages of a Website:
Need to transfer files led to the creation of the World Wide Web.
Invented by Tim Berners-Lee in 1989 at CERN, Switzerland.
Each computer is uniquely identified by its IP address(Public IP address)
Used IP addresses to send documents between computers.
Example
o [Link]
o IPv4 is 32 bit address
Web client:
A web client is a computer connected to the Internet that allows users to browse
websites from servers.
2
Web server:
A web server is a computer connected to the Internet that hosts (stores) websites
a) host websites b) store files in c) access websites from d) create websites 2.a
browser client
3. Websites can contains ---- 3.d
i. Database
iii. Video
Which is correct?
a) i & ii b) i & iii c) ii & iii d) i, ii & iii 3.d
a) 2 b) 8 c) 16 d) 32 4.d
5. Shuvo went to a cybercafé and filled up an electronic application form for college admission. Sitting
there he received an SMS of confirmation of the successful submission of the form. What type of IT
service did Shuvo receive?
a) Web hosting b) E-Commerce c) Electronic mail d) Websites browsing 5.d
7. What is the term for the clickable elements on a web page that lead to other locations online?
a) Icons b) Images c) Hyperlinks d) Buttons 7.c
3
Browser:
o Mozilla Firefox
o Google Chrome
o Safari
o Internet Explorer
o Microsoft Edge
4
3. To visit a home page we must need.....
i) web browser
iii) Internet
Which is correct?
a) i & ii b) i & iii c) ii & iii d) i, ii & iii 3.b
i) Google chrome
ii) MySQL
iii) Mozilla
Which is correct?
a) i & ii b) i & iii c) ii & iii d) i, ii & iii 4.c
Network protocol:
Examples:
5
Example:
[Link]
Which is correct?
a) i & ii b) i & iii c) ii & iii d) i, ii & iii 3.a
4. What is HTTP?
a) Hyper Text Transfer b) Hyper Test Transfer c) Higher Test Transfer d) Hyper Text 4.a
Protocol Protocol Protocol Transection Protocol
5. [Link] what is the last part?
a) protocol b) domain name c) file type d) domain type 5.c
6
6. The unique address of web site….
9. What is called the rule of receiving and sending data in a computer network?
a. URL b. Protocol c. Browser d. IP address 9.b
7
Example:
Client-side technologies:
HTML is used to create the structure of a webpage (like text, images, buttons), while CSS is used
to style it (like colors, fonts, layout).
Using them together makes the webpage both organized and attractive.
8
6. What is sent by client to server?
a) acknowledge b) response c) request d) feedback 6.c
7. To make a website look visually appealing, what is commonly used in conjunction with HTML?
1) Static Websites
2) Dynamic Websites
1) Static Websites
Static Websites are simple sites built using HTML and CSS with fixed pages
that cannot take user input or use a database.
Example:
Company brochure websites, small business info sites, or documentation pages built
without a database.
2) Dynamic Websites:
Dynamic Websites are interactive sites that use server-side languages like PHP
or Python with databases (e.g., MySQL, SQL Server) to generate new pages and
take user input.
Example:
9
Static vs Dynamic Websites
1) Can’t take input from user 1) Can take input from user
2) No database used 2) Database used
3) Use HTML and CSS 3) Use PHP, Python, etc. with database
(MySQL/SQL Server)
4) Fixed number of pages 4) New pages can be generated
5) Hard to update 5) Easy to update
6) One-way communication 6) Two-way communication
7) Simple structure & easy to develop 7) Complex structure & hard to develop
8) Faster loading time 8) Slower loading time
9) Less expensive to build 9) Expensive
10) User login system is not possible 10) User login system is possible
11) Company brochure websites, small business 11) YouTube, Amazon, Twitter, Gmail, and
info sites, or documentation pages built without a online banking websites
database.
2. Websites built with HTML and CSS are most likely ---
a) Dynamic websites b) Static websites c) Mobile-friendly d) CMS websites 2.b
websites
3. Developing a dynamic website requires -----
10
4. Which languages are used for creating static websites?
a) PHP & MySQL b) ASP & Python c) CSS & HTML d) JSP & XML 4.c
5. Joy and Shaheed developed a website using HTML where each page can be visited from any page and
the website can be loaded faster. Later because of some problems they use MySQL and PHP and some
tools to change the website. Their decision may lead to____
7. Static Website —
i) Faster loading time
ii) Difficult to update content
iii) Developed mainly using HTML
a) i & ii b) i & iii c) ii & iii d) i, ii & iii 7.d
Sample CQ
Students at the higher secondary level of a college were divided into two groups and instructed to develop a website. The
first group developed their website using HTML and CSS, while the second group used CSS, MySQL, PHP, etc., to
develop theirs. The judges selected the second website.
Q) Based on the teacher's discussion in the passage, which of the two types of websites do you think is more suitable for
use?
11
By using the website of ‘KHA’ College, one can fill out the admission form, input examination marks, and guardians can
exchange their views and opinions related to education.
Structure a website
A website has one or more web pages. The first page is called the Homepage. Websites have
different pages based on their purpose. For example, audio/video sites have pages to play videos.
Most sites have a profile page for users. Blog sites have a page for each blog post. Some
common pages are Contact Us, About Us, and FAQ.
A) Hierarchical/Tree structure
B) Linear/Sequential structure
C) Network/Relational structure
D) Hybrid structure
12
A) Hierarchical/Tree structure:
A tree-like structure where the homepage acts as the root, leading to main categories and
subcategories.
Example:
B) Linear/Sequential structure
Pages are arranged in a step-by-step sequence, guiding users through a predefined order.
Example:
C) Network/Relational structure
Pages are interconnected in a web-like manner, allowing users to navigate freely between related
content.
13
Example:
D) Hybrid structure:
A combination of multiple structures, typically mixing hierarchical and network models for
better navigation.
Example: Common in complex websites like news portals and educational platforms.
Ans.
Sample MCQ
1. Which model of the website consists of 2 or more models?
a) sequential b) network c) hybrid d) relational 1.c
14
4. The figure indicates ______structure of website
Sample CQ
Q) What types of website structures are shown in Figure 1 and Figure 2? Which one is better?
15
Q) What type of website structure is shown in this figure?
A university website has a homepage that contains links to different faculties. Each faculty page further contains links to
departments, and each department page provides links to faculty members and course details.
HTML Tags
16
Content is written between opening and closing tags.
Example:
<b>Hello</b>
Formatting tags:
HTML formatting tags are used to change the appearance of text on a webpage. Here's a quick
list of common formatting tags:
tag Purposes
<b> Used to display bold text
<i> Used to display italic text
<u> Used to display underlined text
17
<b> tag:
Example:
Result:
<i> tag:
Example:
<head> </head>
<body>
<i> Uttara </i>
</body>
</html>
18
Result:
Note: <em> tag can also serve the same purposes emphasize (italic)
<u> tag:
Example:
<head> </head>
<body>
<u> Dhaka </u>
</body>
</html>
Result
<title> tag:
Displays the text in the browser's title bar. The title tag should be placed inside the <head>
section
Result:
20
Remarks/comments:
In HTML, remarks/comments are notes in the code that are not displayed on the web page.
They are written between <!-- and --> and are used to explain code, leave reminders, or disable
parts of the code temporarily.
Example:
Ans.
Sample MCQ
1. The extension of an HTML file is ______
a) .http b) .html c) .txt d) .c 1.b
i) Notepad++
iii) chrome
Which of the following is correct? a) i & ii b) i & iii c) ii & iii d) i, ii & iii
a) i & ii b) i & iii c) ii & iii d) i, ii & iii 3.a
4. Feature of html---
i) case sensitive
21
7. Which tag is used to make text underlined?
a) <a> b) <b> c) <i> d) <u> 7.d
<sup> tag:
</html>
Result:
22
<sub> tag:
Result:
A<sub>2</sub>B<sup>3</sup>
a) A2B3 b) A2B3 c) A2B3 d) A2B3 1.d
23
4. What is the meaning of <sub> in HTML?
<h1> tag:
<body>
<h1>Today’s Headline</h1>
</body>
</html>
Result:
<h2> tag:
………………..
………………..
<body>
</body>
</html>
Ans.
Sample MCQ
1. What is the smallest heading tag in HTML?
25
3. <h2> ABC </h2> the output text “ABC” will be ---
i) larger
ii) bold
iii) underlined
a) i & ii b) i & iii c) ii & iii d) i, ii & iii 3.a
5.
a) Text will be in larger b) Text will shown as c) Text will be scrolled d) hyper link will be 5.a
size title created
<del> tag:
<body>
</body>
26
</html>
Note: <strike> tag serves similar purpose as <del>
2.
<br> tag:
Used to insert a line break in text. It’s an empty tag (no closing tag needed).
<body>
</body>
</html>
27
Result:
Sample CQ
Write HTML code to produce the output shown in the above stem.
<p> tag:
Defines a paragraph in HTML. Automatically adds some space (margin) before and after the
paragraph.
<body>
<p>DHAKA</p><p> BANGLADESH</p>
</body>
</html>
Result:
28
<p> tag with attribute:
<body>
</body>
</html>
The value "left" and "right" is also possible with align attribute.
Attribute:
An attribute is a modifier of an HTML element that provides extra information about that
element. Attributes are always included in the opening tag and usually come in name-value pairs.
29
<p align="center"> Dhaka </p>
Value:
In HTML, the value is the specific information assigned to an attribute of an HTML element.
It tells the browser how to apply that attribute to the element.
<div> tag:
The <div> tag is used to divide a document into separate sections.
2. What is the correct syntax for aligning a <p> tag to the center using the align attribute?
a) <p align =centre> b) <p align = "center"> c) <p align : center> b) <p center= "align"> 2.b
30
i) left ii) center iii) top
Syntax:
Examples:
nt
o <b> </b>
o <i> </i>
o <p> </p>
o <u> </u>
An empty tag is an HTML tag that does not have a closing tag and cannot enclose content.
Example:
31
o <br>
o <hr>
o <img>
<hr> Tag:
Used to draw a horizontal line in an HTML page, typically for separating sections of content.
3. Example of empty tag: i) <img> ii) <hr> iii) <br> Which is correct ?
32
Sample CQ
<html>
<head><title> my web</title></head>
<body>
<br><u>Bangladesh </u><br>
H<sub>2 </sub>O
</body>
</html>
33
Advantages / Benefits of HTML for Creating Websites:
Disadvantages of HTML:
<font> tag:
An HTML tag used to change the font face, size, and color of text.
Example1:
<body>
</body>
</html>
34
Example2:
<body>
</body>
</html>
Example3:
<body>
</body>
</html>
35
i) type
ii) color
iii) size
a) i & ii b) i & iii c) ii & iii d) i, ii & iii 3.c
<span> tag:
<body>
This is a black text. But <span style="color:RED"> this is other text </span>
</body>
</html>
Red color
Example:
36
How to set background color:
<body style="background-color:red">
</body>
</html>
<body bgcolor="Yellow">
<body>
</body>
</html>
37
3. The color of text can be changed by--- tag
i) Font
ii) Span
iii) Div
Which is correct
a) i & ii b) i & iii c) ii & iii d) i, ii & iii 3.d
List tag:
ul=unordered list
ol=ordered list
the <ul> tag in HTML is used to define an unordered list, where list items are displayed with
bullets (•) by default.
Example1:
38
Result:
Example2:
Result:
39
Example3:
<!DOC Type HTML>
<html>
<head> </head>
<ul type="square">
<li> Messi</li>
<li> Ronaldo</li>
<li> Neymar</li>
</ul>
<body>
</body>
</html>
Result:
Example4:
<ol> tag:
The <ol> tag is used to create an ordered list, where items are displayed in a specific sequence
using numbers or letters.
Example:
Result :
41
<!DOC Type HTML>
<html>
<head> </head>
<ol type="1">
<li> Messi</li>
<li> Ronaldo</li>
<li> Neymar</li>
</ul>
<body>
</body>
Result:
Example:
42
Result :
Example:
Result :
43
Example:
Result:
Example:
44
Result:
Example:
<li> Orange</li>
</ol>
</ul>
<body>
</body>
Result:
45
Sample MCQ Ans.
i) ol
ii) ul
iii) li
a) i & ii b) i & iii c) ii & iii d) i, ii & iii 3.d
46
Sample CQ
Home page of ABC college has a list of different faculties in sequential form: Sc, [Link] and humanities .
Write down the html tag for home page of ABC college.
<img> tag:
<!Doctype html>
<html>
<head> </head>
<body>
<img src="[Link]">
</body>
</html>
47
How to change size of an image:
Alt attribute:
The alt attribute provides alternative text if the image cannot be displayed.
Example:
Display an image named [Link] stored in the picture folder on the D: drive
<!Doctype html>
<html>
<head> </head>
<body>
<img src="D:/picture/[Link]"></body>
</html>
3. Mr. Rupam tried to show an image on his home page. But the image was NOT displaying properly. the
reasons can be ------
i) The browser did NOT support
ii) The image name was NOT written properly
iii) did not mention the location of the image
Which is correct?
a) i & ii b) i & iii c) ii & iii d) i, ii & iii 3.d
48
4. What is full form of JPG/JPEG?
a) Joint Photographic b) Joint Picture c) Joy Photographic d) Joint Photoshop 4.a
Experts Group Experts Group Export Group Extra Group
5. HTML support --------file.
i) .jpg
ii) .gif
iii) .psd
Which is correct?
a) i & ii b) i & iii c) ii & iii d) i, ii & iii 5.a
8. 4th page of the website contains a picture name [Link] and its size is 300 x 300 pixels. But the problem is; the
HTML code for page No. 4 is :
a) < img src "[Link]" height b) < img src = "[Link]", c) < image src = "[Link]" d) < img src = "[Link]" 8.d
"300px" width "400px"> length = "300" width = height = "300" width = height = "300px" width =
"300"> "300"> "300px">
9. The most important attribute with an img tag is ———
a) width b) alt c) src d) height 9.c
10 If webpage unable to show the picture which attribute will send a message?
a) alt b) post c) cancel d) hlt 10.a
Tree is name of an image. It is saved in F drive under a folder named XYZ. The tag should be---
a) F:\ XYZ\[Link] b) F:\ [Link]\XYZ c) D:\ XYZ\[Link] d) XYZ\[Link]\F:\ 11.a
Sample CQ
Joly developed a website. On her homepage, there is a picture of a tree.
water [Link]
49
Hyper link(anchor tag)
The <a> tag in HTML is used to create hyperlinks that connect one page to another, or link to files and
external websites.
Example:
Result:
Click here
Internal hyperlink:
If both pages are within the same website, it is called an internal hyperlink.
Example:
50
If you want visit [Link] page from home page then the html code will be:
o Save time
o Easy to navigate
o Connects related information
o Provides quick access to external resources
o improve user experience
o Makes websites interactive
o Improves search engine ranking (SEO)
o Allows easy sharing of information
5. Keya and Diya often go to each other's websites to collect the necessary information. It seems quite
time-consuming for them. When they tell their IT teacher about the problem, he suggests them to use a
special tag. Which tag is suggested by the IT teacher in the stem?
a) href b) del c) a d) URL 5.c
51
ii) easy navigation
iii) visit a page or new website
Which of the following is correct?
b) i & iii b) i & iii b) i & iii b) i & iii 6.d
Sample CQ
Shila visited a website, clicked on 'Our Board', and was taken to [Link]
52
<table> tag:
Exercise 1:
<table border="1">
</table>
Exercise 2:
<table border="1">
</table>
53
Exercise 3:
<table border="3">
<tr> <td>Hum</td></tr>
</table>
Exercise:
<tr><th>Roll</th><th>Name</th></tr>
54
<tr><td> 101</td><td> ABC</td></tr>
<tr><td>206</td><td>XY</td></tr>
</table>
Exercise:
<tr><th>Roll</th><th>Name</th></tr>
<tr><td>206</td><td>XY</td></tr>
</table>
55
7. Which means table heading ?
a) td b) tr c) th d) h1 7.c
Sample CQ
Write HTML code so that clicking the "Board" link opens [Link] to view ICT marks.
56
Write html code to display the above table
<table border="1">
<tr>
<th>Roll</th> <th>Name</th> <th>Result</th>
</tr>
<tr>
<td>501</td><td>Sumaiya</td>
<td> <a href="Exam [Link]"> MY test Result</a></td>
</tr>
</table>
What will be the output of the above html code?
57
c) Write html code to display the above table
d) Write html code to display the table by converting all rows into columns and vice versa
More Sample CQ
A school named “Alor Shopan” was planning to develop a website. On its homepage, a picture named
“[Link]” will appear, and a list of sections such as IT, Physical Science, and Biological Science will be
arranged. There will also be a ‘Notice Board’ linked on the homepage.
The school authority invited three IT specialists. The IT specialists suggested two solutions. The first one was
cheaper but had some difficulties with regular updates. The second solution was more costly but easy to
update on a regular basis.
58
asked his students to write an HTML code that would allow the image to be clickable and redirect to
[Link]. After that, he wrote:
C) What HTML code was written by the students? Explain its attributes.
A Website has been designed for "Chandana Model College" using HTML only. There is a picture named [Link] of size
200x300 Pix in the home page of the site. There have a link of notice page named [Link] under the picture. The
text "Welcome to Chandana Model College" is displayed on the top of the picture in blue color. There is no
arrangement to give visitors opinion in that website.
C) Write down the HTMI, Code to develop the Home page as mentioned in stern.
D) Explain necessary steps taken so that visitors can give their opinion in website.
XYZ College, Dhaka.
Available Honor’s subject:
[Link]
2. English
3. Mathematics
[Link]
c) Write the HTML code for showing the stem in your college’s home page.
d) Write HTML code for taking the list of Honor’s subject and make a table. There will be a table with headline serial
No and subject name.
59
Voting system for helpful answers.
A points or reputation system to reward good questions and answers.
Adobe Illustrator
GIMP.
Full-Stack Developer: A developer who knows how to do both front-end and back-end development.
Design Can Change: Requirements often change, so you should write code that is easy to
modify later.
Testing is a Must: You must constantly test the website and fix bugs (debugging) to make sure
everything works perfectly.
1. Register a Domain
2. Host the Website.
3. Connect Domain and Server
60
1) Register a Domain (Naming Your Website)
DNS(Domain Name System): It is a system that translates domain names into their
corresponding IP addresses so browsers can find websites.
To make your site available to everyone, your files must live on a special computer called a web
server.
A web server must: Have a Public IP Address (its unique location on the internet).
Be on 24/7.
Since personal computers are not practical for this, we use a Hosting Service.
Hosting: You pay a company to rent space on their server and upload your files there.
3) Connect Domain and Server – Link the domain name to your server’s IP address.
61
a) To restrict access to b) To identify the c) To manage web d) d) To improve 5.b
the website location of the server performance website security
6. Debugging means—
A) create B) draw C) correction D) release 6.c
Sample CQ
Shuvo received some training on web page development. He created a webpage with his picture and information, and he
could run it from his own computer. He wanted to improve his site and name it “[Link].” Knowing this, his friend
Rahul said, “I want to visit your webpage tonight.” In reply, Shuvo said, “Not now. I still need to do some publishing
work.”
Q) According to stem what steps should be taken to make people interested about the institute
A company named Delta wants to develop a website where they will only introduce themselves. They appointed a web
developer for that work. The web developer told the authority that to publish the website, they need a domain name and
hosting.
Q) What is the difference between domain and hosting, as expressed in the stem?
A website can be created and run on a personal computer, but for others to access it worldwide, it must be placed online.
To make this possible, the site’s files need to be stored on a special server connected to the Internet. This allows people
from anywhere to open the site using its web address. In this way, a simple local webpage becomes available to
everyone.
Q) What activities reflected in the stem?
62