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