InterviewSolution
Saved Bookmarks
| 1. |
Markdown Tables |
|||||||||||||||||||||||||||||
Answer»
<tr> <td> First Entry </td> <td> Second Entry </td> <td> Third Entry </td> </tr> </table> Output:
In the example, the text in the columns will get aligned to the side where we put the : symbol. If the : is put on both sides, the text will be centre aligned. No alignment appears the same as left align. | No Align | Right Align | Left Align | Center Align || -------- | -----------:|:---------- |:------------:| | 1 | 1 | 1 | 1 | | 11 | 11 | 11 | 11 | | 111 | 111 | 111 | 111 | | 1111 | 1111 | 1111 | 1111 | Output:
In this example, the use of the <br> tag is shown to build a table with multiple lines in a column. | Column 1 | Column 2 | Column 3 ||:--------:|:--------:|:---------------:| | A | B | C <br> D <br> E | Output:
|
||||||||||||||||||||||||||||||