photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

277
active users

#html

22 posts19 participants0 posts today

I’m fortunate to have worked with a lot of amazing designers over the years. Some were curious about designing in the browser with basic #HTML and #CSS, but weren’t sure where to begin, or felt discouraged by a lot of developer-centric content.

This is the advice I gave that seemed to resonate most: cloudfour.com/thinks/designing

The author smiles warmly next to five floating icons representing concepts from this article
Cloud Four · Designing in the Browser: Five Tips for Beginners
More from Tyler Sticka
Continued thread

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?

Continued thread

OK! I am now *moderately* confident that my #HTML Pretty Printer works. So I'm looking for feedback 🙂

Here's how you can help:

1. Visit shkspr.mobi/blog/random and view the source. Let me know if it looks weird please!
2. Contribute test cases either at gitlab.com/edent/pretty-print- or by sending me some complicated HTML.
3. Tell me how useful you think this is.

THANKS GANG!

Terence Eden’s Blog · Minimum Viable Clustered-Marker Globe using OpenFreeMap and MapLibre GL
More from Terence Eden

Prismic.io has published a collection of lists for many types of css/javascript/svg driven animations to enhance your web apps' user experience. Each example includes real-world use cases and clear code examples in the appropriate languages.

The collection includes:

1. Text Animations
2. Hover Effects
3. Button Animations
4. Background Effects, and
5. Image Effects

"CSS Animation Collection: 150+ Examples & Code"

prismic.io/guides/css-animatio

New Kitten release

• Fix: messages that are promises are properly awaited before being sent.

kitten.small-web.org

Kitten automatically and transparently handles asynchronous content in your templates for you so you don’t have to worry about it. One place where this wasn’t working properly is if you addressed `this.component` to stream a custom update of your component manually instead of calling the `this.update()` method of Kitten component instances.

e.g.,

```js
export default class AdminPage extends kitten.Page {
// …
onSelectedPost (data) {
this.send(kitten.html`<${this.component} postId='${data.selectedPost.postId}' />`)
}
}
```

:kitten:💕

Continued thread

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

mimesniff.spec.whatwg.orgMIME Sniffing Standard

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">`