<!DOCTYPE html>
<style>
td::before { content: "Test"; display: inline-block; border: 3px solid black }
</style>
<table>
<tr>
<td width="300"></td>
</tr>
</table>