Refactor the Table Using Fragments

Learn how to remove duplication in the table using fragments.

We'll cover the following

So far, things already look pretty good in the browser, but we still have significant duplication in the <th> and <td> tags.

Creating fragments

Let’s create a few small fragments to avoid that. This is how the <th> tag is currently used:

Get hands-on with 1000+ tech skills courses.