Minor HTML standards improvement per Chrome

This commit is contained in:
Sean Owen 2020-05-13 14:12:15 -05:00
parent 78ccf2323f
commit 05abe0f7aa
4 changed files with 12 additions and 8 deletions

View file

@ -49,7 +49,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.2.2.RELEASE</version>
<version>5.2.6.RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>

View file

@ -18,9 +18,11 @@
<jsp:directive.page contentType="text/html" session="false"/>
<jsp:scriptlet>response.setHeader("Cache-Control", "public");</jsp:scriptlet>
<jsp:text><![CDATA[<!DOCTYPE html>]]></jsp:text>
<html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="description" content="Online barcode decoder from the ZXing project"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>ZXing Decoder Online</title>
<link rel="stylesheet" href="style.css" type="text/css"/>
</head>
@ -58,15 +60,15 @@
<table id="upload">
<form action="decode" method="get">
<tr>
<td style="text-align:right">Enter an image URL:</td>
<td><input type="text" size="80" name="u"/></td>
<td style="text-align:right">Enter an <label for="u">image URL</label>:</td>
<td><input type="text" size="80" name="u" id="u"/></td>
<td><input type="submit"/></td>
</tr>
</form>
<form action="decode" method="post" enctype="multipart/form-data">
<tr>
<td style="text-align:right">Or upload a file (&amp;lt;10MB, &amp;lt;10MP):</td>
<td><input type="file" name="f"/></td>
<td style="text-align:right">Or <label for="f">upload a file</label> (&amp;lt;10MB, &amp;lt;10MP):</td>
<td><input type="file" name="f" id="f"/></td>
<td><input type="submit"/></td>
</tr>
</form>

View file

@ -27,12 +27,13 @@
response.setHeader("X-Robots-Tag", "none");
</jsp:scriptlet>
<jsp:text><![CDATA[<!DOCTYPE html>]]></jsp:text>
<html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="robots" content="none"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Decode Succeeded</title>
<link rel="stylesheet" href="style.css" type="text/css"/>
<link rel="stylesheet" href="style.css" type="text/css"/>
<style type="text/css">
td { vertical-align: top; padding: 0.1in; background-color: #EEEEEE; font-family: monospace; }
</style>

View file

@ -20,6 +20,7 @@
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>${requestScope['title']}</title>
<link rel="stylesheet" href="style.css" type="text/css"/>
</head>