COMPROG (1)
COMPROG (1)
Electronic Whiteboard
Information, and Knowledge
Note: The most common keyboard is the
QWERTY keyboard, which generally has
Chapter One Introduction to Computer 104 keys.
Computer
Central Processing Unit (CPU)
A computer is an electronic device that operates
under the control of instructions stored in its The CPU is the brain of a computer, responsible for
memory. It can: all functions and processes. It consists of three main
parts:
Accept data (input)
Process the data according to specified rules 1. Arithmetic Logic Unit (ALU): Executes
Produce information (output) arithmetic and logical operations.
Store the information for future use o Arithmetic calculations: addition,
subtraction, multiplication, division.
Functionalities of a computer o Logical operations: comparing
numbers, letters, or special
Any digital computer carries out five main characters.
functions. 2. Control Unit (CU): Controls and
coordinates computer components.
o Reads the next instruction to be
Computer Components executed.
o Increments the program counter to
Computers consist of HARDWARE and point to the next instruction.
SOFTWARE. o Reads data required from memory.
o Provides necessary data to the ALU
Hardware or register.
o Instructs hardware to perform
Computer hardware refers to the physical requested operations.
parts of a computer system. 3. Registers: Store data that is to be executed
Examples include: next; they are a "very fast storage area."
o Monitor
o Mouse Primary Memory
o Keyboard
o Hard drive disk (HDD) 1. RAM (Random Access Memory):
o System unit (includes graphic cards, o Temporary storage for data that can
sound cards, memory, motherboard, be quickly accessed by the processor.
and chips) o Volatile: data is erased when power
is turned off.
Input Devices o Allows random access to any
memory cell.
An input device is any peripheral that provides data 2. ROM (Read Only Memory):
and control signals to a computer. It translates data o Permanent storage that remains
from a human-readable form to a format the active regardless of power supply.
computer can work with. o Data stored cannot be modified.
Start tag
Steps to create your first web
Element content page
End tag
Step 1: Open Notepad (PC)
<h1> My First Heading </h1>
<p> My first paragraph. </p>
<br> none none Windows 8 or later:
o Open the Start Screen (the window
symbol at the bottom left on your
HTML Page Structure screen).
o Type Notepad.
Below is a visualization of an HTML page Windows 7 or earlier:
structure: o Open Start > Programs >
Accessories > Notepad.
<html>
<head>
<title>Page title</title> Step 1: Open TextEdit (Mac)
</head>
<body> Open Finder > Applications > TextEdit.
<h1>This is a heading</h1>
<p>This is a paragraph.</p> Change some preferences to save files
<p>This is another paragraph.</p> correctly:
</body> o In Preferences > Format, choose
</html> "Plain Text".
o Under "Open and Save", check the
Note: The content inside the <body> section box that says "Display HTML files
(the white area above) will be displayed in a as HTML code instead of formatted
browser. The content inside the <title> text".
element will be shown in the browser's title Open a new document to place the code.
bar or in the page's tab.
Step 2: Write Some HTML
HTML History
Write or copy the following HTML code
Since the early days of the World Wide Web, there into Notepad:
have been many versions of HTML: <!DOCTYPE html>
<html>
<body>
1. 1989: Tim Berners-Lee invented www. <h1>My First Heading</h1>
2. 1991: Tim Berners-Lee invented HTML. <p>My first paragraph.</p>
</body> o <h1> defines the most important
</html>
heading.
o <h6> defines the least important
Step 3: Save the HTML Page heading.