Skip to content

Instantly share code, notes, and snippets.

@mamund

mamund/01-h-factors.html

Last active Jul 16, 2017
Embed
What would you like to do?
H-Factors
<html>
<body>
<!-- Link Embed (LE) -->
<img src="http://www.example.org/images/logo" title="company logo" />
<!-- Link Outbound (LO) -->
<a href="http://www.example.org/search" title="view search page">Search</a>
<!-- Link Template (LT) -->
<form method="get" action="http://www.example.org/results">
<label>Search term:</label>
<input name="query" type="text" value="" />
<input type="submit" />
</form>
<!-- Link Non-Idempotent (LN) -->
<form method="post" action="http://www.example.org/my-keywords"/>
<label>Keywords:</label>
<input name="keywords" type="text" value="" />
<input type="submit" />
</form>
<!-- Link Idempontent (LI) -->
<form onsubmit="deleteRecord();">
<label>Record ID:</label>
<input name="id" type="text" value="" />
<input type="submit" text="Delete" />
</form>
</body>
</html>
<html>
<body>
<!-- Control Read (CR) -->
<xsl:include href="http://www.exmaple.org/newsfeed" accept="application/rss" />
<!-- Control Update (CU) -->
<form method="post" action="http://www.example.org/my-keywords"
enctype="application/x-www-form-urlencoded" />
<label>Keywords:</label>
<input name="keywords" type="text" value="" />
<input type="submit" />
</form>
<!-- Control Method (CM) -->
<form method="post" action="http://www.example.org/my-keywords" />
<label>Keywords:</label>
<input name="keywords" type="text" value="" />
<input type="submit" />
</form>
<!-- Control Link (CL) -->
<entry xmlns="http://www.w3.org/2005/Atom">
<title>Atom-Powered Robots Run Amok</title>
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
<updated>2003-12-13T18:30:02Z</updated>
<author><name>John Doe</name></author>
<content>Some text.</content>
<link rel="edit" href="http://example.org/edit/first-post.atom"/>
</entry>
</body>
</html>
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Example Feed</title>
<link href="http://example.org/"/>
<updated>2003-12-13T18:30:02Z</updated>
<author>
<name>John Doe</name>
</author>
<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
<entry>
<title>Atom-Powered Robots Run Amok</title>
<link href="http://example.org/2003/12/13/atom03"/>
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
<updated>2003-12-13T18:30:02Z</updated>
<summary>Some text.</summary>
</entry>
</feed>
<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">
<head>
<link rel="alternate" type="application/rss+xml" href="/rss/" />
<meta name='url' content='http://www.websiteaddrress.com' />
</head>
<body>
<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun">
<area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">
</map>
<code>
<xi:include href="source.txt" parse="text" accept="text/plain"/>
</code>
</body>
<script src="/scripts/startup.js" type="text/javascript"/>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment