Re: quanta, aligning, and img links...

Andrew Wigglesworth <[email protected]>
Newsgroups gmane.comp.kde.devel.quanta.user
Organization -
Message-ID <[email protected]>
On Wednesday 10 December 2008 06:55:57 Niko Sams wrote:
> 2008/12/9 Kevin Martin <[email protected]>:
> > <a href="adasdfasdf" ><img src="asdasdfd"/></a>
> > then my alignment works but, of course, my img link does not.
>
> why does your img not work?
>
> the closing tag is only needed for XHTML but afaik doesn't any harm for
> HTML.
>
>
> Niko
> _______________________________________________
> Quanta mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/quanta

This is partially true.  In HTML 4.01 it is perfectly "valid" to use the 
SHORTTAG form, however, it is not reccomended since not all browsers 
recognise it properly.

For instance *all* of the following are valid HTML 4.01.

<p><a href="abcd.html" ><img src="abcd.png" alt="abcd" / </a></p>

<p><a href="abcd.html" ><img src="abcd.png" alt="abcd" / </></p>

<p><a href="abcd.html" ><img src="abcd.png" alt="abcd" / </>

<p><a href=abcd.html ><img src=abcd.png alt=abcd / </>


In this case there is a difference between code that is valid and that which 
is good practice.  The last example also misses out quotation marks which is 
also valid, but bad practice since simply inserting something such as a ? in 
the file name would render the document invalid.

Good practice would be to use the following:

<p><a href="abcd.html" ><img src="abcd.png" alt="abcd"> </a></p>

and avoid the shorttag form altogether.

-- 
Andrew
http://www.andrew-wigglesworth.co.uk

_______________________________________________
Quanta mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/quanta
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAklCrf0ACgkQuaKdSnPuhtqv7gCdEu8G00Od7v1k1YfoU92+fx4T
EDgAoM1E6lh+znoWwcAjOXNZ62kFVSMo
=aFbk
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.