A printer with a web server embedded therein and a printing method thereof
are provided. The printer includes a web server which generates a web
page, transmits the web page to a user's web server terminal, and
receives print data input in the web page by the user and a printing unit
which converts the print data received by the web server into printable
data. The web server includes a web page item setting unit which
automatically establishes selection categories and items for each of the
selection categories, a web page generation unit which generates a web
page according to the selection categories and the items for each of the
selection categories and a web page outputting unit which transmits the
web page to the user's web server terminal via the Internet. Accordingly,
it is possible to print data which is input by a user using a web page
provided by a web server installed in a printer, without a printer driver
or an application program.