Web browsers have to be forgiving about mal-formed content on the web
or most pages wouldn't display for one reason or another.  Each
browser implements this it's own way.  Browsers display lots of
different types of content besides just HTML pages: graphics, text
files, XML just to name a few.  Therefore, if a browser just gets
"Hello world" it will echo it on the screen, however, all production
HTML should be well-formed.  Many important things like search engines
and tools for the disabled use the HTML structure and if it's not
well-formed, you may lose a certain amount of traffic.





--- In [email protected], "Patrick Newberry" <[EMAIL PROTECTED]>
wrote:
>
> I've noticed when building a page, such as "hello world"
>  
> You don't put any html tags, just echo "hello world"
>  
> But looking at other programs I sometime see echo / prints of all htlm
> tags such as:
>  
> echo "<html>";
> echo "<header>";
> echo "</header";
> echo "<body>";
>  
> well you get the point.
>  
> Since both seem to work, what html tags should you output and when is it
> ok to not bother or does it matter?
>  
> Pat
> www.gypsyfarm.com
>  
>  
> 
> 
> [Non-text portions of this message have been removed]
>


Reply via email to