Suppose that we wanted to create a table on a website like Wikipedia
What source code would produce a table such as the one shown below?:
| Fruit | NonFruitVegetable |
|---|---|
| CucumberFruit | SpinachLeavesandStems |
| TomatoFruit | SpinachLeavesandStems |
| ZucchiniFruit | CeleryLeavesandStems |
| AppleFruit | PotatoRoot |
| OrangeFruit | OnionRoot |
| CarrotRoots |
A correct answer to this question would an example of valid source code for a table.
We don't want pages and pages of documentation or explanation, just working functional code.
The following code is incorrect and contains some mistakes:
{| class="wikitable"
|+ Title Goes Here.
|-
! Fruit
! NonFruitVegetable
|-
| CucumberFruit
| TomatoFruit
| ZucchiniFruit
| AppleFruit
| OrangeFruit
|-
| SpinachLeavesandStems
| CeleryLeavesandStems
| PotatoRoot
| OnionRoot
| CarrotRoots
|}

As you wish:
Try it on mediawiki.org.
Explanation (just skip it if you don't want to read):
{|/|}<table></table>{| class="wikitable"<table class="wikitable">|+<caption></caption>|+ Foobar<caption>Foobar</caption>|-<tr></tr>|- class="row"<tr class="row"></tr>|<td></td>| rowspan="2"<td rowspan="2"></td>Reference: Help:Tables - mediawiki.org