how to generate an image only html file in bash

Matt Graham danceswithcrows at usa.net
Sat Jul 17 12:40:57 MST 2010


From: Alex Dean <alex at crackpot.org>
> On Jul 16, 2010, at 8:59 PM, Technomage wrote:
>> echo "Content-type: text/html" >> index.html
> FWIW : This header is supplied by the server and shouldn't be part of  
> your document.

Aye.  However, if you want to satisfy the HTML Nazis, it's a good idea to put
in a DOCTYPE line as the first line in an HTML doc.  Kind of like so:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
(old stuff, non-closed <li> or <p> elements, you know)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
(more strict; must be XML as well as HTML, more of a pain to write by hand,
but allows more extensive validation)

There are a few more doctypes, but that's a place to start.

-- 
Matt G / Dances With Crows
The Crow202 Blog:  http://crow202.org/wordpress/
There is no Darkness in Eternity/But only Light too dim for us to see



More information about the PLUG-discuss mailing list