samples: webusb: Fix HTML validator issues

Running the HTML code through W3C Validator revealed several issues with
the markup that this commit fixes.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2023-09-14 17:39:04 +02:00 committed by Carles Cufí
commit c702b03abd

View file

@ -1,9 +1,9 @@
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<title>WebUSB Serial Sample Application</title>
</head>
<body>
<script>
var serial = {};
@ -109,17 +109,18 @@ window.onload = _ => {
}
document.querySelector("#submit").onclick = () => {
let source = document.querySelector("#editor").value;
let source = document.querySelector("#input").value;
send(source);
}
}
</script>
<button id="connect" style="visibility: initial">Connect To WebUSB Device</button>
<br><br><label for="title">Sender: </label> <br>
<textarea id="editor", rows="25" cols="80" id="source">WebUSB!</textarea>
<br><br><label for="input">Sender: </label> <br>
<textarea id="input" rows="25" cols="80">WebUSB!</textarea>
<br><button id="submit">Send</button>
<br><br>
<label for="title">Receiver: </label> </br>
<textarea id="output", rows="25" cols="80" id="source"></textarea>
<label for="output">Receiver: </label> <br>
<textarea id="output" rows="25" cols="80"></textarea>
</body>
</html>