SSC I Computer Notes
SSC I Computer Notes
1.3.3 explain diagrammatically (block diagram) the components of the computer system, i.e.
input unit, output unit, storage unit/memory unit, control unit and arithmetic logic unit;
1.3.4 describe the function of components of computer system mentioned in SLO 1.3.3;
Input unit The input unit is responsible for accepting data and instructions from
external sources, converting it into a format that the computer can
understand and process and transmitting the converted data to the
appropriate components within the computer system, such as the
memory unit or the processor.
Output unit The output unit receives data from the memory unit or the processor,
converts the output data into a suitable format for transmitting and
sending the converted output to various output devices.
Storage/memory The storage unit or the primary/main storage of a computer system is
unit designed for storing data during before and after processing.
Control unit Control unit is responsible for controlling the transfer of data and
instructions among other units of a computer. It synchronizes the
operations within the system for smooth running.
Arithmetic logic ALU is the part of the computer that performs all the calculations and
unit (ALU) comparisons. It consists of arithmetic and logic unit. Arithmetic unit
performs all the arithmetic operations such as addition, subtraction,
multiplication and division. Logic unit performs logical operations which
include comparisons of numbers or alphabets.
1.3.5 compare primary and secondary storage devices on the basis of location with respect
to central processing unit (CPU), cost, storage capacity, average access time, direct/ indirect
data processing, means of storing information such as semiconductor, magnetic disks,
magnetic tape and optical discs;
Characteristics Primary /main/ internal Secondary/external storage
memory
Location with Primary storage devices are Secondary storage devices are located
respect to the located closer to the CPU. They farther from the CPU. They are
CPU are directly accessible by the connected to the system through buses
CPU, allowing for faster data or interfaces and have slower data
access and processing. access compared to primary storage.
Cost Expensive Less expensive
Capacity Primary storage devices have Secondary storage devices offer larger
smaller storage capacities storage capacities, allowing for
compared to secondary storage. long-term storage of data, programs,
They typically store the data and files. They can store a vast amount
and instructions that are of data that is not immediately needed
currently being processed by for processing.
the CPU.
Average access Nanoseconds or microseconds Milliseconds or seconds
time
Direct/indirect Primary storage enables direct Secondary storage devices are primarily
data processing data processing. The CPU can used for indirect data processing. Data is
directly access and manipulate first transferred from secondary storage
data stored in primary storage. to primary storage before it can be
processed by the CPU.
Means of storing Semi-conductor Magnetic disks, magnetic tape and
information optical disks
Examples Random access memory (RAM), Hard disk drive (HDD), magnetic tape,
cache memory optical disk(CDs, DVDs)
1.3.6 differentiate between the types of primary memory, i.e. random access memory (RAM)
and read only memory (ROM);
RAM (random access memory) ROM (read-only memory)
Volatile memory: Its contents are lost when Non-volatile memory: its contents are
the computer is powered off or restarted. It retained even when the computer is powered
requires a constant supply of power to retain off.
data.
It is possible to both read data from memory Only reading of data from memory is possible
and write data into memory
Temporary storage Permanently storage
Used in normal operations of a computer Used for start-up process of computer
Writing data is faster hence faster memory Writing data is slower hence slower memory
RAM is costly ROM is cheaper
Instructions are written into the RAM at the Instructions are written into the ROM at
time of execution manufacturing time.
Instructions in RAM change continuously as It is not possible to write new information or
new programs are executed and new data is new instructions into the ROM.
processed.
It can hold a large amount of data as It can only store small amount of data
compared to ROM (around in GBs) and large permanently (around 4MB per chip or more
in size per chip) and small in size
The data in RAM can be modified easily The data in ROM can never be modified
RAM is directly accessed by the processor ROM can not be directly accessed by the
processor since it is transferred into RAM
where its executed by the processor
Uses a lot of power Uses very little power
Used in CPU cache and primary memory Used in firmware and microcontroller
Example: SRAM and DRAM ROM: PROM, EPROM and EEPROM
1.3.8 describe the two types of secondary storage devices, i.e. hard disk drive and universal
serial bus (USB) flash drive;
HARD DISK DRIVE:
● A hard disk is a magnetic storage device used to store computer data. It has storage
capacity of hundreds of gigabyte (GB). It is non-volatile, permanent, long term storage.
● The hard disk drive consists of circular glass platters (disks). Both surfaces of the platters
are coated with a magnetic medium. Information is stored magnetically on both sides of
each platter. The platters are attached to a spindle holding them parallel to each other
with equal gap. All the platters rotate together at high speed. Each platter has two tiny
read/write heads for writing data to reading data from both surfaces of the platter.
● The surface of platters is divided into a number of evenly spaced concentric circular
tracks. Bits are stored on the magnetic surface in spots along tracks. Tracks are divided
into sections called sectors. Two or more adjacent sector form cluster. The set of all
tracks at a given radius on all surfaces are known as cylinders.
● The hard disks are manufactured in very clean environment. They must be kept dust
free. Dust particles can create scratches on the surface of the platters and damages the
data stored in it. The storage capacity of modern hard disk is a terabytes or more.
USB FLASH DRIVE (universal serial bus):
● It is a plug and play portable storage device that uses flash memory (NAND type). Flash
memory means they use a non-volatile memory chip to store digital content or
information. It consists of standard type-A USB connection allowing plugging in the port
of computer. It is also known as USB memory. It is very fast in operation. Its storage
capacity is 128 MB to currently 2TB, till now.
1.3.9 compare the types of output devices, i.e. speaker, Liquid Crystal Display (LCD), Light
Emitting Diode (LED) display, printers and their types, plotter, actuators and their types,
cutters;
Output devices: Output devices are used to display text, graphics, and images on the monitor
or to print information on paper. Information displayed on monitor is known as softcopy and
anything printed on paper is known as hardcopy or printout. Commonly used output devices
are monitor, printer, plotter and speaker.
Speaker:
● Function: Speakers are used to produce audio output, allowing users to hear sound,
music, and other audio elements generated by the computer system.
● Output Type: Sound waves or vibrations that are converted into audible sound.
● Common Types: Built-in speakers, external speakers, surround sound systems,
headphones, etc.
Liquid crystal display (LCD):
● Function: LCD displays are commonly used for visual output, providing a clear and
vibrant display of images, text, and graphics.
● Output Type: Visual output using liquid crystals that can be manipulated to create
images.
● Common Types: LCD monitors, laptop screens, mobile phone screens, etc.
Light emitting diode (LED) display:
● Function: LED displays are similar to LCD displays but use light-emitting diodes to provide
backlighting, resulting in improved brightness and energy efficiency.
● Output Type: Visual output using LED technology for backlighting.
● Common Types: LED monitors, LED TVs, digital signage displays, etc.
Printers and their types:
● Function: Printers produce physical copies of digital documents or images on paper or
other printable materials.
● Output Type: Printed text, images, or graphics on paper or other media.
● Common Types: Inkjet printers, laser printers, thermal printers, dot matrix printers, 3D
printers, etc.
Impact printer:
● Impact printer uses electro-mechanical mechanism which causes the character shape to
strike against the paper and leave an image of the character on the paper. The printing
speed varies from 50 to 500 cps. Their printing is very cheap but print quality is poor.
They produce a lot of noise while printing. These printers are still in use for printing
invoices, bank statements, utility bills, etc. example: dot matrix printer
Non-impact printer(inkjet and laser):
● Non-impact printer prints without striking the paper.
● Inkjet printer stores ink in cartridge and sprays on paper through fine nozzles on the
print-head. Inkjet printers are used in all sectors such as homes and simple businesses.
● Laser printer uses technology similar to photocopying machine. Laser printer is more
expensive, faster and has very high print quality compared to inkjet printer. Laser
printers are perfect for large scale businesses.
Plotter:
● Plotter is an output device used for printing engineering drawings, machine parts,
building designs, maps, charts and panaflexes etc. on large size papers/sheets. It is more
expensive than printer. There are two types of plotters, that is, ink plotter and pen
plotter. Ink plotter is used for printing images whereas pen plotter is used for printing
engineering drawings, machine parts, building designs, etc. plotter is a slow output
device but it’s printing quality is good.
Actuators and their types:
● Function: Actuators are output devices that produce physical movement or control
mechanisms based on computer instructions.
● Output Type: Mechanical movement, vibration, or physical response.
● Common Types: Motors, solenoids, servo motors, pneumatic actuators, hydraulic
actuators, etc.
● Linear actuators: a linear actuator moves a body or mechanism in a linear direction. In
other words, they provide push-pull motion to a rigid body or mechanism.
● Rotary actuator: rotary actuators move a mechanism in a circular motion.
Cutters:
● Function: Cutters are output devices used for cutting or trimming materials according to
computer-controlled instructions.
● Output Type: Precise cutting or trimming of materials.
● Common Types: Vinyl cutters, laser cutters, CNC routers, paper cutters, etc.
1.4.2 describe the basic operations of the data processing cycle using block diagram;
a. input operation
b. processing operation
c. storage operation
d. output operation;
Data processing: Data processing is simply the conversion of raw data to meaningful
information through a process.
Step 1 Input operation: correct output result depends on the input data. It is the step of
feeding/entering data to the computer by using input devices.
Step 2 processing operation: in this step the computer processes the data which is fed in the
first step. The processing is carried out by the device known as the central processing unit
(CPU). The CPU performs arithmetic and logical operations.
Step 3 output operation: in this step the processed data is presented through output devices
(monitor, printer). Users view the output, understand it, and make decisions on the basis of
their understanding.
Step 4 storage operation: the last step of data processing cycle is storage, where data is stored
for further use. This allows for quick access and retrieval of information whenever needed.
1.5.1 differentiate between the types of software, i.e system software and application
software;
System Software Application Software
System Software maintains the system resources Application software is built for specific
and gives the path for application software to run. tasks.
Low-level languages are used to write the system While high-level languages are used to
software. write the application software.
Without system software, the system stops and While Without application software system
can’t run. always runs.
System software runs when the system is turned While application software runs as per the
on and stops when the system is turned off. user’s request.
The Software that is designed to control, A set of computer programs installed in the
integrate and manage the individual hardware user’s system and designed to perform a
components and application software is known as specific task is known as application
system software. software.
A system software operates the system in the Application software runs in the front end
background until the shutdown of the computer. according to the user’s request.
System software: System software is the set of programs that manage and control the basic
functions of a computer system. It includes the operating system, device drivers, utility
programs, and other system-level software. The primary purpose of system software is to
provide a platform for running application software and to manage hardware resources such as
memory, processors, and storage devices.
Types of system software:
1. Device drivers: Device drivers are software programs that allow the operating
system to communicate with hardware devices, such as printers, scanners, and
graphics cards. Device drivers act as translators between the hardware and the
operating system, allowing the two to work together seamlessly.
2. Utility programs: Utility programs are system software tools designed to perform
maintenance and optimization tasks, such as disk defragmentation, system
backups, and virus scans. Examples of popular utility programs include antivirus
software, disk cleanup tools, and system optimization software.
3. Language translators/processors: Language translators/processors are used to
convert high-level programming languages, such as Java, C++, and Python, into
machine code, which is a low-level language that can be executed by the
computer's CPU. There are three main types of language translators/processors:
● Compiler: a compiler is a program that translates the entire source code of
Operating The main system software that manages and controls the computer's
System hardware and other system resources. It provides a platform for running
application software and manages tasks such as memory management, file
management, and security. Examples include Windows, MacOS, and Linux.
Device Drivers Software that allows the operating system to communicate with hardware
devices such as printers, scanners, and sound cards. Device drivers translate
the instructions from the operating system into a language that the
hardware device can understand.
Utility Programs that perform specific system tasks, such as disk cleanup, virus
Programs scanning, and file compression. They are often included with the operating
system or can be downloaded separately. Examples include antivirus
software, backup and recovery software, and system optimization tools.
2.1.3 differentiate among the following three types of user interfaces provided by OS:
a. command line interface (CLI), e.g. DOS and UNIX
b. menu driven interface (MDI), e.g. Novel
c. graphical user interface (GUI), e.g. macintosh, linux and windows;
command line interface:
-commands are given to computer with keyboard
-difficult to use
-disk operating system (DOS) - single user & single task OS
-UNIX - multi-user, developed for use on large computer systems
menu driven interface:
-the user reads the options and makes his choices
-easy to use
-also used in some application programs
-novell's netware and proDOS
graphical user interface:
-uses windows, icons, menus and pointer
-user has to select icons or make choices using a pointing device
-easiest to use
-takes up alot of memory
-needs faster computer
-macintosh OS - developed by apple incorporation for macintosh computers
-linux OS - free, open-source, faster but difficult to use than mac OS and windows OS
-windows OS - most popular
Im sorry mujh mein himmat nhin bachi ch2 saara aesa hi hoga book dekhlo pls
2.2.1 classify OS into single user and multiuser OS;
Single-user operating system:
Operating system that is used by a single user at a time is known as single-user operating
system.
● It allows a single user to log in and use the computer at a time. It is easy to use.
● Resources of the computer, such as CPU, memory and I/O devices are not shared with
other computers.
● It is used on microcomputers.
● User can open many programs at the same time and switch among them as required.
● It requires less memory and costs less.
● Some examples of single user operating systems are DOS, windows 95, windows XP,
windows 7, etc.
Multi-user operating system:
Operating system that allows many users to use a computer at the same time is known as
multi-user operating system.
● It allows many users to log in to a single big computer and run different programs at the
same time.
● It shares the resources of the computer with other users over the network
● It is used on minicomputers and mainframes.
● Users can communicate with each other and share files.
● A person known as administrator is responsible for assigning and managing user names
and passwords.
● It requires a powerful CPU, large memory and large hard drives.
● It supports multiprogramming and time-sharing
● Windows NT, UNIX and linux are popular multi-user operating systems.
2.2.2 differentiate among the following types of OS;
a. batch processing system
b. time sharing system
c. real time system
Batch processing system:
- jobs are grouped in batches and the computer executes them one by one.
- suitable for tasks where large amount of data has to be collected and processed on daily basis
timesharing system:
- multiple users can run different programs on a large-scale computer.
- share the computer's time
- in a timesharing system the CPU is switched rapidly between the programs so that all user
programs are executed simultaneously
- the OS used in minicomputers and mainframes support time sharing.
real time system:
- must process information and produce a response within a specified time.
- developed for special applications
- used to control industrial processes
4.1.1 Define data communication;
Data communication refers to the exchange of data between two or more devices using a
communication channel. It involves the transmission of digital or analog signals over a
communication medium such as cables, wireless networks, or satellite links. Data
communication enables devices to communicate and share information with each other.
4.1.2 Differentiate between data and data transmission;
Data refers to the raw facts, figures, and symbols that are processed by computers to produce
meaningful information. On the other hand, data transmission refers to the process of sending
data from one device to another over a communication channel.
In other words, data transmission is the movement of data from one place to another, while
data refers to the actual content being transmitted. Data can be transmitted in various forms
such as text, images, audio, or video. Data transmission involves encoding data into a format
that can be transmitted over a communication channel, transmitting it through the channel,
and then decoding it at the receiving end to restore it to its original format.
Features Data Data Transmission
Data refers to any Data Transmission refers
information that is to the process of
collected, stored, or transferring data from
Definition processed for later use one location to another
Data Transmission
Data can be in various involves the movement
forms such as text, of data over a
numbers, images, communication channel
Nature videos, and sounds or network
Data can be stored on
physical or electronic Data Transmission
media such as hard occurs through various
drives, solid-state physical media such as
drives, or cloud cables, radio waves, or
Medium storage satellite signals
The purpose of The objective of data
collecting and storing transmission is to send
data is to make it data from one location
available for later use, to another in a reliable
Objective analysis, or processing and efficient manner
Features Data Data Transmission
Data storage capacity Data transmission
is limited by physical capacity is limited by
storage space or the bandwidth of the
technological communication channel
Capacity limitations or network
Data can be protected
through various Data Transmission can
security measures be secured through
such as encryption, various protocols such
authentication, and as SSL, VPN, and
Security access control firewalls
Examples of data
Examples of data transmission include
include customer sending emails,
information, financial streaming videos,
records, sales data, downloading files, and
Examples and inventory data making voice calls
Analog signals are continuous waves that vary in amplitude, frequency, or phase, while digital
signals are discrete signals represented by binary digits (bits) that have only two possible
values, 0 and 1. Analog signals are used to represent analog data such as sound, images, or
video, while digital signals are used to represent digital data such as text, numbers, or
computer code.
4.1.4 identify the components of a communication system, i.e. sender, receiver, message,
protocol and transmission medium;
The components of a communication system include:
● Sender: The device or system that initiates the communication and sends the message.
● Receiver: The device or system that receives the message sent by the sender.
● Message: The information or data that is being communicated.
● Protocol: The set of rules and procedures that govern the communication between the
sender and the receiver.
● Transmission Medium: The physical pathway through which the message is transmitted,
such as cables, fiber optics, or wireless signals.
4.1.5 describe the following characteristics of a good communication system:
Characteristics of a good communication system include:
a. Delivery: The message should be delivered to the intended receiver accurately and timely.
The system must deliver data to the exact destination. No other receiver should receive the
data.
b. Accuracy: The message should be transmitted without any errors or distortion and should
be received accurately. The data communication system must deliver data to the receiver
without being altered or damaged. The receiver should receive the exact same data which was
sent by the sender. The protocol might require to alter the sent data to protect and optimize
the process.
c. Timeliness: The message should be transmitted and received in a timely manner, without
any significant delay. Timeliness refers to the time expectation for accessibility and availability
of information. Timeliness can be measured as the time between when information is
expected and when it is readily available for use.
4.1.6 differentiate between the synchronous and asynchronous data transmission methods;
Feature Synchronous Transmission Asynchronous Transmission
Does not require a common clock
Requires a common clock signal signal. The timing of the
between the sender and receiver transmission is determined by start
Timing to synchronize the transmission. and stop bits.
Data is transmitted in a Data is transmitted in packets with
continuous stream, with no gaps start and stop bits, and a gap
Data Transfer between the bits. between each packet.
Provides more reliable error Provides less reliable error checking
checking and correction due to and correction due to the
Error Checking the continuous flow of data. packetized transmission.
Transmission Offers high-speed transmission Offers relatively slower
Rate rates. transmission rates.
Synchronous transmission is used Asynchronous transmission is used
in applications like audio and in applications like text messaging
video streaming, where timing is and email, where timing is not
Examples critical. critical.
4.2.1 compare guided (wired) and unguided (wireless) media with examples, i.e. twisted pair
cable, coaxial cable, optic fibre cable, radio waves, microwave, infra-red, Bluetooth and
satellite;
Guided (Wired) Media: Guided media refers to the transmission of data through physical cables
or wires. These cables guide the signal through a specific path and have higher bandwidth and
transmission rates than unguided media. The commonly used guided media are:
1. Twisted Pair Cable: It is the most common type of guided media that uses copper wires
twisted together to reduce signal interference. It is used for telephone lines, LAN
connections, and Ethernet connections.
3. Optic Fiber Cable: It is a high-speed cable that transmits data through light waves, which
offers higher bandwidth and faster transmission rates than copper cables. It is used in
high-speed internet connections, long-distance data transmission, and cable TV
connections.
Unguided (Wireless) Media: Unguided media refers to the transmission of data through the air
without the use of physical cables or wires. These signals are not restricted to a specific path,
and hence they are also called wireless media. The commonly used unguided media are:
GUIDED MEDIA
CO-AXIAL CABLE TWISTED PAIR CABLE OPTICAL FIBER
SIGNAL ATTENUATION Attenuation is low as compared to Attenuation is very Attenuation is very
twisted pair high low
DATA RATE Moderately high data rate. Twisted pair cable Very high data rate.
supports low data
rate.
COST More Expensive than twisted Twisted pair cables Expensive than
are comparatively coaxial cable and
inexpensive and easily twisted cable
affordable
ELECTROMAGNETIC EMI is reduced to shielding. EMI can take place. EMI is not present
INTERFERENCE(EMI)
EXTERNAL MAGNETIC FIELD External magnetic field is less affected . Affected due to External magnetic
external magnetic field is not affected.
field.
WEIGHT The coax cables are heavier in weight The cables tend to be Tend to be
quite heavy lightweight in nature
NOISE Relatively good for noise rejection Not suitable for noise Topnotch when it
rejection comes to noise
rejection
NOISE IMMUNITY Co-axial cable has higher noise Twisted pair cable has Optical fiber cable has
(Internal ckt noise) immunity. low noise immunity. highest noise
immunity.
USES Coaxial cables are used in feed lines Used in the telephone Used to support
connecting radio transmitters and network, data long-distance
receivers with their antennas, computer network, and cable connections between
network (Internet) connections, digital shielding countries and cities.
audio (S/PDIF) and distributing cable They are also used in
television signals. They are also used in data centers where
for high-definition media interface large volume of data
connections. needs to be
transmitted.
UNGUIDED MEDIA
MICROWAVE RADIO WAVES INFRARED BLUETOOTH SATELLITE
Microwaves are a type Radio waves are the It uses infrared light Bluetooth uses radio
Communication
of electromagnetic electromagnetic to transmit signals. waves to connect
satellite is space
waves as are radio waves LED is used to portable electronic
station. It receives
waves that are that are transmitted transmit signals and devices for microwave signals from
propagates in straight in all the directions light-receivers communication. earth station. It
line. of free space(air) (photodiodes) to It creates personal
amplifies the signals
receive signals area network (PAN)
and retransmits them
back to earth.
Unidirectional Omnidirectional Unidirectional Omnidirectional Unidirectional
LINE OF SIGHT NO LINE OF SIGHT LINE OF SIGHT NO LINE OF SIGHT LINE OF SIGHT
Cannot penetrate solid Can penetrate Cannot penetrate Can pass through Cannot penetrate solid
objects and walls through solid walls or other objects solid objects objects and walls
objects and walls
Frequency range: 1 GHz Frequency range: 3 Frequency range: 300 Frequency: Use different band for
to 300 GHz. KHz to 1GHz. GHz to 400 THz. 2.402 GHz to 2.48 different purpose
GHz
Medium security Poor security. High security. Good security Medium security
long range long range It is short range It is short range Very long-range
communication communication communication up to communication up wireless
5 meters (not to 10-30 meters (not communication
constant) constant)
Attenuation is variable. Attenuation is high Attenuation is low. Attenuation is very weather attenuation
low
Cost is high Cost is moderate. Cost is very less. Inexpensive Very high cost
microwave oven, AM and FM radio, thermography, laptops, printers, weather forecasting,
satellite television, infrared viewer, pda, head phones, radio/tv signal
communication, radar, marintime radio, infrared lamp, gaming console, broadcasting, mobile
cordless phones, remote control, cellular phones, communication,
wlan, space and paging. auto-focus camera; internet, global
fire detectors positioning system
communication,
night vision systems,
cellular phones,
intrusion detection
television networks, systems, motion
aircraft navigation detectors
4.2.2 differentiate among the following transmission impairments in communication media:
a. attenuation
b. amplification
c. distortion
d. crosstalk;
Transmission
Impairment Definition Cause Effect
Weaker signal at the
Loss of signal strength receiver end, leading to
as it travels through the errors, slow
communication Distance, resistance, transmission rates, and
Attenuation medium. and interference. loss of data.
Stronger signal at the
receiver end, improving
transmission rates and
reducing errors.
Increase in signal Long distance, low However, it can also
strength to overcome signal strength, and amplify noise and
Amplification the attenuation. weak signals. distortion in the signal.
Alteration of the signal
shape or quality due to
interference, noise, or Interference, noise,
non-linearities in the temperature, and Signal errors, incorrect
communication manufacturing decoding, and loss of
Distortion medium. defects. data.
Interference caused by
signals from adjacent Proximity of
communication communication
channels, leading to channels, inadequate
signal bleeding and loss shielding, and high Signal distortion, errors,
Crosstalk of data. signal strength. and data loss.
1. Open a text editor: Start by opening a simple text editor like Notepad (Windows) or
TextEdit (Mac).
2. Write HTML code: In the text editor, type or copy and paste your HTML code to create
the structure and content of your webpage. You can include headings, paragraphs,
images, links, and other HTML tags to customize your page.
3. Save the file: Once you have written your HTML code, go to the "File" menu and choose
"Save As." Give your file a name, and make sure to add the ".html" extension at the end
of the filename. This extension tells the computer that the file is an HTML file.
1. Open a web browser: Launch a web browser like Google Chrome, Mozilla Firefox, or
Safari.
2. Open the HTML file: In the web browser, go to the "File" menu and choose "Open File"
or "Open." Locate the HTML file you created and saved earlier, then select it and click
"Open."
3. View the webpage: The web browser will display the contents of your HTML file as a
webpage. You'll be able to see the text, images, links, and other elements you included
in your HTML code.
b. Create a paragraph: To create a paragraph, you can use the <p> tag. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<p>This is a paragraph.</p>
</body>
</html>
c. Insert line breaks: To insert line breaks, you can use the <br> tag. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
This is the first line.<br>
This is the second line.
</body>
</html>
d. Insert spaces: To insert spaces, you can use the entity. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
This is some text with spaces between words.
</body>
</html>
e. Add headings/sub-headings: To add headings or sub-headings, you can use the <h1> to <h6>
tags, with <h1> being the largest heading and <h6> being the smallest. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<h1>This is a Heading 1</h1>
<h2>This is a Heading 2</h2>
<h3>This is a Heading 3</h3>
<h4>This is a Heading 4</h4>
<h5>This is a Heading 5</h5>
<h6>This is a Heading 6</h6>
</body>
</html>
6.3.2 apply appropriate text formatting tags, i.e. bold, underline, italic, strikethrough,
superscript, subscript, center, font size, font color and font face;
a. Bold: To make text bold, you can use the <b> or <strong> tag. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<p>This is <b>bold</b> text.</p>
</body>
</html>
b. Underline: To underline text, you can use the <u> tag. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<p>This is <u>underlined</u> text.</p>
</body>
</html>
c. Italic: To make text italic, you can use the <i> or <em> tag. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<p>This is <i>italic</i> text.</p>
</body>
</html>
d. Strikethrough: To add a strikethrough to text, you can use the <s> or <del> tag. Here's an
example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<p>This is <s>strikethrough</s> text.</p>
</body>
</html>
e. Superscript: To make text appear as superscript, you can use the <sup> tag. Here's an
example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<p>This is <sup>superscript</sup> text.</p>
</body>
</html>
f. Subscript: To make text appear as subscript, you can use the <sub> tag. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<p>This is <sub>subscript</sub> text.</p>
</body>
</html>
g. Center: To center-align text, you can use the <center> tag. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<center>
<h1>This is centered text</h1>
<p>This is some centered paragraph.</p>
</center>
</body>
</html>
h. Font size: To set the font size, you can use the <font> tag with the size attribute. Here's an
example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<p>This is <font size="5">larger</font> text.</p>
</body>
</html>
i. Font color: To change the font color, you can use the <font> tag with the color attribute.
Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<p>This is <font color="red">red</font> text.</p>
</body>
</html>
j. Font face: To change the font face, you can use the <font> tag with the face attribute. Here's
an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<p>This is <font face="Arial">Arial</font> text.</p>
</body>
</html>
a. Ordered list: To create an ordered list (a numbered list), you can use the <ol> tag, and each
list item is represented by the <li> tag. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
</body>
</html>
b. Unordered list: To create an unordered list (a bulleted list), you can use the <ul> tag, and
each list item is represented by the <li> tag. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<ul>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ul>
</body>
</html>
c. Definition list: To create a definition list, where each term is followed by its definition, you
can use the <dl> tag. Within the <dl> tag, use the <dt> tag for terms (definitions), and the <dd>
tag for their respective definitions (descriptions). Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<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>
</body>
</html>
a. Insert an image: To insert an image, you can use the <img> tag and specify the image source
using the src attribute. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<img src="image.jpg" alt="Description of the image">
</body>
</html>
b. Apply border to an image: To apply a border to an image, you can use the style attribute and
specify CSS properties within the <img> tag. Here's an example to apply a black border of 2
pixels to the image:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<img src="image.jpg" alt="Description of the image" border="2">
</body>
</html>
a. Select width of an image: To specify the width of an image, you can use the width attribute
within the <img> tag. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<img src="image.jpg" alt="Description of the image" width="300">
</body>
</html>
b. Select height of an image: To specify the height of an image, you can use the height attribute
within the <img> tag. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<img src="image.jpg" alt="Description of the image" height="200">
</body>
</html>
c. Select alternate text for an image: To provide alternate text (also known as "alt text") for an
image, you can use the alt attribute within the <img> tag. Here's an example:
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<img src="image.jpg" alt="This is the alternate text">
</body>
</html>
6.7.1 write HTML code to create a table in the webpage with the following table attributes:
a. table border
b. border colour
c. background colour
d. table width
e. table height
f. table row
g. standard cell
h. header cell;
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<table border="1" bordercolor="black" bgcolor="lightgray" width="400" height="300">
<tr>
<th>Header Cell 1</th>
<th>Header Cell 2</th>
</tr>
<tr>
<td>Standard Cell 1</td>
<td>Standard Cell 2</td>
</tr>
<tr>
<td>Standard Cell 3</td>
<td>Standard Cell 4</td>
</tr>
</table>
</body>
</html>