File tree Expand file tree Collapse file tree 4 files changed +107
-110
lines changed
Expand file tree Collapse file tree 4 files changed +107
-110
lines changed Original file line number Diff line number Diff line change 11<!DOCTYPE HTML>
22< html >
33< body >
4- The truth about elk .
4+ ਐਲਕ ਬਾਰੇ ਸੱਚਾਈ .
55 < ol >
6- < li > An elk is a smart </ li >
6+ < li > ਏਲਕ ਚੁਸਤ ਹੈ </ li >
77 <!-- comment -->
8- < li > ...and cunning animal !</ li >
8+ < li > ...ਅਤੇ ਚਲਾਕ ਜਾਨਵਰ !</ li >
99 </ ol >
1010</ body >
1111</ html >
Original file line number Diff line number Diff line change 1- We'll be using ` rows ` and ` cells ` properties to access diagonal table cells .
1+ ਅਸੀਂ ਇਸਤੇਮਾਲ ਕਰਾਂਗੇ ` rows ` ਅਤੇ ` cells ` properties ਡੀਗੋਨਲ ਟੇਬਲ ਸੈੱਲਾਂ ਤਕ ਪਹੁੰਚਣ ਲਈ .
Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ importance: 5
22
33---
44
5- # Select all diagonal cells
5+ # ਸਾਰੇ ਵਿਕਰਣ ਸੈੱਲਾਂ ਦੀ ਚੋਣ ਕਰੋ
66
7- Write the code to paint all diagonal table cells in red .
7+ ਸਾਰੇ ਡਿਗੋਨਲ ਟੇਬਲ ਸੈੱਲਸ ਨੂੰ ਲਾਲ ਰੰਗਣ ਲਈ ਕੋਡ ਲਿਖੋ .
88
9- You'll need to get all diagonal ` <td> ` from the ` <table> ` and paint them using the code :
9+ ਤੁਹਾਨੂੰ ਸਾਰੇ ਡਿਗੋਨਲ ਪ੍ਰਾਪਤ ਕਰਨ ਦੀ ਜ਼ਰੂਰਤ ਹੋਏਗੀ ` <td> ` ਤੋਂ ` <table> ` ਤੱਕ ਅਤੇ ਕੋਡ ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਉਨ੍ਹਾਂ ਨੂੰ ਪੇਂਟ ਕਰੋ :
1010
1111``` js
12- // td should be the reference to the table cell
12+ // td ਟੇਬਲ ਸੈੱਲ ਦਾ ਹਵਾਲਾ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ
1313td .style .backgroundColor = ' red' ;
1414```
1515
16- The result should be :
16+ ਨਤੀਜਾ ਇਹ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ :
1717
1818[ iframe src="solution" height=180]
You can’t perform that action at this time.
0 commit comments