GR 10 HTML Study Guide
GR 10 HTML Study Guide
GR 10 HTML Study Guide
TECHNOLOGY
Contents
Gr 10 - HTML
Page 3 of 19
Introduction to HTML
For the educator:
Basic HTML content has been moved from Grade 11 CAT to Gr 10 CAT to
alleviate the pressure in Grade 11
The following table is an extract from the Grade 10 ATP giving guidance on
the number of hours you are expected to spend on teaching HTML in Grade
10 as well as when.
It is advised you leave HTML for week 8 in Term 3, allowing you to teach all
the other applications that will be examined and used in the Grade 10 PAT
first. HTML will only be assessed in Term 4. You can add an assessment
activity to the final End Year Examination of approximately 10 marks. Note
that HTML should also be assessed in theory tests. Informal assessments
should also take place during teaching and learning activities.
In Grade 10 HTML is only introduced and the content is very basic as there is
only one week allocated for HTML. As an educator you may give learners
additional tasks to re-inforce concepts.
Week 8
(5 days)
Solution Development:
2 Tasks: 2 Practical
Gr 10 - HTML
Page 4 of 19
The World Wide Web (also known as the WWW) on the other hand, is what
most people think about when they talk about the Internet. The WWW is
actually all the web pages, pictures, videos and other online content that
can be accessed through the Internet by making use of a web browser.
In this unit you will learn more about the basic structure of a Web page and
you will be introduced to terminology we use when we describe the Internet
and WWW.
You will also learn about HTML and how you can use it to create websites.
You will also discuss what makes a website a good website.
What is a Website?
A website is usually a collection of web pages that are linked (making use of
hyperlinks) to each other and that contains specific information and that have a
similar design and look.
In Grade 10 you will only work on one Web page. In Grade 11 you will learn how to
link Web pages to create a Website.
What is a URL?
A URL is the website’s address. It is basically the unique place on the WWW where
the website is kept, sort of like your house or school’s street address. The website
pages can be viewed by using a website address called a uniform resource locator
(URL). e.g. https://en.wikipedia.org/wiki/Main_Page
Gr 10 - HTML
Page 5 of 19
What is HTML?
Before we explain what HTML is,
you need to do the following:
Other examples of free text editors that could be used are, for example, Brackets
and Atom. There are many other HTML editors such as Adobe DreamWeaver,
KompoZer and Microsoft Expression Web available. These allow you to design web
pages without using HTML. In CAT you are expected to write the HTML yourself.
Gr 10 - HTML
Page 6 of 19
To save web pages in Notepad++, you must change the format from *.txt to *.html.
Do this as follow: Click on File then Save As
15 .1 Introduction to HTML
Gr 10 - HTML
Page 7 of 19
● Most HTML tags come in pairs, the first one is known as the opening tag
and the second one is the closing tag.
● Tags are enclosed by angle brackets and the opening and closing tags look
the same. The only difference is that the closing tag has an added forward
slash (/) after the first angled bracket e.g.
o <p1>Closing and opening tags are cool</p1>
o The green tag above is the opening tag and the red tag is the closing
tag.
● You will also learn about a few tags that do not have a specific closing tag. In
grade 10 we will only look at two of these types of tags. (drawing a line across
the page and entering on to a new line)
Pairs of tags with content between them such as the example above, are referred to
as elements.
The basic document tags are used to set up the structure of a web page. They will all
appear on every web page which you create using HTML.
In order to build a website, you will need to know what the different HTML tags do so
that you can give web browsers the correct instructions on how and what to display
and in which order to display it for your website.
Gr 10 - HTML
Page 8 of 19
<head> </head> This element contains key words about the document.
Open a blank Notepad ++ document and type in the following basic structure tags:
<html>
<head>
<title>
Gr 10 This is not a tag but text that will appear on the screen
</title>
</head>
<body>
Notes on HTML This is not a tag but text that will appear on the screen
<body>
</html>
Save (follow the instructions of your teacher) this web page as Gr10HTML.html.
o Tags that display text, images, backgrounds and videos on the web page are
all found between the <body> </body> tags.
o The Web page is opened with <html> and closed with </html>
Now look for where you have saved the document and double click on it. It should
open in a Web browser like Google Chrome. (You will not be able to open it in a
browser if you have not saved the file as a *.html file.)
Gr 10 - HTML
Page 9 of 19
Your teacher will show you how to view your Web page and your Notepad program
at the same time on the screen by splitting the screen in half. You must remember
to save the changes in Notepad (ctrl + S) and then to update the Web page (ctrl + 5)
to view any changes you make.
Figure 5 Viewing your document in Notepad++ and in the Browser at the same time
Attributes as a concept
An attribute is made up of two parts:
Gr 10 - HTML
Page 10 of 19
There is a useful attribute that can be used to change the background colour of your
web page. This attribute is added to the opening <body> tag.
AT<body bgcolor = “green”> You can use any valid colour name
In Grade 11 you will learn how to add an image as a background to your webpage.
Figure 6: Click on the blue disk to save - Note the red disk image indicates that you need to save changes
Gr 10 - HTML
Page 11 of 19
Gr 10 - HTML
Page 12 of 19
Something to know:
For a look at how website design has changed since the dawn of the internet age, A
Look Back at 20+Years of Website Design has several good examples:
https://blog.hubspot.com/marketing/look-back-20-years-website-design
Using colour
Colour is important in web design. Colour draws the eye and makes
important things stand out. Colours should be used to enhance the purpose of
your website. Information must be clear and easy to read.
If you are designing a website, the colours used should be consistent across
different pages. Don’t choose a different background colour for each page on
your site.
Gr 10 - HTML
Page 13 of 19
<p> </p> Displays a paragraph of text. A line is left open after each
paragraph. Most text on a web page is displayed using <p> tags.
<br /> This is a line break tag. It displays the next line of text on a new line but
without a space above it. This tag is one of the few tags that does not come
in pairs. The closing tag forms part of the opening tag.
<hr/> This tag displays a horizontal line. (hr stands for horizontal rule.) This
tag is used to separate sections of your web page or underneath heading tags
to make them stand out more. This tag also does not come in pairs as is
never used to display text.
● There are attributes that can be used for the horizontal lines’
appearance. The attributes are added to the <hr /> tag.
● Browsers display a hollow line which can be difficult to see.
o Use the size=”3” attribute to edit the size of the line
o Use the width=”50%” OR width=”80” attribute to change
the line width
o Use the color=”red” attribute to change the colour of the
line.
Gr 10 - HTML
Page 14 of 19
Text formatting
There are tags that are used to make parts of a paragraph stand out. These
tags are explained in the table below:
TAG FUNCTION
These tags are often used inside a pair of <p> </p> and are applied to
important word or words that need to be emphasised.
Gr 10 - HTML
Page 15 of 19
Leaving a closing tag out can cause your web page to display in unexpected
ways.
Gr 10 - HTML
Page 16 of 19
The attributes that can be used with the <font> tag are shown in the table below:
Nesting
The font tag is written inside the <p> tags. This is known as nesting. Look at
the following example:
Gr 10 - HTML
Page 17 of 19
1. Type the following code in Notepad++ and save the file as fonts.html.
<html>
<head>
<title>
Fonts
</title>
</head>
<body bgcolor=”red”>
<p>
</font>
</p>
</body>
</html>
Gr 10 - HTML
Page 18 of 19
Written Activity 1
Study the following code:
<html>
<head>
<title>Information</title>
</head>
<body>
<hr/>
<p> <i>All about me!<i> is my website that will tell you more about my
life.</p>
</body>
Based on the code, answer the following questions in your own words.
Gr 10 - HTML
Page 19 of 19
Written Activity 2
Answer the questions below:
CHAPTER
16
Gr 10 - HTML