CAT Grade 12 T1 W4
CAT Grade 12 T1 W4
ACTIVITIES / Activity 1
ASSESSMENT You may remember that the World Wide Web consists of many websites that are hosted on a great number of computers
around the globe. The WWW is just one of many applications of the internet and computer networks. (Mitchell, 2020) A
website usually consists of several webpages that have links to one another as well as the other websites elsewhere on the
internet.
Figure 1: The internet and World Wide Web (Mitchell, 2020)
When you want to see a webpage from any of such websites, you will most likely need a web browser like Chrome, Edge or
Firefox. Each of the browsers will provide you with a URL bar where you can enter a web address for the webpage you want to
see. You could guess that URL is the term for a web address and it stands for a Uniform Resource Locator, which can loosely be
rephrased as Standard Way Webpages Are Found.
An example of a URL where this very lesson can be found is https://wcedeportal.co.za/categories/learning-material
• Follow the URL above using your browser and find the download link for this lesson.
• Explain the difference between email and web addresses.
Activity 2
Webpages often organise content, e.g., text and images, in a way similar to word processing documents. The webpages may
feature headings, paragraphs, lists, and more. Also, jumping from a place in the document to another using the links (or
hyperlinks, if we have to use the term), is possible without breaking a sweat.
For webpages though, if we want to CREATE them, you will need to be able to write HTML (Hypertext Markup Language) code.
So, how can you get a glimpse of how HTML code looks like on a real example?
Page 2 of 5
• Either on the same website https://wcedeportal.co.za or https://google.com, place your mouse over the webpage, right
click for the popup menu, then click on “View page source”.
• Based on what you see, explain what you think is happening in the HTML code by finding places in the code that “make
sense” at this stage. If ANYTHING does, you are better than most. ☺
Activity 3
In order to be good at HTML, you need to remember these basics:
• A webpage constists of elements (parts) that are written as HTML tags
• Most tags come in pairs:
o The opening tag
o The closing tag
• The tags for different elements usually hug ☺ (encapsulate) one another
Do the following to get a better idea of the basics:
• Imagine an onion, and pay special attention to the onion rings:
Page 3 of 5
• If the picture of the onion with the HTML code over it is starting to make sense, see the following T-shirt (so cool!) that
describes the basic structure of an HTML document (a webpage) in a different way:
</head>
<body>
</body>
</html>
• Save the file index.html and open it in your web browser. (You should be able to see a blank HTML page.
Congratulations!)
Activity 5
Of course, the webpage comes alive only after you can display something to the user viewing your website. In order to do so,
remember the following:
Page 4 of 5
• The tags for the title of the webpage that must be displayed in the browser tab will go between the HEAD tags.
• Anything else (headings, paragraphs, lists, etc.) will go between the BODY tags.
• Whenever you do NOT want anything to appear on the page, you can use the special comment tags:
<!-- this text will not appear -->
With this in mind, create a new HTML document do the following actions (use https://www.w3schools.com/html/ when you
need to look up the information on the tags you will need):
• Add a webpage title that will be displayed in the browser tab.
• Change the background colour of the webpage.
• Add a heading of your choice.
• Add a horisontal rule (line across your webpage).
• Add two paragraphs with any short text.
• Add a comment between the paragraphs such that the comment text of your choice will not display when viewed in the
browser.
• Change the font of a specific word.
• Make that word bold and italic at the same time.
CONSOLIDATION In this lesson you learned the basics of HTML. This will enable you to write more complex code later this year in the lessons that
follow.
NOTE: The questions given with the activities above are used for consolidation purposes.
VALUES Laying the foundations for a democratic and open society. (Where HTML coding skills are an enabling factor of sharing your
views with the world.)
E-RESOURCES TML Tutorial. (n.d.). Retrieved from W3C Schools: https://www.w3schools.com/html/
Mitchell, B. (2020, February 2). WWW: World Wide Web. Retrieved from Lifewire.com: https://www.lifewire.com/history-of-
world-wide-web-816583
Page 5 of 5