හෙලෝ යාලුවනේ! 👋
ඔයාලා දැන් HTML structure එකත්, text formatting, images, links ගැනත් දැනගෙන ඉන්නවා නේද? දැන් අපි බලමු කොහොමද ලැයිස්තු (lists) 📝 සහ වගු (tables) 📊 HTML වලින් හදන්නේ කියලා!
HTML වලින් ලැයිස්තු හදන විදිහ තියෙන්නේ පහසුයි. මූලිකවම lists දෙකක් තියෙනවා:
<ul>
+ <li>
<h3>මගේ කැමති කෑමන් 🍛</h3> <ul> <li>Rice 🍚</li> <li>Fried Chicken 🍗</li> <li>Ice Cream 🍨</li> </ul>
🟢 මෙකේ output එක:
<ol>
+ <li>
<h3>දවසේ වැඩ 🕒</h3> <ol> <li>උදේ නැගීම ⏰</li> <li>Brush කිරීම 🪥</li> <li>Code ලියන එක 💻</li> </ol>
🔢 මෙකේ output එක:
<ul> <li>ආහාර 🍴 <ul> <li>Rice 🍚</li> <li>Noodles 🍜</li> </ul> </li> <li>පානීය 🍹</li> </ul>
HTML Table එකක් කියන්නේ කණ්ණාඩි මෙන් වැදගත් data display කරන්න ගොඩක් වැදගත් උපාංගයක්.
<table>
වගුව start කරන්න <tr>
row එකක් <th>
heading cell එකක් (bold + center) <td>
data cell එකක් 📋 උදාහරණය:<h3>LK Tech පන්ති වාරය 📅</h3> <table border="1"> <tr> <th>දිනය</th> <th>විෂයය</th> <th>වේලාව</th> </tr> <tr> <td>සඳුදා</td> <td>HTML</td> <td>6PM</td> </tr> <tr> <td>බදාදා</td> <td>CSS</td> <td>6PM</td> </tr> </table>
📌 border="1"
කියන්නෙ line එකක් draw කරන්න කියන එක.
<!DOCTYPE html> <html> <head> <title>HTML Lesson 3</title> </head> <body> <h2>🍱 මගේ කැමති කෑම ලැයිස්තුව</h2> <ul> <li>Rice 🍚</li> <li>Fried Fish 🐟</li> <li>Ice Cream 🍨</li> </ul> <h2>📋 අද වැඩ ලැයිස්තුව</h2> <ol> <li>Brush 🪥</li> <li>Code 💻</li> <li>Read 📖</li> </ol> <h2>📊 LK Tech පන්ති වගුව</h2> <table border="1"> <tr> <th>දිනය</th> <th>විෂයය</th> <th>වේලාව</th> </tr> <tr> <td>සඳුදා</td> <td>HTML</td> <td>6PM</td> </tr> <tr> <td>අඟහ</td> <td>CSS</td> <td>6PM</td> </tr> </table> </body> </html>
<ul>
, <ol>
, <li>
– Lists<table>
, <tr>
, <th>
, <td>
– Tablesඅපි බලමු කොහොමද user input එකක් collect කරන්න HTML form එකක් හරහා — text fields, buttons, radio buttons, checkboxes, සහ submit button එක ❤️
👀 බලලා හොඳයිද කියලා කියන්න! ඊළඟ එක form එක ද? 😁📨
Member since 2025-04-09 13:55:06
Comments
Please login to post a comment.
No comments yet. Be the first to comment!