I want to write HTML codes of two pages side by side in LaTeX like as follows:
<html> <html>
<head> <head>
</head> </head>
<body> <body>
... ...
</body> </body>
</html> </html>
I know how to include HTML code in LaTeX but I have no clue how will I achieve it. So if anyone please help me regarding this I will be grateful. Thank you.
EDIT: I have tried it with the help of table as shown below, but it is giving errors.
\begin{table}[htb]
\parbox{.45\linewidth}{
\centering
\begin{tabular}{c}
\begin{lstlisting}[language=html]
<html>
<head>
</head>
<body>
...
</body>
</html>
\end{lstlisting}
\end{tabular}
}
\hfill
\parbox{.45\linewidth}{
\centering
\begin{tabular}{c}
\begin{lstlisting}[language=html]
<html>
<head>
</head>
<body>
...
</body>
</html>
\end{lstlisting}
\end{tabular}
}
\end{table}

