HTML Table - Border around specific group of cells in a table

I have a border-less table with 12 columns and 5 rows.

I need the block of cells mentioned below to be surrounded  by border (NOT THE INDIVIDUAL CELL). See attachment for illustration)
cell 1, 2, 6, 7, 11, 12
cell 21,22
cell 41, 42
cell 51, 52,56, 57
cell 4, 5, 9,10, 14,15, 19, 20, 24, 25
cell 54, 55, 59, 60

Any help is greatly appreciated

<table>
      <tbody>
            <tr>
                  <td>1</td>
                  <td>2</td>
                  <td>3</td>
                  <td>4</td>
                  <td>5</td>
            </tr>
            <tr>
                  <td>6</td>
                  <td>7</td>
                  <td>8</td>
                  <td>9</td>
                  <td>10</td>
            </tr>
            <tr>
                  <td>11</td>
                  <td>12</td>
                  <td>13</td>
                  <td>14</td>
                  <td>15</td>
            </tr>
            <tr>
                  <td>16</td>
                  <td>17</td>
                  <td>18</td>
                  <td>19</td>
                  <td>20</td>
            </tr>
            <tr>
                  <td>21</td>
                  <td>22</td>
                  <td>23</td>
                  <td>24</td>
                  <td>25</td>
            </tr>
            <tr>
                  <td>26</td>
                  <td>27</td>
                  <td>28</td>
                  <td>29</td>
                  <td>30</td>
            </tr>
            <tr>
                  <td>31</td>
                  <td>32</td>
                  <td>33</td>
                  <td>34</td>
                  <td>35</td>
            </tr>
            <tr>
                  <td>36</td>
                  <td>37</td>
                  <td>38</td>
                  <td>39</td>
                  <td>40</td>
            </tr>
            <tr>
                  <td>40</td>
                  <td>42</td>
                  <td>43</td>
                  <td>44</td>
                  <td>45</td>
            </tr>
            <tr>
                  <td>46</td>
                  <td>47</td>
                  <td>48</td>
                  <td>49</td>
                  <td>50</td>
            </tr>
            <tr>
                  <td>51</td>
                  <td>52</td>
                  <td>53</td>
                  <td>54</td>
                  <td>55</td>
            </tr>
            <tr>
                  <td>56</td>
                  <td>57</td>
                  <td>58</td>
                  <td>59</td>
                  <td>60</td>
            </tr>
      </tbody>
</table>
Capture.PNG
Errol FarroAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
What is the application  - will the same cells always require the border or will it change?
Errol FarroAuthor Commented:
The application is COldfusion. However, Coldfusion interpret HTML without a problem.

The same cells will require the border
Julian HansenCommented:
No I meant how the page will be used - what will it be used for.

If it is the same cells can you not just create 4 classes and assign those to the respective cells
.border-top {
   border-top: 1px solid black;
}
.border-left {
  border-left: 1px solid black;
}
.border-bottom {
  border-bottom: 1px solid black;
}
.border-right {
  border-right: 1px solid black;
}

Open in new window

Sample Table Code
  <table style="width:50%">
    <tbody>
      <tr>
          <td class="border-top border-left">1</td>
          <td class="border-top border-right">2</td>
          <td>3</td>
          <td class="border-top border-left">4</td>
          <td class="border-top border-right">5</td>
      </tr>

Open in new window

Sample here

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.