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:
Mehcad Brooks
Table title:
Television
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=1 rowspan=1 > Year </th><th colspan=1 rowspan=1 > Title </th><th colspan=1 rowspan=1 > Role </th><th colspan=1 rowspan=1 > Notes </th></tr>
<tr> <td colspan=1 rowspan=2 > 2002 </td><td colspan=1 rowspan=1 > Do Over </td><td colspan=1 rowspan=1 > Shawn Hodges </td><td colspan=1 rowspan=1 > Episode: "Take Me Out of the Ball Game" </td></tr>
<tr> <td colspan=1 rowspan=1 > Malcolm in the Middle </td><td colspan=1 rowspan=1 > Big kid </td><td colspan=1 rowspan=1 > Episode: "Stupid Girl" </td></tr>
<tr> <td colspan=1 rowspan=2 > 2003 </td><td colspan=1 rowspan=1 > Boston Public </td><td colspan=1 rowspan=1 > Russell Clark </td><td colspan=1 rowspan=1 > 4 episodes </td></tr>
<tr> <td colspan=1 rowspan=1 > One on One </td><td colspan=1 rowspan=1 > Mustafa </td><td colspan=1 rowspan=1 > Episode: "2 Young, 2 Curious" </td></tr>
<tr> <td colspan=1 rowspan=2 > 2004 </td><td colspan=1 rowspan=1 > Cold Case </td><td colspan=1 rowspan=1 > Herman Lester </td><td colspan=1 rowspan=1 > Episode: "The Lost Soul of Herman Lester" </td></tr>
<tr> <td colspan=1 rowspan=1 > Tiger Cruise </td><td colspan=1 rowspan=1 > Kenny </td><td colspan=1 rowspan=1 > TV movie </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > 2005–2006 </td><td class="highlighted"  colspan=1 rowspan=1 > Desperate Housewives </td><td class="highlighted"  colspan=1 rowspan=1 > Matthew Applewhite </td><td colspan=1 rowspan=1 > 23 episodes </td></tr>
<tr> <td colspan=1 rowspan=1 > 2006 </td><td colspan=1 rowspan=1 > Ghost Whisperer </td><td colspan=1 rowspan=1 > Justin Cotter </td><td colspan=1 rowspan=1 > Episode: "Giving Up the Ghost" </td></tr>
<tr> <td colspan=1 rowspan=1 > 2007–2008 </td><td colspan=1 rowspan=1 > K-Ville </td><td colspan=1 rowspan=1 > Vin Bear </td><td colspan=1 rowspan=1 > Episode: "Critical Mass" Episode: "Game Night" </td></tr>
<tr> <td colspan=1 rowspan=1 > 2008 </td><td class="highlighted"  colspan=1 rowspan=1 > The Game </td><td class="highlighted"  colspan=1 rowspan=1 > Jerome "Jerry" Wright </td><td colspan=1 rowspan=1 > 7 episodes </td></tr>
<tr> <td colspan=1 rowspan=1 > 2008–2010 </td><td colspan=1 rowspan=1 > True Blood </td><td colspan=1 rowspan=1 > Eggs </td><td colspan=1 rowspan=1 > 14 episodes </td></tr>
<tr> <td colspan=1 rowspan=1 > 2009 </td><td colspan=1 rowspan=1 > Dollhouse </td><td colspan=1 rowspan=1 > Sam Jennings </td><td colspan=1 rowspan=1 > Episode: "Echoes" </td></tr>
<tr> <td colspan=1 rowspan=2 > 2010 </td><td colspan=1 rowspan=1 > The Deep End </td><td colspan=1 rowspan=1 > Malcolm Bennett </td><td colspan=1 rowspan=1 > 6 episodes </td></tr>
<tr> <td colspan=1 rowspan=1 > My Generation </td><td colspan=1 rowspan=1 > Rolly Marks </td><td colspan=1 rowspan=1 > 5 episodes </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > 2011–2013 </td><td class="highlighted"  colspan=1 rowspan=1 > Necessary Roughness </td><td class="highlighted"  colspan=1 rowspan=1 > Terrence King </td><td colspan=1 rowspan=1 > 38 episodes </td></tr>
<tr> <td colspan=1 rowspan=1 > 2011 </td><td colspan=1 rowspan=1 > Law & Order: Special Victims Unit </td><td colspan=1 rowspan=1 > Prince Miller </td><td colspan=1 rowspan=1 > Episode: "Personal Fouls" </td></tr>
<tr> <td colspan=1 rowspan=1 > 2012 </td><td colspan=1 rowspan=1 > Alcatraz </td><td colspan=1 rowspan=1 > Matt Tanner </td><td colspan=1 rowspan=1 > Episode: "Paxton Petty" </td></tr>
<tr> <td colspan=1 rowspan=1 > 2015–present </td><td colspan=1 rowspan=1 > Supergirl </td><td colspan=1 rowspan=1 > James Olsen / Guardian </td><td colspan=1 rowspan=1 > Main role </td></tr>
</table>
Question:
Mehcad Brooks appeared as who in what show from 2005–2006, and who in what show from 2011 to 2013?
Answer:
Mehcad Brooks appeared as Matthew Applewhite in the Desperate Housewives from 2005 to2006 and Terrance King in the Necessary Roughness from 2011 to 2013.