4 ms·
I've pondered exactly that. After a previous HN thread, I tried my hand at writing a specification that was minimal as possible but followed HTML5. For example
by elcritch 5y ago
I've pondered exactly that. After a previous HN thread, I tried my hand at writing a specification that was minimal as possible but followed HTML5. For example many end tags are optional like `tr` and `td` end tags. Though I pulled in RDFa for richer data types.
Here's the GitHub repo for what I like to call HSV5: https://github.com/elcritch/hsv5/blob/main/README.md https://github.com/elcritch/hsv5/blob/main/README.md ;)
And an example of the format, pretty similar to yours:
<!doctype html>
<html vocab="https://hsv5.org/" typeof="hsv5" lang="en">
<title>sensor data @ 2020-05-26T00:00:00.000Z</title>
<table>
<thead>
<tr>
<th property="time/iso">Timestamp
<th property="temperature/celsius" datatype="f32">Temperature
<th property="humidity/percent" datatype="f32">Humidity
<th property="pressure/kPa" datatype="f32">Pressure
<tbody>
<tr>2020-05-26T00:00:00.000Z<td>8.32<td>75.5<td>102073
<tr>2020-05-26T00:01:00.000Z<td>8.31<td>NaN<td>102074
<tr>2020-05-26T00:02:00.000Z<td>8.31<td>75.4<td>102074
<tr>2020-05-26T00:03:00.000Z<td>8.30<td>75.4<td>102074
<table>