diff --git a/resources/index.html b/resources/index.html
index e0a4235..88c5c8d 100644
--- a/resources/index.html
+++ b/resources/index.html
@@ -5,23 +5,23 @@
 <html lang="en">
 
 <head>
-    <meta charset="UTF-8">
+    <meta charset="UTF-8" />
     <meta name="viewport"
-        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
-    <meta http-equiv="X-UA-Compatible" content="ie=edge">
+        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
+    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
 
     <title>Chhoto URL</title>
-    <meta name="description" content="A simple selfhosted URL shortener with no unnecessary features.">
-    <meta name="keywords" content="url shortener, link shortener, self hosted, open source">
-    <link rel="icon" type="image/x-icon" href="assets/favicon.ico" sizes="any">
-    <link rel="icon" type="image/svg+xml" href="assets/favicon.svg">
-    <link rel="icon" type="image/png" href="assets/favicon-32.png" sizes="32x32">
-    <link rel="icon" type="image/png" href="assets/favicon-196.png" sizes="196x196">
+    <meta name="description" content="A simple selfhosted URL shortener with no unnecessary features." />
+    <meta name="keywords" content="url shortener, link shortener, self hosted, open source" />
+    <link rel="icon" type="image/x-icon" href="assets/favicon.ico" sizes="any" />
+    <link rel="icon" type="image/svg+xml" href="assets/favicon.svg" />
+    <link rel="icon" type="image/png" href="assets/favicon-32.png" sizes="32x32" />
+    <link rel="icon" type="image/png" href="assets/favicon-196.png" sizes="196x196" />
 
     <script src="static/script.js"></script>
     <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.1/build/pure-min.css"
-        integrity="sha384-oAOxQR6DkCoMliIh8yFnu25d7Eq/PHS21PClpwjOTeU2jRSq11vu66rf90/cZr47" crossorigin="anonymous">
-    <link rel="stylesheet" type="text/css" target="_blank" href="static/styles.css">
+        integrity="sha384-oAOxQR6DkCoMliIh8yFnu25d7Eq/PHS21PClpwjOTeU2jRSq11vu66rf90/cZr47" crossorigin="anonymous" />
+    <link rel="stylesheet" type="text/css" target="_blank" href="static/styles.css" />
 </head>
 
 <body>
diff --git a/resources/static/404.html b/resources/static/404.html
index 16897cb..98e5767 100644
--- a/resources/static/404.html
+++ b/resources/static/404.html
@@ -6,17 +6,30 @@
 
 <head>
     <title>Error 404</title>
-    <link rel="icon" href="data:;base64,iVBORw0KGgo=">
+    <link rel="icon" href="data:;base64,iVBORw0KGgo=" />
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport"
+    content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
 </head>
 
 <style>
+    body {
+        text-align: center;
+    }
     #quote {
         text-indent: 4em;
     }
+
+    /* Settings for mobile devices */
+    @media (pointer:none),
+    (pointer:coarse) {
+        body {
+            text-align: left;
+        }
+    }
 </style>
 
-<body style="text-align: center;">
+<body>
     <h1>Error 404!</h1>
     <div style="display: inline-block; text-align:left;">
         <p>You step in the stream,</p>