© 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
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> භාවිත කරයි.
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 හෝ ගණනය කිරීම් නැත.
| 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> හි පිටුවේ ඔබ දකින සියල්ල ඇත.
<!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බ්රව්සරයේ ප්රතිඵලය
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> තුළ යයි.
<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. පෙළ හැඩගැන්වීම සහ වර්ණය
| TagTag | Resultප්රතිඵලය |
|---|---|
| <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) විය හැක.
<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පෙළ මැදට |
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”.
<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” ඇති එකම පිටුවේ කොටසකට පනියි.
<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බ්රව්සරයේ ප්රතිඵලය
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” භාවිත කරන්න.
<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 වඩා හොඳයි).
<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 සාරාංශය
| TagTag | Useභාවිතය | 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නැත |
Key Wordsප්රධාන පද
Sample Q&Aආදර්ශ ප්රශ්න සහ පිළිතුරු
1What does HTML stand for?HTML යනු කුමක්ද?
2What is the difference between <head> and <body>?<head> සහ <body> අතර වෙනස කුමක්ද?
3Write the tag to show the picture cat.png with the alt text “Our cat”.alt text “Our cat” සමඟ cat.png පින්තූරය පෙන්වීමට tag එක ලියන්න.
4Write a link to https://www.moe.gov.lk with the text “MOE”.“MOE” පෙළ සමඟ https://www.moe.gov.lk වෙත සබැඳියක් ලියන්න.
5Which tags make a numbered list?අංකිත ලැයිස්තුවක් සාදන tags මොනවාද?
6What do <tr>, <th> and <td> mean?<tr>, <th> සහ <td> යනු මොනවාද?
MCQබහුවරණ ප්රශ්න
Choose the correct answer for each question.සෑම ප්රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.
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 පිළිතුරු
- B – Hypertext + markup (tags) language.Hypertext + markup (tags) භාෂාව.
- D – Hypertext has hyperlinks.Hypertext හි hyperlinks ඇත.
- A – <title> is in the head and shows on the tab.<title> head හි ඇති අතර tab එකේ පෙන්වයි.
- B – The body is the visible part.body යනු පෙනෙන කොටසයි.
- A – <br> only breaks the line, so it has no content.<br> පේළිය පමණක් බිඳියි, එබැවින් අන්තර්ගතයක් නැත.
- C – h1 is the biggest; h6 the smallest.h1 විශාලම; h6 කුඩාම.
- A – HTML5 uses the CSS style attribute.HTML5 CSS style attribute භාවිත කරයි.
- D – <sub> is subscript.<sub> යනු subscript.
- B – alt gives extra information inside the tag.alt tag එක තුළ අමතර තොරතුරු දෙයි.
- A – href = hypertext reference.href = hypertext reference.
- C – _blank means a new tab or window._blank යනු නව tab හෝ කවුළුවයි.
- C – ul = unordered list with bullets.ul = bullet සහිත අපිළිවෙළ ලැයිස්තුව.
- B – th = table heading cell.th = වගු මාතෘකා කොටුව.
- D – colspan joins columns across.colspan තීරු හරහා එකතු කරයි.
- 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ආදර්ශ පිළිතුර පෙන්වන්න
2Give two differences between hypertext and normal text.hypertext සහ සාමාන්ය පෙළ අතර වෙනස්කම් දෙකක් දෙන්න. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
3Write HTML for an ordered list of three fruits.පලතුරු තුනක පිළිවෙළ ලැයිස්තුවක් සඳහා HTML ලියන්න. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
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ආදර්ශ පිළිතුර පෙන්වන්න
5Explain the use of <tr>, <th>, <td> and colspan in a table.වගුවක <tr>, <th>, <td> සහ colspan භාවිතය පැහැදිලි කරන්න. (4 marksලකුණු 4)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
🎮 Game🎮 ක්රීඩා
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.
