Change DOCTYPE to HTML5 and make index.html conform.
Mainly involves: * adding `alt` attributes to all `<img>` and `<input type="image">` elements, at least empty ones, * adding `src` attributes to all `<img>` and `<input type="image">` elements. Uses a transparent image as a placeholder. blankcard.jpg is not needed; the card elements have backgrounds (which should be white, not off-white like name labels and speech bubbles), * fixing duplicate `id`s (partly by deleting the old individual filter modal), Other errors: * `<button>` mustn't contain block elements * boolean attributes, like `disabled`, do not take `true` and `false` as their values; they are true by existing, and if they have a value, it must be the same as the attribute name. * `<label>` can only contain one labelable control. * `<p>` can only contain inline elements and text. * `<ul>` must contain `<li>` elements. * `&` should be encoded as `&`. Side effect: * Switching to HTML5 seems to add vertical space between lines of inline-block elements. The selection cards on the individual select screen were changed from `display: inline-block` to `float: left`.
Showing
- css/spni.css 10 additions, 14 deletionscss/spni.css
- img/blank.png 3 additions, 0 deletionsimg/blank.png
- index.html 200 additions, 281 deletionsindex.html
- js/spniCore.js 5 additions, 3 deletionsjs/spniCore.js
- js/spniDisplay.js 10 additions, 3 deletionsjs/spniDisplay.js
- js/spniGame.js 3 additions, 2 deletionsjs/spniGame.js
- js/spniPoker.js 13 additions, 7 deletionsjs/spniPoker.js
- js/spniSelect.js 6 additions, 2 deletionsjs/spniSelect.js
Loading
Please register or sign in to comment