Please read the following table in HTML format from a webpage and then answer the question in detail according to the table. Each table cell is defined by a <td> and a </td> tag. Each table row starts with a <tr> and ends with a </tr> tag. 'rowspan=m' and 'colspan=n' represents a cell spaning over 'm' rows and 'n' columns.

Webpage title:
Jacob Rees-Mogg
Table title:
Electoral history
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=2 rowspan=1 > Party </th><th colspan=1 rowspan=1 > Candidate </th><th colspan=1 rowspan=1 > Votes </th><th colspan=1 rowspan=1 > % </th><th colspan=1 rowspan=1 > ± </th></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Conservative </td><td class="highlighted"  colspan=1 rowspan=1 > Jacob Rees-Mogg </td><td colspan=1 rowspan=1 > 21,130 </td><td colspan=1 rowspan=1 > 41.3 </td><td colspan=1 rowspan=1 > +2.2 </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Labour </td><td colspan=1 rowspan=1 > Dan Norris </td><td colspan=1 rowspan=1 > 16,216 </td><td colspan=1 rowspan=1 > 31.7 </td><td colspan=1 rowspan=1 > −7.0 </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Liberal Democrat </td><td colspan=1 rowspan=1 > Gail Coleshill </td><td colspan=1 rowspan=1 > 11,433 </td><td colspan=1 rowspan=1 > 22.3 </td><td colspan=1 rowspan=1 > +2.7 </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > UKIP </td><td colspan=1 rowspan=1 > Peter Sandell </td><td colspan=1 rowspan=1 > 1,754 </td><td colspan=1 rowspan=1 > 3.4 </td><td colspan=1 rowspan=1 > +1.2 </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Green </td><td colspan=1 rowspan=1 > Michael Jay </td><td colspan=1 rowspan=1 > 670 </td><td colspan=1 rowspan=1 > 1.3 </td><td colspan=1 rowspan=1 > +1.3 </td></tr>
<tr> <th colspan=3 rowspan=1 > Majority </th><td class="highlighted"  colspan=1 rowspan=1 > 4,914 </td><td colspan=1 rowspan=1 > 9.6 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <th colspan=3 rowspan=1 > Turnout </th><td colspan=1 rowspan=1 > 51,203 </td><td colspan=1 rowspan=1 > 76.0 </td><td colspan=1 rowspan=1 > +4.5 </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=2 rowspan=1 > Conservative gain from Labour </td><th colspan=1 rowspan=1 > Swing </th><td colspan=1 rowspan=1 > +4.6 </td><td colspan=1 rowspan=1 >  </td></tr>
</table>
Question:
How did Rees-Mogg do in the election?
Answer:
Rees-Mogg won with a majority of 4,914 votes.