# Draw Horizontal line between rows in latex table

i want to draw horizontal lines between rows in the table.

I have tried like this so far,

\begin{tabular}{|c|c|}
\hline
attribute& Art. 16.1.b\&c Aggregated generation per type\\
\hline
DocumentType& A75:actual generation per type A74:wind and solar generation\\
ProcessType& A16:realised\\
In\_Domain& Used\\
PsrType& May be used\\
TimeInterval& Used\\
\hline
\end{tabular}


This output i am getting

https://ibb.co/89dBZGN

Thanks got the expected result:

\begin{tabular}{|c|c|}
\hline
attribute& Art. 16.1.b\&c Aggregated generation per type\\
\hline
DocumentType& A75:actual generation per type A74:wind and solar generation\\
\hline
ProcessType& A16:realised\\
\hline
In\_Domain& Used\\
\hline
PsrType& May be used\\
\hline
TimeInterval& Used\\
\hline
\end{tabular}


Thanks.

• Have you tried adding additional \hline commands? Dec 3, 2018 at 13:57
• @chrisma yes i have got the result after using the \hline. Dec 3, 2018 at 14:05

Additional horizontal lines can be added by using the \hline command between rows, just as the top and bottom lines were added.

\documentclass{article}
\begin{document}

\begin{tabular}{|c|c|}
\hline
attribute& Art. 16.1.b\&c Aggregated generation per type\\
\hline
DocumentType& A75:actual generation per type A74:wind and solar generation\\
\hline
ProcessType& A16:realised\\
\hline
\end{tabular}

\end{document}


• \hline must be preceded by double backslash except the first one. However, I omitted the last \\ May 15 at 10:14