Click Here to go Back on Main Page
1. HTML ਲਿਸਟਾਂ (Lists in HTML)
1. Working with Lists
HTML ਵਿੱਚ ਲਿਸਟਾਂ ਦੀ ਵਰਤੋਂ ਜਾਣਕਾਰੀ ਨੂੰ ਤਰਤੀਬਵਾਰ ਤਰੀਕੇ ਨਾਲ ਪੇਸ਼ ਕਰਨ ਲਈ ਕੀਤੀ ਜਾਂਦੀ ਹੈ। ਅਸੀਂ ਤਿੰਨ ਤਰ੍ਹਾਂ ਦੀਆਂ ਲਿਸਟਾਂ ਬਣਾ ਸਕਦੇ ਹਾਂ:
ਗੂਗਲ ਫਾਰਮ ਰਾਹੀਂ ਇਸ ਪਾਠ ਦੇ ਅਭਿਆਸ ਪ੍ਰਸ਼ਨਾਂ ਦਾ ਟੈਸਟ ਦੇਣ ਲਈ ਕਲਿੱਕ ਕਰੋ।HTML lists are used to present information in a well-formed way. We can create three types of lists in HTML:
Click here to give test of the back exercise questions of this lessonਅਨ-ਆਰਡਰਡ
(Unordered)
(Unordered)
Unordered
(Bullets)
(Bullets)
ਆਰਡਰਡ
(Ordered)
(Ordered)
Ordered
(Numbered)
(Numbered)
ਪਰਿਭਾਸ਼ਾ
(Definition)
(Definition)
Definition
(Terms)
(Terms)
- Unordered List (
<ul>): ਇਸਨੂੰ ਬੁਲੇਟਿਡ ਲਿਸਟ ਵੀ ਕਿਹਾ ਜਾਂਦਾ ਹੈ। ਇਸ ਵਿੱਚ ਕ੍ਰਮ (Order) ਮਹੱਤਵਪੂਰਨ ਨਹੀਂ ਹੁੰਦਾ। - Ordered List (
<ol>): ਇਸਨੂੰ ਨੰਬਰ ਲਿਸਟ ਵੀ ਕਿਹਾ ਜਾਂਦਾ ਹੈ। ਇਸ ਵਿੱਚ 1, 2, 3 ਜਾਂ A, B, C ਵਰਗੀ ਤਰਤੀਬ ਹੁੰਦੀ ਹੈ। - Definition List (
<dl>): ਇਹ ਸ਼ਬਦਾਂ ਅਤੇ ਉਹਨਾਂ ਦੀ ਪਰਿਭਾਸ਼ਾ ਲਿਖਣ ਲਈ ਵਰਤੀ ਜਾਂਦੀ ਹੈ।
- Unordered List (
<ul>): Also known as Bulleted List. Order implies no importance. - Ordered List (
<ol>): Also known as Numbered List (1, 2, 3 etc.). Order matters here. - Definition List (
<dl>): Used for terms and their definitions (like a dictionary).
2. HTML ਟੇਬਲ (Tables in HTML)
2. Working with Tables
ਟੇਬਲ ਦੀ ਵਰਤੋਂ ਡਾਟਾ ਨੂੰ ਰੋਅ (Rows) ਅਤੇ ਕਾਲਮ (Columns) ਵਿੱਚ ਦਿਖਾਉਣ ਲਈ ਕੀਤੀ ਜਾਂਦੀ ਹੈ।
Tables are used to arrange data into rows and columns.
ਟੇਬਲ ਬਣਤਰ (Table Structure)
| <TH> Heading | <TH> Heading |
| <TD> Data | <TD> Data |
Row created by <TR> tag
ਮੁੱਖ ਟੈਗ (Key Tags):
<table>: ਟੇਬਲ ਸ਼ੁਰੂ ਕਰਨ ਲਈ।<tr>: ਟੇਬਲ ਰੋਅ (Table Row) ਲਈ।<th>: ਟੇਬਲ ਹੈਡਿੰਗ (Heading) ਲਈ।<td>: ਟੇਬਲ ਡਾਟਾ (Cell Data) ਲਈ।
ਮਹੱਤਵਪੂਰਨ ਐਟ੍ਰੀਬਿਊਟ (Attributes):
- Cellpadding: ਸੈੱਲ ਦੇ ਬਾਰਡਰ ਅਤੇ ਟੈਕਸਟ ਵਿਚਕਾਰ ਦੂਰੀ।
- Cellspacing: ਦੋ ਸੈੱਲਾਂ ਦੇ ਵਿਚਕਾਰ ਦੂਰੀ।
- Colspan: ਕਾਲਮਾਂ ਨੂੰ ਜੋੜਨ (Merge) ਲਈ।
- Rowspan: ਰੋਅ (Rows) ਨੂੰ ਜੋੜਨ ਲਈ।
Key Tags:
<table>: Defines the table.<tr>: Defines a Table Row.<th>: Defines a Table Header.<td>: Defines Table Data (cell).
Important Attributes:
- Cellpadding: Space between cell border and content.
- Cellspacing: Space between two cells.
- Colspan: To merge columns horizontally.
- Rowspan: To merge rows vertically.
📸 ਮਹੱਤਵਪੂਰਨ ਤਸਵੀਰਾਂ (Images)
📸 Important Images
🎯 ਅਭਿਆਸ ਟੈਸਟ (Interactive Quiz)
🎯 Practice Quiz
ਹੇਠਾਂ ਦਿੱਤੇ 21 ਪ੍ਰਸ਼ਨ ਹੱਲ ਕਰੋ:
Attempt the following 21 questions:

Post a Comment