Contact us


public class Contact UsPageGenerator { public static void main(String[] args) { String html = generate HTML(); String css = generateCSS(); String combinedCode = html + "\n\n" + ""; System.out.println(combinedCode); } public static String generate HTML() { String html = "\n" + "\n" + "\n" + " Contact Us\n" + " \n" + "\n" + "\n" + "
\n" + "

Contact Us

\n" + "
\n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "
\n" + "
\n" + "\n" + ""; return html; } public static String generateCSS() { String css = "body {\n" + " font-family: Arial, sans-serif;\n" + "}\n" + "\n" + ".container {\n" + " width: 500px;\n" + " margin: 0 auto;\n" + " text-align: center;\n" + " padding: 20px;\n" + " border: 1px solid #ccc;\n" + " border-radius: 5px;\n" + "}\n" + "\n" + "form {\n" + " display: flex;\n" + " flex-direction: column;\n" + " align-items: center;\n" + "}\n" + "\n" + "label {\n" + " margin-top: 10px;\n" + "}\n" + "\n" + "input, textarea {\n" + " margin-top: 5px;\n" + " width: 100%;\n" + " padding: 5px;\n" + " font-size: 16px;\n" + "}\n" + "\n" + "input[type=\"submit\"] {\n" + " margin-top: 10px;\n" + " width: 100px;\n" + " padding: 10px;\n" + " font-size: 16px;\n" + "}"; return css; } }