Misplaced \noalign \hline

Use \hrulefill outside tabular environment for horizontal line and for a constant space in a table column, give it in the declaration line as follows:

\documentclass{article}
\usepackage{hyperref}
\begin{document}
\noindent  \LARGE{\textbf{John Smith}} 

\noindent\hrulefill 

\normalsize

\begin{center}
\begin{tabular}{l @{\hskip1in}l}
Name of University    &  \href{mailto:[email protected]}     {[email protected]} \\
Department/Institution    &   \href{www.johnsmith.com} {www.johnsmith.com}   \\
Address             &  Skype: Absender  \\ %%removed \ from \Absender
City Name, State 12345-6789 &  Phone: +1 (123) 456-7899 \\
\end{tabular}
\end{center}
\end{document}

Output:

enter image description here


I came across this, I missed the linebreak \\ at the end of the row before the \hline.

Tags:

Rules

Errors