Web Page Design: Terms
Web Page Design: Terms
Think about how many web pages will be needed and their content. All websites need a
home page. This is the parent page where all other pages link to. The home page usually
gives an overview of the function and purpose of the website.
Think about how many web pages will be needed and their content. All websites need a
home page. This is the parent page where all other pages link to. The home page usually
gives an overview of the function and purpose of the website.
NOTE:
1.Avoid using too many different colours, fonts, animations and styles. Avoid very bright
colours as this makes the page difficult to read.
2.Do not use too many photos and graphics in high resolution. File size will be too large so it
will take a long time to open in a browser.
3.Make links visible and group them together. Every web page should have a link back to the
home page.
4.Headings or titles should be across the top of the page.
5.Keep things as simple as possible.
Terms
Website – a collection of web pages.
Web server – a computer that is connected to the internet. Internet content is stored on the
web server.
Upload – when you put content on a web server for other people to look at or use.
Download – when you take content from a web server on to your computer.
Web page – document that appears in the browser window which can include text, images
and animated or interactive content.
Introduction
•HTML tags are keywords surrounded by angle brackets like <html>
•The first tag in a pair is the start tag, the second tag is the end tag
•Start and end tags are also called opening tags and closing tags
•When you save an HTML file, you can use either the .htm or the .html file extension
Steps for creating a webpage
1.Decide on the information to be presented on the Web.
2.Collect the information and arrange it in the form of pages, headings and paragraphs.
3.Decide on the graphics to be inserted.
4.Create a HTML file containing the information as well as the HTML tags using a text editor
such as Notepad.
5.Run your web browser such as Microsoft Internet Explorer and open the HTML file.
6.Check the presentation style and information displayed on the Webpage.
7.Edit the HTML text file if required.
8.Contact the Internet webmaster with whom you have an Internet account to load the
webpage onto the Internet.
</body>
</html>
•The text between <html> and </html> describes the web page
•The text between <body> and </body> is the visible page content
•The text between <h1> and </h1> is displayed as a heading
•The text between <p> and </p> is displayed as a paragraph
<html>
<body>
<p>The hr tag defines a horizontal rule:</p>
<hr />
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
</body>
</html>
NOTE: Some HTML elements have empty content. HTML elements with no content are
called empty elements. Empty elements are closed in the start tag. For example, <hr> (the
<hr> tag creates a horizontal line) is an empty element without a closing tag. Adding a dash
inside the start tag, like <hr/>, is the proper way of closing empty elements.
Text alignment
<html>
<body>
<p>This is a paragraph.</p>
</body>
</html>
Text formatting
<html>
<body>
</body>
</html>
Fonts
<html>
<body>
<p>
<font size="5" face=“arial" color="red">
This paragraph is in Arial, size 5, and in red text color.
</font>
</p>
<p>
<font size="3" face="verdana" color="blue">
This paragraph is in Verdana, size 3, and in blue text color.
</font>
</p>
</body>
</html>
Background colour
<html>
<body style="background-color:yellow;">
<h2 style="background-color:red;">This is a heading</h2>
<p style="background-color:green;">This is a paragraph.</p>
</body>
</html>
Hyperlinks
A hyperlink, or link, is a piece of text or part of a picture that you can click and it takes you
to another web page, to another section of a web page, to an e-mail address, to an external
web page or to a user-created file.
<html>
<body>
<p>If you set the target attribute to "_blank", the link will open in a new browser
window/tab.</p>
</body>
</html>
Images
<html>
<body>
</body>
</html>
Tables
<table border="1">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
Additional tags
<!--> - Defines a comment
Use the <br /> tag if you want a line break (a new line) without starting a new paragraph.
Testing a website
Test the website to see whether the website works properly in different internet browsers.
1.Check that the layout is correct – nothing is chopped off.
2.Check that the text displays correctly.
3.Check that your pictures display correctly. It is best to use common image types such as
JPEG.
4.Test all hyperlinks on every page to ensure that they work and link to the correct pages.
PROBLEM SOLVING
MOST PEOPLE REGARD PROBLEMS AS SOMETHING NEGATIVE, BUT A PROBLEM
CAN BE A MATTER OR SITUATION THAT COULD BE BETTER, THAT COULD BE
IMPROVED ON OR THAT REQUIRES A SOLUTION.
ONCE YOU HAVE BEEN ABLE TO IDENTIFY THE PROBLEM, YOU SHOULD DEFINE
THE PROBLEM CLEARLY TO ENSURE THERE IS NO UNCERTAINTY OR AMBIGUITY.
WRITE THE PROBLEM CLEARLY WITH AS MANY IMPORTANT DETAILS AS POSSIBLE.
NOTE:
THE ASSIGNMENT STATEMENT IN AN ALGORITHM MUST HAVE THIS SYMBOL
PROPERTIES OF AN ALGORITHM
AN ALGORITHM MUST:
1.BE PRECISE
2.BE UNAMBIGUOUS
3.GIVE THE CORRECT SOLUTION IN ALL CASES
4.FLOW LOGICALLY
5.EVENTUALLY END
CATEGORIES OF DATA
JUST AS WE NEED CONTAINERS TO HOLD OR STORE INGREDIENTS FOR A
RECIPE, LIKEWISE, WHEN WE PERFORM COMPUTATIONS, WE NEED SOMETHING
TO STORE OR HOLD THE VALUES THAT WE MANIPULATE. IN THE COMPUTER ,
VALUES ARE STORED IN MEMORY LOCATIONS. IN ORDER TO KEEP TRACK OF
WHERE OUR VALUES ARE STORED, WE NEED TO PLACE AN IDENTIFIER OR A
LABEL ON A PARTICULAR MEMORY LOCATION. THE LABEL OR IDENTIFIER IS
CALLED A VARIABLE.
THEREFORE, A VARIABLE IS A SYMBOLIC NAME ASSIGNED TO A MEMORY
LOCATION THAT STORES A PARTICULAR VALUE.
NOTE: THE WORD VARIABLE IS DERIVED FROM THE VERB “TO VARY”. THIS MEANS
THAT THE VALUE STORED IN A PARTICULAR LOCATION CAN CHANGE FROM TIME
TO TIME, ALTHOUGH THE LABEL REMAINS THE SAME.
DATATYPES
TO WRITE AN ALGORITHM, YOU MUST BE ABLE TO DISTINGUISH BETWEEN THE
DIFFERENT DATATYPES BECAUSE WHEN YOU WRITE A PROGRAM, THE COMPUTER
NEEDS TO KNOW WHAT TYPE OF DATA IT IS WORKING WITH.
INTEGERS – WHOLE NUMBER BOTH POSITIVE AND NEGATIVE. THEY CAN NOT
REPRESENT FRACTIONS OR HAVE ANY DECIMAL POINTS. FOR EXAMPLE, IF THE
PROBLEM YOU ARE SOLVING REQUIRES THAT YOU ENTER THE NUMBER OF EGGS
YOU BOUGHT AT A SHOP, THIS IS MOST LIKELY TO BE AN INTEGER BECAUSE YOU
WOULD NOT BUY A FRACTION OF AN EGG.
REAL NUMBER – NUMBERS THAT INCLUDE DECIMAL POINTS BOTH POSITIVE AND
NEGATIVE. THEY ARE SOMETIMES CALLED FLOATING POINT NUMBERS. FOR
EXAMPLE, MONETARY VALUES ARE ALMOST ALWAYS REPRESENTED AS REAL
NUMBERS.
CHARACTERS – A PROGRAM CAN OUTPUT MESSAGES SUCH AS “A” AND “F”, AND
INPUT VALUES CAN CONSIST F CHARACTERS OR SYMBOLS. CHARACTERS ARE
SINGLE LETTERS OF THE ALPHABET OR SYMBOLS. THE LETTER A IS A
CHARACTER AND THE SYMBOL ! IS A CHARACTER.
ALGORITHM STRUCTURE
HEADER: ALGORITHM’S NAME OR TITLE.
EXAMPLE OF AN ALGORITHM
ALGORITHM WELCOME {HEADER}
STOP {TERMINATOR}
CONTROL STRUCTURES
A CONTROL STRUCTURE CAN BE A SEQUENCE, SELECTION OR A LOOP (THAT IS,
REPETITION). THE BODY OF THE ALGORITHM IS COMPRISED OF VARIOUS
STRUCTURES.
SEQUENTIAL STRUCTURES ARE:
INPUT STATEMENTS, FOR EXAMPLE:
GET NUM1, NUM2
READ PRICE, TAX-RATE
ACCEPT GUESS
INPUT NUM
FLOWCHARTS
A FLOWCHART IS A PICTORIAL REPRESENTATION OF AN ALGORITHM.
FLOWCHARTS USE SPECIAL GEOMETRICAL OBJECTS TO DESIGNATE THE BASIC
STEPS OF A PROGRAM.
●A PARALLELOGRAM IS USED TO REPRESENT THE INPUT OPERATION AS WELL AS
THE OUTPUT OPERATION.
●A RECTANGLE IS USED TO REPRESENT A PROCESSING/ASSIGNMENT STATEMENT.
●A DIAMOND IS USED TO REPRESENT A DECISION (IF-THEN-ELSE) STRUCTURE.
●AN ELLIPTICAL SHAPE IS USED TO REPRESENT THE TERMINAL INDICATORS,
START OR STOP.
●DIRECTIONAL ARROWS ARE USED TO INDICATE THE FLOW OF THE LOGIC IN THE
ALGORITHM.