I want something like this
<head>
<script src='' type=''>
<link rel="contents" href>
<body>
<a href>data</a>
<img src="">
<iframe src="">
<form href>
<input>
hrefs are about pointing at other resources
-
sometimes they're related to this thing ()
-
sometimes they're just related to a piece of data ()
-
there's also instructions on where to place the content after navigation (_target)
src is about including other resources in this one
- sometimes its within this context (
)
- sometimes it makes its own context (<iframe>)
form is about making templates to do stuff, using basic UI controls
- send data to make a resource (POST/PUT)
- craft a query to retrieve data (GET)
You don't tend to mix all of these elements together on a single web page,
yet many of the hypermedia formats tend to do that, resulting in JSON results
that feel a bit awkward.
link's best use, in my opinion, is in Atom Pub
- navigating a complex hierarchy is really only done using a few standard verbs
- nearly everything we do on the web can be represented by collections we search and/or browse