/test/marks/ok/link.html
HTML | 179 lines | 139 code | 38 blank | 2 comment | 0 complexity | 4c78961e57bda75377dbd0064729a3d4 MD5 | raw file
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2<HTML> 3<HEAD> 4<META NAME="generator" CONTENT="http://txt2tags.org"> 5</HEAD><BODY BGCOLOR="white" TEXT="black"> 6<CENTER> 7</CENTER> 8 9 10<H2>Syntax: E-mail</H2> 11 12<P> 13<A HREF="mailto:user@domain.com">user@domain.com</A> 14<A HREF="mailto:user@domain.com">user@domain.com</A>. 15<A HREF="mailto:user@domain.com">user@domain.com</A>. any text. 16any text: <A HREF="mailto:user@domain.com">user@domain.com</A>. any text. 17<A HREF="mailto:user@domain.com">label</A> 18</P> 19 20<H2>Syntax: E-mail with form data</H2> 21 22<P> 23<A HREF="mailto:user@domain.com?subject=bla">user@domain.com?subject=bla</A> 24<A HREF="mailto:user@domain.com?subject=bla.">user@domain.com?subject=bla.</A> 25<A HREF="mailto:user@domain.com?subject=bla,">user@domain.com?subject=bla,</A> 26<A HREF="mailto:user@domain.com?subject=bla&cc=otheruser@domain.com">user@domain.com?subject=bla&cc=otheruser@domain.com</A> 27<A HREF="mailto:user@domain.com?subject=bla&cc=otheruser@domain.com.">user@domain.com?subject=bla&cc=otheruser@domain.com.</A> 28<A HREF="mailto:user@domain.com?subject=bla&cc=otheruser@domain.com,">user@domain.com?subject=bla&cc=otheruser@domain.com,</A> 29<A HREF="mailto:user@domain.com?subject=bla&cc=otheruser@domain.com">label</A>. 30<A HREF="mailto:user@domain.com?subject=bla&cc=otheruser@domain.com.">label</A>. 31</P> 32 33<H2>Syntax: URL</H2> 34 35<P> 36<A HREF="http://www.domain.com">http://www.domain.com</A> 37<A HREF="http://www.domain.com/dir/">http://www.domain.com/dir/</A> 38<A HREF="http://www.domain.com/dir///">http://www.domain.com/dir///</A> 39<A HREF="http://www.domain.com">http://www.domain.com</A>. 40<A HREF="http://www.domain.com">http://www.domain.com</A>, 41<A HREF="http://www.domain.com">http://www.domain.com</A>. any text. 42<A HREF="http://www.domain.com">http://www.domain.com</A>, any text. 43<A HREF="http://www.domain.com/dir/">http://www.domain.com/dir/</A>. any text. 44any text: <A HREF="http://www.domain.com">http://www.domain.com</A>. any text. 45any text: <A HREF="http://www.domain.com/dir/">http://www.domain.com/dir/</A>. any text. 46any text: <A HREF="http://www.domain.com/dir/index.html">http://www.domain.com/dir/index.html</A>. any text. 47any text: <A HREF="http://www.domain.com/dir/index.html">http://www.domain.com/dir/index.html</A>, any text. 48</P> 49 50<H2>Syntax: URL with anchor</H2> 51 52<P> 53<A HREF="http://www.domain.com/dir/#anchor">http://www.domain.com/dir/#anchor</A> 54<A HREF="http://www.domain.com/dir/index.html#anchor">http://www.domain.com/dir/index.html#anchor</A> 55<A HREF="http://www.domain.com/dir/index.html#anchor.">http://www.domain.com/dir/index.html#anchor.</A> 56<A HREF="http://www.domain.com/dir/#anchor.">http://www.domain.com/dir/#anchor.</A> any text. 57<A HREF="http://www.domain.com/dir/index.html#anchor.">http://www.domain.com/dir/index.html#anchor.</A> any text. 58any text: <A HREF="http://www.domain.com/dir/#anchor.">http://www.domain.com/dir/#anchor.</A> any text. 59any text: <A HREF="http://www.domain.com/dir/index.html#anchor.">http://www.domain.com/dir/index.html#anchor.</A> any text. 60</P> 61 62<H2>Syntax: URL with form data</H2> 63 64<P> 65<A HREF="http://domain.com?a=a@a.a&b=a+b+c.">http://domain.com?a=a@a.a&b=a+b+c.</A> 66<A HREF="http://domain.com?a=a@a.a&b=a+b+c,">http://domain.com?a=a@a.a&b=a+b+c,</A> 67<A HREF="http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.">http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.</A> 68<A HREF="http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.">http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.</A> 69</P> 70 71<H2>Syntax: URL with form data and anchor</H2> 72 73<P> 74<A HREF="http://domain.com?a=a@a.a&b=a+b+c.#anchor">http://domain.com?a=a@a.a&b=a+b+c.#anchor</A> 75<A HREF="http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor">http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor</A> 76<A HREF="http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.#anchor">http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.#anchor</A> 77</P> 78 79<H2>Syntax: URL with login data</H2> 80 81<P> 82<A HREF="http://user:password@domain.com/bla.html">http://user:password@domain.com/bla.html</A>. 83<A HREF="http://user:password@domain.com/dir/">http://user:password@domain.com/dir/</A>. 84<A HREF="http://user:password@domain.com">http://user:password@domain.com</A>. 85<A HREF="http://user:@domain.com">http://user:@domain.com</A>. 86<A HREF="http://user@domain.com">http://user@domain.com</A>. 87</P> 88 89<H2>Syntax: URL with login, form and anchor</H2> 90 91<P> 92<A HREF="http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor">http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor</A> 93<A HREF="http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c@#anchor">http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c@#anchor</A> 94</P> 95 96<H2>Syntax: URL with label</H2> 97 98<P> 99<A HREF="http://www.domain.com">label</A> 100</P> 101 102<H2>Syntax: URL with label (trailing spaces are discarded, leading are maintained)</H2> 103 104<P> 105<A HREF="http://www.domain.com"> label</A> 106<A HREF="http://www.domain.com">label</A> 107</P> 108 109<H2>Syntax: URL with label, stressing</H2> 110 111<P> 112<A HREF="http://www.domain.com/dir/index.html#anchor.">anchor</A> 113<A HREF="http://user:password@domain.com/bla.html">login</A> 114<A HREF="http://www.domain.com/bla.cgi?a=a@a.a&b=a+b+c.">form</A> 115<A HREF="http://www.domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor">form & anchor</A> 116<A HREF="http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c.">login & form</A> 117</P> 118 119<H2>Syntax: Link with label for local files</H2> 120 121<P> 122<A HREF="..">local link up</A> 123<A HREF="bla.html">local link file</A> 124<A HREF="#anchor">local link anchor</A> 125<A HREF="bla.html#anchor">local link file/anchor</A> 126<A HREF="bla.html#anchor.">local link file/anchor</A> 127<A HREF="abc.gif">local link img</A> 128</P> 129 130<H2>Syntax: Another link as a label</H2> 131 132<P> 133<A HREF="http://www.domain.com">www.fake.com</A> 134</P> 135 136<H2>Syntax: URL with funny chars</H2> 137 138<P> 139<A HREF="http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm">http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm</A> 140<A HREF="http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-">http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-</A> 141<A HREF="http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_-1%.">http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_-1%.</A> 142<A HREF="http://foo._user-9:pass!#$%&*()+word@domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_-1%.">http://foo._user-9:pass!#$%&*()+word@domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_-1%.</A> 143</P> 144 145<H2>Test: Various per line</H2> 146 147<P> 148<A HREF="http://L1.com">http://L1.com</A> ! <A HREF="mailto:L2@www.com">L2@www.com</A> ! <A HREF="http://www.com">L3</A> ! <A HREF="mailto:w@ww.com">L4</A> ! <A HREF="http://www.L5.com">www.L5.com</A> 149</P> 150 151<H2>Feature: Guessed link, adding protocol automatically</H2> 152 153<P> 154<A HREF="http://www.domain.com">www.domain.com</A> 155<A HREF="http://www2.domain.com">www2.domain.com</A> 156<A HREF="ftp://ftp.domain.com">ftp.domain.com</A> 157<A HREF="http://WWW.DOMAIN.COM">WWW.DOMAIN.COM</A> 158<A HREF="ftp://FTP.DOMAIN.COM">FTP.DOMAIN.COM</A> 159<A HREF="http://www.domain.com">label</A> 160<A HREF="ftp://ftp.domain.com">label</A> 161<A HREF="http://WWW.DOMAIN.COM">label</A> 162<A HREF="ftp://FTP.DOMAIN.COM">label</A> 163</P> 164 165<H2>Invalid: Trailing space on link</H2> 166 167<P> 168[label <A HREF="http://www.domain.com">www.domain.com</A> ] 169</P> 170 171<H2>Invalid: Label with ] char (use postproc)</H2> 172 173<P> 174[label] <A HREF="http://www.domain.com">www.domain.com</A>] 175</P> 176 177<!-- html code generated by txt2tags (http://txt2tags.org) --> 178<!-- cmdline: txt2tags -q -\-no-rc link.t2t --> 179</BODY></HTML>