Is the ordering of attribute values ever semantically or logically important.

For example, is there ever a practical difference between:

`<p class="a b">`
and
`<p class="b a">`

#HTML #CSS #JavaScript #WebDev

Here's another question. Is the ordering of HTML attributes semantically or logically important?

For example, is there ever a practical difference between:

`<p class="a" id="b">`
and
`<p id="b" class="a">`

Vote now!

One last question before I collapse from exhaustion.

Is this conformant with the HTML spec?
That is, will browsers correctly sniff the MIME type parameters?

<video>
<source src=movie.webm type="video/webm; codecs=&quot;vp8, vorbis&quot;">
</video>

Spec: mimesniff.spec.whatwg.org/#par

#WebDev #HTML

Yet more HTML brainteasers for you to argue over!

How do you feel about newlines in attribute values?

For example:
`<img alt="A kitten.
A puppy.">`

Or:
`<div class="cat
dog
horse">`

Is there ever a time when a newline *must not* be replaced by a space?

#WebDev #CSS #HTML

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.