Re: how to generate an image only html file in bash

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Matt Graham
Date:  
To: Main PLUG discussion list
Subject: Re: how to generate an image only html file in bash
From: Alex Dean <>
> 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

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss