I am making a react app where I have to add a full width horizontal line after and before the table header rows,How do I add it here?
return (
<div>
<table width="100%">
<tr>
<th>Name</th>
<th>Id</th>
<th>Age</th>
<th>Status</th>
<th>Sem</th>
<th>Time</th>
<th></th>
<th></th>
</tr>
{tasks.map((task, index) => (
<Task key={index} task={task} onDelete={onDelete} />
))}
</table>
</div>
);
};
here all the <th>
fields are headers,I have to add a horizontal line before the header row and one after the header row.
Can someone help? Thanks