HTML Basics: Tags, Text, Images, Hyperlinks, Lists and Tables – Grade 11 ICT Notes 5.2

© 2026 schoolict.net (Ruwan Mangala Suraweera)

5.2 HTML Basics: Tags, Text, Images, Hyperlinks, Lists and TablesHTML මූලික කරුණු: Tags, පෙළ, රූප, අධිසබැඳි, ලැයිස්තු සහ වගු

G.C.E. O/L Grade 11 ICT · Lesson 5G.C.E. O/L ICT · 11 ශ්‍රේණිය · පාඩම 5

Prints all tabs in the language you are reading. Use “Save as PDF” in the print window to keep a copy.ඔබ කියවන භාෂාවෙන් සියලු tabs මුද්‍රණය වේ. පිටපතක් තියාගන්න print window එකේ “Save as PDF” තෝරන්න.
🎬Video coming soon in this language. Switch language to watch the other video.මේ භාෂාවෙන් වීඩියෝව ඉක්මනින් එනවා. අනෙක් වීඩියෝව බලන්න භාෂාව මාරු කරන්න.

In this videoමේ වීඩියෝවේ

  • Hypertext has links to other pages.Hypertext හි වෙනත් පිටුවලට සබැඳි ඇත.
  • <head> holds the title; <body> holds the page.<head> හි title; <body> හි පිටුව.
  • <p> paragraph, <br> line break, <h1>–<h6> headings.<p> ඡේදය, <br> පේළි බිඳීම, <h1>–<h6> මාතෘකා.
  • <img> needs src and alt; <a> needs href.<img> ට src සහ alt; <a> ට href අවශ්‍යයි.
  • Lists use <ol>/<ul> and <li>; tables use <tr>, <th>, <td>.ලැයිස්තු <ol>/<ul> සහ <li>; වගු <tr>, <th>, <td> භාවිත කරයි.
<html><head><body><p><img><a><table>

Notesසටහන්

Syllabus 14.2. Every web page is written in HTML. In this note you will learn what hypertext is, how an HTML document is built, and how to show headings, paragraphs, coloured text, images, links, lists and tables. Each example shows the code and, under it, the result in the browser. Type them in Notepad, save as .html and open in Chrome to try them yourself.විෂය නිර්දේශය 14.2. සෑම වෙබ් පිටුවක්ම ලියා ඇත්තේ HTML වලිනි. මෙම සටහනේදී ඔබ hypertext යනු කුමක්ද, HTML ලේඛනයක් සාදන ආකාරය, සහ මාතෘකා, ඡේද, වර්ණ පෙළ, රූප, සබැඳි, ලැයිස්තු සහ වගු පෙන්වන ආකාරය ඉගෙන ගනී. සෑම උදාහරණයකම කේතය සහ ඊට පහළින් බ්‍රව්සරයේ ප්‍රතිඵලය ඇත. ඒවා Notepad හි ටයිප් කර .html ලෙස සුරැක Chrome හි විවෘත කර ඔබම උත්සාහ කරන්න.

1. Hypertext and normal text1. Hypertext සහ සාමාන්‍ය පෙළ

Normal text (like a printed book) is read from start to end in one order. Hypertext is text with links (hyperlinks). Click a link and you jump to another page, picture or site. HTML means HyperText Markup Language – a language of tags that tells the browser how to show the page. HTML is not a programming language; it has no loops or calculations.සාමාන්‍ය පෙළ (මුද්‍රිත පොතක් මෙන්) ආරම්භයේ සිට අගට එක් පිළිවෙළකට කියවයි. Hypertext යනු සබැඳි (hyperlinks) සහිත පෙළයි. සබැඳියක් ක්ලික් කළ විට ඔබ වෙනත් පිටුවකට, පින්තූරයකට හෝ අඩවියකට පනියි. HTML යනු HyperText Markup Language – පිටුව පෙන්විය යුතු ආකාරය බ්‍රව්සරයට කියන tags භාෂාවකි. HTML ක්‍රමලේඛන භාෂාවක් නොවේ; එහි loops හෝ ගණනය කිරීම් නැත.

Normal textRead in one orderHomeClubsNewsContactHypertext: click a link (blue) to jump
Figure 5.5 – Normal text is read in one order; hypertext lets you jump between pages using links.රූපය 5.5 – සාමාන්‍ය පෙළ එක් පිළිවෙළකට කියවයි; hypertext මගින් සබැඳි භාවිතයෙන් පිටු අතර පැනිය හැක.
Featureලක්ෂණයNormal textසාමාන්‍ය පෙළHypertextHypertext
Reading orderකියවන පිළිවෙළStart to end, in one orderආරම්භයේ සිට අගට, එක් පිළිවෙළකටJump anywhere by clicking linksසබැඳි ක්ලික් කර ඕනෑම තැනකට පනින්න
LinksසබැඳිNoneනැතLinks to other pages, files and sitesවෙනත් පිටු, ගොනු සහ අඩවිවලට සබැඳි
Mediaමාධ්‍යUsually text onlyසාමාන්‍යයෙන් පෙළ පමණිText with images, audio and videoරූප, audio සහ වීඩියෝ සමඟ පෙළ
ExampleඋදාහරණයA printed textbook pageමුද්‍රිත පෙළපොතක පිටුවක්A web page, Wikipediaවෙබ් පිටුවක්, Wikipedia

2. Tags, elements and attributes2. Tags, elements සහ attributes

A tag is a word inside angle brackets, like <p>. Most tags come in pairs: an opening tag <p> and a closing tag </p> with a slash. The opening tag, the content and the closing tag together make an element. Some tags have no closing tag; they are empty elements, such as <br>, <hr> and <img>. An attribute gives extra information inside the opening tag: <img src=”logo.png” alt=”School logo”>. Here src and alt are attributes; their values go in double quotes.Tag එකක් යනු <p> වැනි කෝණ වරහන් තුළ ඇති වචනයකි. බොහෝ tags යුගල ලෙස එයි: ආරම්භක tag <p> සහ slash සහිත අවසාන tag </p>. ආරම්භක tag එක, අන්තර්ගතය සහ අවසාන tag එක එකට element එකක් සාදයි. සමහර tags වලට අවසාන tag නැත; ඒවා <br>, <hr> සහ <img> වැනි හිස් elements වේ. Attribute එකක් ආරම්භක tag එක තුළ අමතර තොරතුරු දෙයි: <img src=”logo.png” alt=”School logo”>. මෙහි src සහ alt attributes වේ; ඒවායේ අගයන් ද්විත්ව උද්ධෘත තුළ යයි.

  • HTML5 tags are not case-sensitive, but always write them in lowercase.HTML5 tags case-sensitive නොවේ, නමුත් සැමවිටම කුඩා අකුරින් ලියන්න.
  • Close tags in the reverse order you opened them: <b><i>Hi</i></b>.tags විවෘත කළ ප්‍රතිවිරුද්ධ පිළිවෙළට වසන්න: <b><i>Hi</i></b>.
  • Save the file with the extension .html (or .htm). The home page is usually index.html.ගොනුව .html (හෝ .htm) දිගුවෙන් සුරකින්න. මුල් පිටුව සාමාන්‍යයෙන් index.html වේ.
  • Extra spaces and new lines in the code are shown as one space. Use <br> or <p> for new lines.කේතයේ අමතර හිස්තැන් සහ නව පේළි එක් හිස්තැනක් ලෙස පෙන්වයි. නව පේළි සඳහා <br> හෝ <p> භාවිත කරන්න.

3. The structure of an HTML document3. HTML ලේඛනයක ව්‍යුහය

Every HTML page has the same skeleton. <!DOCTYPE html> tells the browser it is HTML5. <html> holds the whole page. The <head> holds information about the page that is not shown on it, such as the <title> (the text on the browser tab). The <body> holds everything you see on the page.සෑම HTML පිටුවකටම එකම ඇටසැකිල්ල ඇත. <!DOCTYPE html> එය HTML5 බව බ්‍රව්සරයට කියයි. <html> මුළු පිටුවම දරයි. <head> හි පිටුවේ නොපෙන්වන පිටුව පිළිබඳ තොරතුරු ඇත, උදා. <title> (බ්‍රව්සර් tab එකේ පෙළ). <body> හි පිටුවේ ඔබ දකින සියල්ල ඇත.

<html><head><meta charset=”utf-8″><title> text on the tab </title><body><h1> heading<p> paragraph<img> picture<a> linkNot shown on the pageපිටුවේ නොපෙන්වයිShown in the browserබ්‍රව්සරයේ පෙන්වයි
Figure 5.6 – The head holds information about the page; the body holds what is shown.රූපය 5.6 – head හි පිටුව පිළිබඳ තොරතුරු ඇත; body හි පෙන්වන දේ ඇත.
🌐 HTML: A complete HTML documentසම්පූර්ණ HTML ලේඛනයක්
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Sunrise College</title>
</head>
<body>
  <h1>Welcome to Sunrise College</h1>
  <p>We are a mixed school in Kandy.</p>
</body>
</html>

▶ Result in the browserබ්‍රව්සරයේ ප්‍රතිඵලය

💡 The title appears on the browser tab and in Google search results, not on the page itself. Write a clear title for every page.title එක පෙන්වන්නේ බ්‍රව්සර් tab එකේ සහ Google සෙවුම් ප්‍රතිඵලවලයි, පිටුවේ නොවේ. සෑම පිටුවකටම පැහැදිලි title එකක් ලියන්න.

4. Headings, paragraphs and line breaks4. මාතෘකා, ඡේද සහ පේළි බිඳීම්

There are six heading levels: <h1> (biggest, use once for the main title) down to <h6> (smallest). <p> makes a paragraph with a space above and below. <br> breaks the line without a new paragraph, and <hr> draws a horizontal line across the page. In the examples below the <html>, <head> and <body> tags are left out to keep them short – they go inside <body>.මාතෘකා මට්ටම් හයක් ඇත: <h1> (විශාලම, ප්‍රධාන මාතෘකාවට එක් වරක් භාවිත කරන්න) සිට <h6> (කුඩාම) දක්වා. <p> ඉහළින් සහ පහළින් ඉඩක් සහිත ඡේදයක් සාදයි. <br> නව ඡේදයක් නොමැතිව පේළිය බිඳියි, <hr> පිටුව හරහා තිරස් රේඛාවක් අඳියි. පහත උදාහරණ කෙටි කිරීමට <html>, <head> සහ <body> tags ඉවත් කර ඇත – ඒවා <body> තුළ යයි.

🌐 HTML: Headings, paragraphs, line breaks and a lineමාතෘකා, ඡේද, පේළි බිඳීම් සහ රේඛාවක්
<h1>ICT Club</h1>
<h2>Meeting times</h2>
<p>We meet every Wednesday<br>
from 2.00 pm to 3.30 pm<br>
in the computer lab.</p>
<hr>
<p>New members are welcome.</p>

▶ Result in the browserබ්‍රව්සරයේ ප්‍රතිඵලය

5. Formatting text and colour5. පෙළ හැඩගැන්වීම සහ වර්ණය

TagTagResultප්‍රතිඵලය
<b> … </b> or <strong> … </strong><b> … </b> or <strong> … </strong>Bold (strong = important)තද (strong = වැදගත්)
<i> … </i> or <em> … </em><i> … </i> or <em> … </em>Italic (em = emphasis)ඇල (em = අවධාරණය)
<u> … </u><u> … </u>Underlineයටි ඉර
<sub> … </sub><sub> … </sub>Subscript: H₂OSubscript: H₂O
<sup> … </sup><sup> … </sup>Superscript: 2³Superscript: 2³
<mark> … </mark><mark> … </mark>Highlightඉස්මතු කිරීම

To change colour, size or font, HTML5 uses the style attribute (this is CSS). Colours can be names (blue, red) or hex codes (#C0304A).වර්ණය, ප්‍රමාණය හෝ අකුර වෙනස් කිරීමට HTML5 style attribute එක භාවිත කරයි (මෙය CSS වේ). වර්ණ නම් (blue, red) හෝ hex කේත (#C0304A) විය හැක.

🌐 HTML: Text format and colourපෙළ ආකෘතිය සහ වර්ණය
<p>This is <b>bold</b>, this is <i>italic</i>
and this is <u>underlined</u>.</p>
<p>H<sub>2</sub>O and 2<sup>3</sup> = 8</p>
<p style="color:blue;">Blue text</p>
<p style="color:#C0304A; font-size:24px;">Big red text</p>
<p style="background-color:yellow;">Yellow background</p>
<p style="font-family:Arial;">Arial font</p>

▶ Result in the browserබ්‍රව්සරයේ ප්‍රතිඵලය

Old HTML 4 (do not use)පැරණි HTML 4 (භාවිත නොකරන්න)HTML5 way (CSS style)HTML5 ක්‍රමය (CSS style)Jobකාර්යය
<font color=”red”><font color=”red”>style=”color:red;”style=”color:red;”Text colourපෙළ වර්ණය
<font size=”5″><font size=”5″>style=”font-size:24px;”style=”font-size:24px;”Text sizeපෙළ ප්‍රමාණය
<body bgcolor=”yellow”><body bgcolor=”yellow”><body style=”background-color:yellow;”><body style=”background-color:yellow;”>Page backgroundපිටු පසුබිම
<center><center>style=”text-align:center;”style=”text-align:center;”Centre textපෙළ මැදට
💡 Older textbooks and past papers use <font color=”red”> and <body bgcolor=”yellow”>. Know what they mean, but write the style version in new pages – <font> and <center> were removed in HTML5.පැරණි පෙළපොත් සහ පසුගිය ප්‍රශ්න පත්‍ර <font color=”red”> සහ <body bgcolor=”yellow”> භාවිත කරයි. ඒවායේ අර්ථය දැන ගන්න, නමුත් නව පිටුවල style ආකාරය ලියන්න – <font> සහ <center> HTML5 හි ඉවත් කර ඇත.

6. Inserting images6. රූප ඇතුළත් කිරීම

The <img> tag puts a picture on the page. It is an empty element. src is the file name or address of the picture, alt is the text read by screen readers (and shown if the picture cannot load), and width and height set the size in pixels. Keep the picture in the same folder as the page, or write the folder: src=”images/school.jpg”.<img> tag එක පිටුවට පින්තූරයක් දමයි. එය හිස් element එකකි. src යනු පින්තූරයේ ගොනු නාමය හෝ ලිපිනයයි, alt යනු screen readers කියවන පෙළයි (පින්තූරය load නොවුණොත්ද පෙන්වයි), width සහ height පික්සල වලින් ප්‍රමාණය සකසයි. පින්තූරය පිටුවේ එකම ෆෝල්ඩරයේ තබන්න, නැතහොත් ෆෝල්ඩරය ලියන්න: src=”images/school.jpg”.

🌐 HTML: Inserting an imageරූපයක් ඇතුළත් කිරීම
<h2>Our school</h2>
<img src="school.jpg" alt="Front gate of Sunrise College"
     width="300" height="200">
<p>The front gate in 2026.</p>

▶ Result in the browserබ්‍රව්සරයේ ප්‍රතිඵලය

7. Hyperlinks7. අධිසබැඳි

The <a> (anchor) tag makes a link. The href attribute is where the link goes; the text between <a> and </a> is what the user clicks. An absolute link has the full address (https://…). A relative link points to a page in your own site (about.html). target=”_blank” opens a new tab, mailto: opens e-mail, and #name jumps to a part of the same page that has id=”name”.<a> (anchor) tag එක සබැඳියක් සාදයි. href attribute එක සබැඳිය යන ස්ථානයයි; <a> සහ </a> අතර පෙළ පරිශීලකයා ක්ලික් කරන දේයි. Absolute සබැඳියකට සම්පූර්ණ ලිපිනය (https://…) ඇත. Relative සබැඳියක් ඔබේම අඩවියේ පිටුවකට (about.html) යොමු කරයි. target=”_blank” නව tab එකක් විවෘත කරයි, mailto: e-mail විවෘත කරයි, #name id=”name” ඇති එකම පිටුවේ කොටසකට පනියි.

🌐 HTML: Hyperlinksඅධිසබැඳි
<p><a href="https://www.moe.gov.lk">Ministry of Education</a></p>
<p><a href="about.html">About our school</a></p>
<p><a href="https://www.e-thaksalawa.moe.gov.lk" target="_blank">e-thaksalawa (new tab)</a></p>
<p><a href="mailto:info@sunrise.lk">E-mail us</a></p>
<p><a href="#top">Back to top</a></p>

▶ Result in the browserබ්‍රව්සරයේ ප්‍රතිඵලය

💡 Links are usually blue and underlined; a visited link turns purple. You can also make a picture a link: put the <img> inside <a> … </a>.සබැඳි සාමාන්‍යයෙන් නිල් සහ යටින් ඉරි සහිතයි; ගිය සබැඳියක් දම් පාට වේ. පින්තූරයක්ද සබැඳියක් කළ හැක: <img> එක <a> … </a> තුළ දමන්න.

8. Lists8. ලැයිස්තු

<ul> makes an unordered list with bullets (•). <ol> makes an ordered list with numbers (1, 2, 3). Each item goes in <li>. You can put a list inside an <li> to make a nested list. Use type=”A” or type=”i” on <ol> for letters or Roman numbers.<ul> bullets (•) සහිත අපිළිවෙළ ලැයිස්තුවක් සාදයි. <ol> අංක (1, 2, 3) සහිත පිළිවෙළ ලැයිස්තුවක් සාදයි. සෑම අයිතමයක්ම <li> තුළ යයි. කැදැලි ලැයිස්තුවක් සෑදීමට <li> එකක් තුළ ලැයිස්තුවක් දැමිය හැක. අකුරු හෝ රෝම අංක සඳහා <ol> මත type=”A” හෝ type=”i” භාවිත කරන්න.

🌐 HTML: Ordered, unordered and nested listsපිළිවෙළ, අපිළිවෙළ සහ කැදැලි ලැයිස්තු
<h3>Clubs</h3>
<ul>
  <li>ICT Club</li>
  <li>Science Club
    <ul>
      <li>Robotics</li>
      <li>Astronomy</li>
    </ul>
  </li>
</ul>
<h3>Steps to log in</h3>
<ol>
  <li>Open the browser</li>
  <li>Type the address</li>
  <li>Enter your password</li>
</ol>

▶ Result in the browserබ්‍රව්සරයේ ප්‍රතිඵලය

9. Tables9. වගු

A table is built row by row. <table> holds the table, <tr> is one table row, <th> is a heading cell (bold and centred) and <td> is a data cell. <caption> gives the table a title. colspan=”3″ joins three cells across; rowspan=”2″ joins two cells down. border=”1″ draws the lines (in new pages CSS borders are better).වගුවක් පේළියෙන් පේළිය සාදයි. <table> වගුව දරයි, <tr> එක් වගු පේළියකි, <th> මාතෘකා කොටුවකි (තද සහ මැදට) සහ <td> දත්ත කොටුවකි. <caption> වගුවට මාතෘකාවක් දෙයි. colspan=”3″ කොටු තුනක් හරහා එකතු කරයි; rowspan=”2″ කොටු දෙකක් පහළට එකතු කරයි. border=”1″ රේඛා අඳියි (නව පිටුවල CSS borders වඩා හොඳයි).

<caption> ICT Club timetableDayTimeActivityMonday2.00 pmScratchWednesday2.00 pmHTMLcolspan=”3″ – one cell, 3 columns wide<th> heading cells<td> data cells<tr> = one rowmerged cell
Figure 5.7 – Parts of a table: tr rows, th heading cells, td data cells and a colspan cell.රූපය 5.7 – වගුවක කොටස්: tr පේළි, th මාතෘකා කොටු, td දත්ත කොටු සහ colspan කොටුවක්.
🌐 HTML: A tableවගුවක්
<table border="1">
  <caption>ICT Club timetable</caption>
  <tr>
    <th>Day</th>
    <th>Time</th>
    <th>Activity</th>
  </tr>
  <tr>
    <td>Monday</td>
    <td>2.00 pm</td>
    <td>Scratch</td>
  </tr>
  <tr>
    <td>Wednesday</td>
    <td>2.00 pm</td>
    <td>HTML</td>
  </tr>
  <tr>
    <td colspan="3">All Grade 10 and 11 students are welcome</td>
  </tr>
</table>

▶ Result in the browserබ්‍රව්සරයේ ප්‍රතිඵලය

10. Tag summary10. Tag සාරාංශය

TagTagUseභාවිතයEmpty?හිස්ද?
<html><html>Whole web pageමුළු වෙබ් පිටුවNoනැත
<head><head>Information about the pageපිටුව ගැන තොරතුරුNoනැත
<title><title>Text on the browser tabබ්‍රව්සර් tab එකේ පෙළNoනැත
<body><body>Everything shown on the pageපිටුවේ පෙන්වන සියල්ලNoනැත
<h1> … <h6><h1> … <h6>Headings (h1 biggest)මාතෘකා (h1 විශාලම)Noනැත
<p><p>ParagraphඡේදයNoනැත
<br><br>Line breakපේළි බිඳීමYesඔව්
<hr><hr>Horizontal lineතිරස් රේඛාවYesඔව්
<b> / <strong><b> / <strong>Bold / important textතද / වැදගත් පෙළNoනැත
<i> / <em><i> / <em>Italic / emphasisඇල / අවධාරණයNoනැත
<u><u>Underlineයටි ඉරNoනැත
<img><img>ImageරූපයYesඔව්
<a><a>HyperlinkඅධිසබැඳියNoනැත
<ul> <ol> <li><ul> <ol> <li>Listsලැයිස්තුNoනැත
<table> <tr> <th> <td><table> <tr> <th> <td>TablesවගුNoනැත
NEW 20262026 නව 2026: Modern pages use HTML5 with CSS for all colours and layout. Add <meta name=”viewport”> so the page fits phones, always give images alt text, and check your code with the free W3C Validator (validator.w3.org). AI assistants can write HTML for you, but you must still read and test it – they sometimes use old tags.2026: නවීන පිටු සියලු වර්ණ සහ පිරිසැලසුම සඳහා CSS සමඟ HTML5 භාවිත කරයි. පිටුව දුරකථනවලට ගැළපීමට <meta name=”viewport”> එක් කරන්න, රූපවලට සැමවිටම alt පෙළ දෙන්න, නොමිලේ ඇති W3C Validator (validator.w3.org) මගින් කේතය පරීක්ෂා කරන්න. AI සහායකයින්ට ඔබ වෙනුවෙන් HTML ලිවිය හැකි නමුත් ඔබ තවමත් එය කියවා පරීක්ෂා කළ යුතුය – ඒවා සමහර විට පැරණි tags භාවිත කරයි.

Key Wordsප්‍රධාන පද

HypertextHypertext
Text with links that jump to other pages.වෙනත් පිටුවලට පනින සබැඳි සහිත පෙළ.
HTMLHTML
HyperText Markup Language: tags that describe a web page.HyperText Markup Language: වෙබ් පිටුවක් විස්තර කරන tags.
TagTag
A keyword in angle brackets, such as <p>.<p> වැනි කෝණ වරහන් තුළ ඇති මූල පදයක්.
ElementElement
Opening tag + content + closing tag.ආරම්භක tag + අන්තර්ගතය + අවසාන tag.
Empty elementහිස් element
A tag with no closing tag, e.g. <br>, <img>.අවසාන tag නැති tag එකක්, උදා. <br>, <img>.
AttributeAttribute
Extra information in an opening tag, e.g. src, href.ආරම්භක tag එකක අමතර තොරතුරු, උදා. src, href.
<head><head>
Part with page information that is not shown, e.g. the title.නොපෙන්වන පිටු තොරතුරු සහිත කොටස, උදා. title.
<body><body>
Part that holds everything shown on the page.පිටුවේ පෙන්වන සියල්ල දරන කොටස.
Hyperlinkඅධිසබැඳිය
A clickable link made with <a href>.<a href> මගින් සාදන ක්ලික් කළ හැකි සබැඳිය.
Relative linkRelative සබැඳිය
A link to a file in the same site, e.g. about.html.එකම අඩවියේ ගොනුවකට සබැඳිය, උදා. about.html.
<li><li>
One item in an ordered or unordered list.පිළිවෙළ හෝ අපිළිවෙළ ලැයිස්තුවක එක් අයිතමයක්.
colspancolspan
Attribute that joins table cells across columns.තීරු හරහා වගු කොටු එකතු කරන attribute.

Sample Q&Aආදර්ශ ප්‍රශ්න සහ පිළිතුරු

1What does HTML stand for?HTML යනු කුමක්ද?

Answerපිළිතුර: HyperText Markup Language.HyperText Markup Language.

2What is the difference between <head> and <body>?<head> සහ <body> අතර වෙනස කුමක්ද?

Answerපිළිතුර: <head> holds page information that is not shown (title); <body> holds what is shown.<head> නොපෙන්වන පිටු තොරතුරු (title) දරයි; <body> පෙන්වන දේ දරයි.

3Write the tag to show the picture cat.png with the alt text “Our cat”.alt text “Our cat” සමඟ cat.png පින්තූරය පෙන්වීමට tag එක ලියන්න.

Answerපිළිතුර: <img src=”cat.png” alt=”Our cat”><img src=”cat.png” alt=”Our cat”>

4Write a link to https://www.moe.gov.lk with the text “MOE”.“MOE” පෙළ සමඟ https://www.moe.gov.lk වෙත සබැඳියක් ලියන්න.

Answerපිළිතුර: <a href=”https://www.moe.gov.lk”>MOE</a><a href=”https://www.moe.gov.lk”>MOE</a>

5Which tags make a numbered list?අංකිත ලැයිස්තුවක් සාදන tags මොනවාද?

Answerපිළිතුර: <ol> with each item in <li>.එක් එක් අයිතමය <li> තුළ ඇති <ol>.

6What do <tr>, <th> and <td> mean?<tr>, <th> සහ <td> යනු මොනවාද?

Answerපිළිතුර: Table row, table heading cell, table data cell.වගු පේළිය, වගු මාතෘකා කොටුව, වගු දත්ත කොටුව.

MCQබහුවරණ ප්‍රශ්න

Choose the correct answer for each question.සෑම ප්‍රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.

Scoreලකුණු: 0 / 15

1HTML stands forHTML යනු

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Hypertext + markup (tags) language.Hypertext + markup (tags) භාෂාව.

2Text that contains links to other pages is calledවෙනත් පිටුවලට සබැඳි ඇති පෙළ හඳුන්වන්නේ

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Hypertext has hyperlinks.Hypertext හි hyperlinks ඇත.

3The text on the browser tab comes from theබ්‍රව්සර් tab එකේ පෙළ එන්නේ

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

<title> is in the head and shows on the tab.<title> head හි ඇති අතර tab එකේ පෙන්වයි.

4Which part holds everything shown on the page?පිටුවේ පෙන්වන සියල්ල දරන කොටස කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

The body is the visible part.body යනු පෙනෙන කොටසයි.

5Which is an empty element (no closing tag)?හිස් element එකක් (අවසාන tag නැති) වන්නේ කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

<br> only breaks the line, so it has no content.<br> පේළිය පමණක් බිඳියි, එබැවින් අන්තර්ගතයක් නැත.

6Which heading is the largest?විශාලතම මාතෘකාව කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

h1 is the biggest; h6 the smallest.h1 විශාලම; h6 කුඩාම.

7Which code makes red text in HTML5?HTML5 හි රතු පෙළ සාදන කේතය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

HTML5 uses the CSS style attribute.HTML5 CSS style attribute භාවිත කරයි.

8In H<sub>2</sub>O the 2 is shownH<sub>2</sub>O හි 2 පෙන්වන්නේ

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

<sub> is subscript.<sub> යනු subscript.

9In <img src=”a.jpg” alt=”Gate”>, alt is<img src=”a.jpg” alt=”Gate”> හි alt යනු

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

alt gives extra information inside the tag.alt tag එක තුළ අමතර තොරතුරු දෙයි.

10Which attribute of <a> gives the link address?සබැඳි ලිපිනය දෙන <a> හි attribute එක කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

href = hypertext reference.href = hypertext reference.

11target=”_blank” in a link makes itසබැඳියක target=”_blank” මගින්

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

_blank means a new tab or window._blank යනු නව tab හෝ කවුළුවයි.

12Which tag makes a bulleted list?bullet සහිත ලැයිස්තුවක් සාදන tag එක කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

ul = unordered list with bullets.ul = bullet සහිත අපිළිවෙළ ලැයිස්තුව.

13A table cell that is a heading usesමාතෘකාවක් වන වගු කොටුවක් භාවිත කරන්නේ

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

th = table heading cell.th = වගු මාතෘකා කොටුව.

14To join three cells across one row, useඑක් පේළියක කොටු තුනක් එකතු කිරීමට භාවිත කරන්නේ

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

colspan joins columns across.colspan තීරු හරහා එකතු කරයි.

15How many <td> cells are in the ICT Club timetable example?ICT Club කාලසටහන් උදාහරණයේ <td> කොටු කීයක් තිබේද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Two rows of 3 data cells + 1 colspan cell = 7.දත්ත කොටු 3 ක පේළි දෙකක් + colspan කොටු 1 = 7.

MCQ answer keyMCQ පිළිතුරු

  1. B – Hypertext + markup (tags) language.Hypertext + markup (tags) භාෂාව.
  2. D – Hypertext has hyperlinks.Hypertext හි hyperlinks ඇත.
  3. A – <title> is in the head and shows on the tab.<title> head හි ඇති අතර tab එකේ පෙන්වයි.
  4. B – The body is the visible part.body යනු පෙනෙන කොටසයි.
  5. A – <br> only breaks the line, so it has no content.<br> පේළිය පමණක් බිඳියි, එබැවින් අන්තර්ගතයක් නැත.
  6. C – h1 is the biggest; h6 the smallest.h1 විශාලම; h6 කුඩාම.
  7. A – HTML5 uses the CSS style attribute.HTML5 CSS style attribute භාවිත කරයි.
  8. D – <sub> is subscript.<sub> යනු subscript.
  9. B – alt gives extra information inside the tag.alt tag එක තුළ අමතර තොරතුරු දෙයි.
  10. A – href = hypertext reference.href = hypertext reference.
  11. C – _blank means a new tab or window._blank යනු නව tab හෝ කවුළුවයි.
  12. C – ul = unordered list with bullets.ul = bullet සහිත අපිළිවෙළ ලැයිස්තුව.
  13. B – th = table heading cell.th = වගු මාතෘකා කොටුව.
  14. D – colspan joins columns across.colspan තීරු හරහා එකතු කරයි.
  15. C – Two rows of 3 data cells + 1 colspan cell = 7.දත්ත කොටු 3 ක පේළි දෙකක් + colspan කොටු 1 = 7.

Structured Questionsව්‍යුහගත ප්‍රශ්න

1Write the basic structure of an HTML5 page with the title “My Club”.“My Club” title සහිත HTML5 පිටුවක මූලික ව්‍යුහය ලියන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
<!DOCTYPE html> <html lang=”en”> <head> <meta charset=”utf-8″> <title>My Club</title> </head> <body> … </body> </html><!DOCTYPE html> <html lang=”en”> <head> <meta charset=”utf-8″> <title>My Club</title> </head> <body> … </body> </html>

2Give two differences between hypertext and normal text.hypertext සහ සාමාන්‍ය පෙළ අතර වෙනස්කම් දෙකක් දෙන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Hypertext has links and can be read in any order; normal text has no links and is read start to end. Hypertext can also include images, audio and video.Hypertext හි සබැඳි ඇති අතර ඕනෑම පිළිවෙළකට කියවිය හැක; සාමාන්‍ය පෙළ සබැඳි නැතිව ආරම්භයේ සිට අගට කියවයි. Hypertext හි රූප, audio, වීඩියෝද ඇතුළත් විය හැක.

3Write HTML for an ordered list of three fruits.පලතුරු තුනක පිළිවෙළ ලැයිස්තුවක් සඳහා HTML ලියන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
<ol> <li>Mango</li> <li>Banana</li> <li>Papaya</li> </ol><ol> <li>අඹ</li> <li>කෙසෙල්</li> <li>පැපොල්</li> </ol>

4Write HTML to show photo.jpg 200 pixels wide, and make it a link to gallery.html.photo.jpg පළල පික්සල 200 කින් පෙන්වා, එය gallery.html වෙත සබැඳියක් කිරීමට HTML ලියන්න. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
<a href=”gallery.html”><img src=”photo.jpg” alt=”Photo” width=”200″></a><a href=”gallery.html”><img src=”photo.jpg” alt=”Photo” width=”200″></a>

5Explain the use of <tr>, <th>, <td> and colspan in a table.වගුවක <tr>, <th>, <td> සහ colspan භාවිතය පැහැදිලි කරන්න. (4 marksලකුණු 4)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
<tr> starts a row; <th> is a bold heading cell; <td> is a normal data cell; colspan makes one cell stretch across several columns.<tr> පේළියක් අරඹයි; <th> තද මාතෘකා කොටුවකි; <td> සාමාන්‍ය දත්ත කොටුවකි; colspan එක් කොටුවක් තීරු කිහිපයක් හරහා දිගු කරයි.

🎮 Game🎮 ක්‍රීඩා

Pick a game. Each one uses words from this lesson.ක්‍රීඩාවක් තෝරන්න. හැම එකක්ම මේ පාඩමේ වචන පාවිච්චි කරනවා.

Summary & Downloadsසාරාංශය සහ බාගත කිරීම්

Key pointsප්‍රධාන කරුණු

  • Hypertext = text with links; HTML = HyperText Markup Language (tags, not a program).Hypertext = සබැඳි සහිත පෙළ; HTML = HyperText Markup Language (tags, ක්‍රමලේඛයක් නොවේ).
  • Element = <tag> content </tag>; empty elements: <br>, <hr>, <img>.Element = <tag> අන්තර්ගතය </tag>; හිස් elements: <br>, <hr>, <img>.
  • Structure: <!DOCTYPE html>, <html>, <head> + <title>, <body>.ව්‍යුහය: <!DOCTYPE html>, <html>, <head> + <title>, <body>.
  • Headings <h1>–<h6>; <p> paragraph; <br> line break; <hr> line.මාතෘකා <h1>–<h6>; <p> ඡේදය; <br> පේළි බිඳීම; <hr> රේඛාව.
  • <b>, <i>, <u>, <sub>, <sup>; colour with style=”color:…”.<b>, <i>, <u>, <sub>, <sup>; style=”color:…” මගින් වර්ණය.
  • <img src alt width height>; always give alt text.<img src alt width height>; සැමවිටම alt text දෙන්න.
  • <a href>: absolute, relative, mailto:, #id, target=”_blank”.<a href>: absolute, relative, mailto:, #id, target=”_blank”.
  • <ul>/<ol> + <li>; <table>, <tr>, <th>, <td>, colspan, rowspan.<ul>/<ol> + <li>; <table>, <tr>, <th>, <td>, colspan, rowspan.

Downloadsබාගත කිරීම්

Full Lesson 5 PDFසම්පූර්ණ පාඩම 5 PDF: English · සිංහල

Next noteඊළඟ සටහන 5.3 →

© 2026 schoolict.net (Ruwan Mangala Suraweera). All rights reserved.සියලු හිමිකම් ඇවිරිණි.