Kasparov once said something like: "The number of positions in which a bishop is better a than knight is greater than the number of positions in which a knight is better than a bishop. That's why bishops are better than knights, in general".
As mentioned in other answers, general principle is that knights are usually superior in closed positions, where the advantage of being able to jump over pieces becomes more important than the long range bishops have.
Now, I am not a very good chess player, but I will give you my view on advantages and disadvantages of knights and bishops, and I will try to make it as concrete as possible. However "wrong" my views may seem to you (or objectively are), at least I hope it will be something for you to think about.
What I like about bishops:
- they can simultaneously play a defensive role and an attacking role;
- in an endgame (especially when there are only few pawns left, and not all on the same side of the board), bishop can be sacrificed "at the very last moment" meaning: you let your opponent spend a lot of moves to get her/his pawn(s) to the promotion square and then it disappears, all the while you use your bishop to nurse your pawn up the board; since knights are rather clumsy at stopping pawns alone, this is a significant factor around which one can make plans in an endgame; one of my favorite endgames ever is Fischer vs. Taimanov (excellently video-annotated here); the B vs N endgame appears on move 45;
[FEN ""]
[Event "Fischer - Taimanov Candidates Quarterfinal"]
[Site "Vancouver, Canada"]
[Date "1971.05.25"]
[EventDate "1971.05.16"]
[Round "4"]
[Result "1-0"]
[White "Robert James Fischer"]
[Black "Mark Taimanov"]
[ECO "B47"]
[WhiteElo "?"]
[BlackElo "?"]
[PlyCount "141"]
1. e4 c5 2. Nf3 Nc6 3. d4 cxd4 4. Nxd4 Qc7 5. Nc3 e6 6. g3 a6
7. Bg2 Nf6 8. O-O Nxd4 9. Qxd4 Bc5 10. Bf4 d6 11. Qd2 h6
12. Rad1 e5 13. Be3 Bg4 14. Bxc5 dxc5 15. f3 Be6 16. f4 Rd8
17. Nd5 Bxd5 18. exd5 e4 19. Rfe1 Rxd5 20. Rxe4+ Kd8 21. Qe2
Rxd1+ 22. Qxd1+ Qd7 23. Qxd7+ Kxd7 24. Re5 b6 25. Bf1 a5
26. Bc4 Rf8 27. Kg2 Kd6 28. Kf3 Nd7 29. Re3 Nb8 30. Rd3+ Kc7
31. c3 Nc6 32. Re3 Kd6 33. a4 Ne7 34. h3 Nc6 35. h4 h5
36. Rd3+ Kc7 37. Rd5 f5 38. Rd2 Rf6 39. Re2 Kd7 40. Re3 g6
41. Bb5 Rd6 42. Ke2 Kd8 43. Rd3 Kc7 44. Rxd6 Kxd6 45. Kd3 Ne7
46. Be8 Kd5 47. Bf7+ Kd6 48. Kc4 Kc6 49. Be8+ Kb7 50. Kb5 Nc8
51. Bc6+ Kc7 52. Bd5 Ne7 53. Bf7 Kb7 54. Bb3 Ka7 55. Bd1 Kb7
56. Bf3+ Kc7 57. Ka6 Nc8 58. Bd5 Ne7 59. Bc4 Nc6 60. Bf7 Ne7
61. Be8 Kd8 62. Bxg6 Nxg6 63. Kxb6 Kd7 64. Kxc5 Ne7 65. b4
axb4 66. cxb4 Nc8 67. a5 Nd6 68. b5 Ne4+ 69. Kb6 Kc8 70. Kc6
Kb8 71. b6 1-0
- in general one could say that bishops are more useful in endgame pawn races;
- the movement of the bishop is more natural (straight diagonal lines), and therefore easier to use and to visualize; this makes them also better team players; you may heard people saying "a rook and a bishop is better than a rook and a knight"; it is easier to coordinate rooks and bishops, bishops and bishops, and especially queens and bishops, than knights,
- bishops can dominate knights more easily than vice versa.
What I do not like about bishops:
- when not paired, they are limited to one color of the squares (obviously, this is not optimal)
- you cannot win an endgame with an a- or h- pawn, if you have the wrong-colored bishop.
What I like about knights:
each square on the board can be controlled by a knight;
they can be "eternal" (there is a notion of an "eternal knight", i.e. in a situation knight vs. bishop, there is often a possibility of establishing an outpost for the knight, where it is untouchable and this is often the beginning of a long positional domination of the side with the eternal knight); one of my favorite games demonstrating this is Fischer vs. Bolbochan (excellently commented here); the "eternal knight vs. bad bishop" situation appears after move 20;
[FEN ""]
[Event "Stockholm Interzonal"]
[Site "Stockholm, SWE"]
[Date "1962.03.03"]
[EventDate "1962.??.??"]
[Round "21"]
[Result "1-0"]
[White "Robert James Fischer"]
[Black "Julio Bolbochan"]
[ECO "B90"]
[WhiteElo "?"]
[BlackElo "?"]
[PlyCount "74"]
1.e4 {Notes by Bobby Fischer} c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4 Nf6
5.Nc3 a6 6.h3 Nc6 7.g4 Nxd4 8.Qxd4 e5 9.Qd3 Be7 {More accurate
is 9...B-K3 immediately.--Fischer} 10.g5 Nd7 11.Be3 Nc5 12.Qd2
Be6 13.O-O-O O-O 14.f3 Rc8 15.Kb1 {Amateurs are often puzzled
by this apparent loss of time. Actually it is a handy
defensive move, getting out of the pin on the QB-file which
could become annoying after ...P-QN4-5. One never knows when
lightning will strike! -- Fischer} Nd7 16.h4 b5 17.Bh3 Bxh3
18.Rxh3 Nb6 19.Bxb6 Qxb6 20.Nd5 {White has a strategically won
game; his Knight cannot be dislodged. -- Fischer} Qd8 21.f4
exf4 22.Qxf4 Qd7 23.Qf5 Rcd8 24.Ra3 Qa7 25.Rc3 g6 26.Qg4 Qd7
27.Qf3 Qe6 28.Rc7 Rde8 29.Nf4 Qe5 30.Rd5 Qh8 31.a3 h6 32.gxh6
Qxh6 33.h5 Bg5 34.hxg6 fxg6 35.Qb3 {The coup de
grace.--Fischer} Rxf4 36.Re5+ Kf8 37.Rxe8+ {Black
resigns. After 37...KxR; 38 Q-K6+, K-B1; 39 Q-B8+
mates.--Fischer} 1-0
they are more forcing pieces than bishops in the sense that you cannot block knights; if your king is in check from a knight, either you have to move your king, or take the knight, which reduces the number of resources for the defending king; you can see this theme especially in the games of the great champion Mikhail Tal;
their unusual movement generally offers more room for creativity; it often helps in creating unusual and visually spectacular attacks (again, see Tal's games---I am no expert, but he sacrificed knights maybe more often than any other piece);
white knights on the 6th rank (or black ones on the 3rd) are incredibly powerful; I assume you saw the 16th game of the 1985 WCC (Kasparov himself explains this game in his documentary---there is a portion of it on Youtube); while mere mortals can only dream of ever playing such a beautiful game, this is still good to have in mind as a potential threat; the mentioned situation appears after Black's 16th move; there the knight cuts off all of White's heavy pieces (such knight is popularly called an "octopus knight");
[FEN ""]
[Event "Wch Moscow i 40/202; YB 4/91"]
[Site "16"]
[Date "1985.10.15"]
[EventDate "?"]
[Round "16"]
[Result "0-1"]
[White "Anatoly Karpov"]
[Black "Garry Kasparov"]
[ECO "B44"]
[WhiteElo "?"]
[BlackElo "?"]
[PlyCount "80"]
1.e4 c5 2.Nf3 e6 3.d4 cxd4 4.Nxd4 Nc6 5.Nb5 d6 6.c4 Nf6 7.N1c3
a6 8.Na3 d5 9.cxd5 exd5 10.exd5 Nb4 11.Be2 Bc5 12.O-O O-O
13.Bf3 Bf5 14.Bg5 Re8 15.Qd2 b5 16.Rad1 Nd3 17.Nab1 h6 18.Bh4
b4 19.Na4 Bd6 20.Bg3 Rc8 21.b3 g5 22.Bxd6 Qxd6 23.g3 Nd7
24.Bg2 Qf6 25.a3 a5 26.axb4 axb4 27.Qa2 Bg6 28.d6 g4 29.Qd2
Kg7 30.f3 Qxd6 31.fxg4 Qd4+ 32.Kh1 Nf6 33.Rf4 Ne4 34.Qxd3 Nf2+
35.Rxf2 Bxd3 36.Rfd2 Qe3 37.Rxd3 Rc1 38.Nb2 Qf2 39.Nd2 Rxd1+
40.Nxd1 Re1+ 0-1
from White's point of view, getting a knight on f5 is a pretty good accomplishment; this is a good square because the knight is difficult to evict without creating serious weaknesses, and it is ready to sacrifice itself at any moment, so your opponent has to worry about it constantly (a good lecture about this can be found at the YouTube channel of Chess Club and Scholastic Center of Saint Louis)
What I do not like about knights:
I guess they are in general worse pieces than bishops; they are more difficult to manoeuvre, as they are slower than bishops, they also get stuck more easily than bishops (there are no "bishop on a rim..." sayings in chess)
pinning a knight is usually easier than pinning a bishop, and one has to look after knight pins, especially in certain openings, so you have to be more careful with knights, than with bishops in that respect.
That's it for now. I hope it will help. I just listed things as they came to my mind. It's neither meant to be comprehensive, not objectively correct. It's a list of subjective views. The question itself is quite general, so it's hard to give a concrete and objective answer.
But I do want to say that while it is good to have basic guidelines in chess for bishops, knights, and everything else, it is also important to think about them and try to evaluate them for yourself before accepting (or rejecting) them. Good luck!