martin.swift.is > firstaid > webauthoring

Visualisation

D3

AngularJS

Django

W3C

The World Wide Web Consortium is not only the body overseeing Internet technology standards, they also have a few useful tools for validating sites.

Standards

Anyone who slaps a 'this page is best viewed with Browser X' label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network.
Tim Berners-Lee (in Technology Review, July 1996)

Design

The Color Scheme Designer is a very useful tool.

Accessibility

Góð ráð og dýr

Flipp með target="_blank"

Ekki opna tengla í nýjum gluggum. Hugmyndin er sú að stýra ekki sprangstíl lesanda. Vilji lesandi halda upprunalegum glugga opnum þá getur hann séð um það sjálfur. Ég er enn að bíða eftir „Open in old window“ valmöguleikanum.

Svona má fjarlægja target="_blank" úr skrám sem enda á html og php í bash skelinni:

for i in *.html *.php
do
  sed -e 's/target=\"_blank\"//g' $i > $i.out
  mv -f $i.out $i                            
done

Just found the the WAI's WCAG 2 Working Draft that also advises not opening new windows unannounced.

En ég er með rammasíðu

Í stað þess að nota target="_blank" eigindið (e. attribute) má nota target="_top" sem opnar hlekkinn í öllum glugganum. Meira um þetta er m.a. að finna á 6.16 Frame target names HTML 4.01 Spec. og _Parent _self _blank _top Frame Specifications codetoad.com.

Cool Stuff

h1[id]:hover:after, h2[id]:hover:after, h3[id]:hover:after, h4[id]:hover:after, h5[id]:hover:after, h6[id]:hover:after {
	content:" #" attr(id);
	font-style:italic;
	font-weight:normal;
	color:#666;
	font-size:10px;
}