[w3ctag/design-reviews] HTML attribute for template URLs? (Discussion #1123)

Per https://www.w3.org/TR/design-principles/#naming-of-url-attributes , attributes for URLs should be called `href` or `src` unless there is good reason.

MapML uses `tref` for URL templates like : https://maps4html.org/MapML-Specification/spec/#the-link-element-0

Example:

```html
<maplink rel="tile" tref="https://tile.openstreetmap.org/{z}/{x}/{y}.png"></maplink>
```

Should they be using `href` instead? Is there any guidance or precedent for attributes containing URL templates?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/discussions/1123
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/repo-discussions/1123@github.com>

Received on Monday, 21 July 2025 03:32:33 UTC