Welcome to WebmasterWorld Guest from 54.196.233.208

Forum Moderators: open

Message Too Old, No Replies

Text Editor

     
9:29 am on May 8, 2007 (gmt 0)

Preferred Member from GB 

10+ Year Member

joined:Jan 26, 2004
posts:636
votes: 0


I have come accross a text editor that i have modified to fit, however the html does not show the " " between href`s and sizes and so on, does it matter?
11:42 am on May 8, 2007 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38047
votes: 11


you mean a space? Or a quote?
10:24 am on May 9, 2007 (gmt 0)

Preferred Member from GB 

10+ Year Member

joined:Jan 26, 2004
posts:636
votes: 0


sorry it doesnt show quotes.
10:28 pm on May 9, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 30, 2003
posts:3719
votes: 0


When you say you have come across a text editor, do you mean a web template? Not sure how you can modify a text editor to fit? Sorry if I`m confusing myself.

Here are some useful links:

HTML Specification [w3.org]
HTML Specification Attributes [w3.org]

Info from the web:

In XML, quotes are always required (since XML has SHORTTAG NO; see Comparison of SGML and XML). You may use XML in the future, and in that case your life will be simpler if you have adopted the habit of quoting attribute values.

When someone (you or someone else) later edits your HTML file, he may easily forget to add the quotes if he edits an attribute value in manner which makes the quotes mandatory. For example, an attribute like SRC=foo.gif is legal, but if someone changes the attribute (e.g. due to moving a file to another directory) to SRC=images/foo.gif it becomes illegal.

dc

10:50 am on May 15, 2007 (gmt 0)

Preferred Member from GB 

10+ Year Member

joined:Jan 26, 2004
posts:636
votes: 0


Yes we have gone off the line lines a little here.
Ok
a html string should be shown as:
<TD vAlign="top" width="165">

but what if it looks like this:
<TD vAlign=top width=165>, notice no quotes!

12:23 am on May 16, 2007 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 0


It depends on the DTD but you are best off using quotation marks around your attribute [w3.org] values.

We recommend using quotation marks even when it is possible to eliminate them.