<A
[HREF="url"]
[NAME="name"]
[TARGET="frame"]>
......</A>
HTMLÀÇ Ä¿´Ù¶õ ÀåÁ¡Àº ´Ù¸¥ ¹®¼ÀÇ ÅؽºÆ®³ª ȤÀº À̹ÌÁö¿Í ¿¬°áÇÒ ¼ö
ÀÖ´Ù´Â °ÍÀÌ´Ù. ¸µÅ©´Â ¹®¼ Áß¿¡ »ö±òÀ̳ª ¹ØÁÙ·Î °Á¶µÈ ºÎºÐÀ» ÅëÇÏ¿©
´Ù¸¥ ¹®¼·Î ¿¬°á½ÃŲ´Ù. ÀÌ·¯ÇÑ ¸µÅ©¿¡ °ü·ÃµÈ tagÀÌ <A>(anchor)ÀÌ´Ù.
TARGET attribute´Â FRAMES »ç¿ë¿¡ °ü·ÃµÈ´Ù.
[»ó´ë pathÀÇ ÁöÁ¤] | |
direc/ | ÇöÀç ¹®¼ÀÇ µð·ºÅ丮°¡ À̶ó°í °¡Á¤ |
direc/index.html | href="./" ¶Ç´Â "index.html" |
direc/another.html | href="another.html" |
direc/subdir/index.html | href="subdir/" ¶Ç´Â "subdir" |
direc/subdir/another.html | href="subdir/another.html" |
direc/../index.html | href="../" ¶Ç´Â "../index.html" |
[Àý´ë pathÀÇ ÁöÁ¤] | |
htdocs/ | µµÅ¥¸ÕÆ® ·çÆ®¶ó°í °¡Á¤ |
htdocs/index.html | href="/" ¶Ç´Â "/index.html" |
htdocs/another.html | href="/another.html" |
htdocs/subdir/another.html | href="/subdir/another.html" |
~someone/public_html/ | ÀÚ½ÅÀÇ µµÅ¥¸àÆ® ·çÆ®¶ó°í °¡Á¤ |
~someone/public_html/index.html | href="/~someone/" ¶Ç´Â "/~someone" |
~someone/public_html/another.html | href="/~someone/another.html" |
~someone/public_html/subdir/a.html | href="/~someone/subdir/a.html" |
Àý´ë path°¡ ÁöÁ¤µÈ °æ¿ì¿¡´Â '/'·Î ½ÃÀÛÇÏ°í ÀÖ´Ù. ±×¸®°í index.html·Î ¸µÅ©ÇÏ´Â °æ¿ì¿¡´Â ÆÄÀÏÀ̸§À» »ý·«ÇÒ ¼ö ÀÖ´Ù. URL¿¡´Â HTML¹®¼ »Ó¸¸ ¾Æ´Ï¶ó À½¼ºÀ̳ª µ¿È»óµî ´Ù¸¥ Á¾·ùÀÇ ÆÄÀÏÀÌ ¿Ã ¼öµµ ÀÖ´Ù.
¸ðµç »ó´ë path¸¦ Àý´ë path·Î ÁöÁ¤ÇÒ ¼öµµ ÀÖ´Ù. ±×·¯³ª ÀϹÝÀûÀ¸·Î »ó´ë path¸¦ »ç¿ëÇÏ´Â °ÍÀÌ ÁÁ´Ù. ¿ì¼± ÀÔ·ÂÇÏ¿©¾ß ÇÒ ±ÛÀÚ ¼ö°¡ ÁÙ¾îµé°í, °ü·ÃµÈ ÆÄÀϵé Àüü¸¦ ´Ù¸¥ °÷À¸·Î ¿Å°Üµµ º° ¹®Á¦°¡ ÀϾÁö ¾Ê´Â´Ù. ±×·¯³ª Á÷Á¢ °ü·ÃµÈ ¹®¼°¡ ¾Æ´Ñ °æ¿ì¿¡´Â Àý´ë path·Î ÁöÁ¤ÇÏ´Â °ÍÀÌ È¿À²ÀûÀÌ´Ù. ÇÔ²² À̵¿ÇÏÁö ¾Ê´Â ¹®¼µéÀº Àý´ë path·Î ÁöÁ¤ÇØ ÁÖ¾î¾ß ȣȯ¼ºÀÌ À¯ÁöµÈ´Ù.
[»ç¿ë¿¹]
<a href="/~gdhong/">È«±æµ¿ ȨÆäÀÌÁö</a> <a href="hello.wav">Àλñ¸»</a> <a href="http://home.netscape.com/">NETSCAPE ȨÆäÀÌÁö</a> |
¾Æ·¡ÀÇ ¿¹¿Í °°ÀÌ ¹®¼ ¾È¿¡ URLÀ» Æ÷ÇÔÇÏ¸é ¸µÅ©°¡ ÀÌ·ç¾î Áø´Ù.
<A HREF="http://sunsite.unc.edu/mdw/linux.html">Linux
Documentation Project</A>
ÀÌ°ÍÀº ¸®´ª½º¿¡ °üÇÑ HTML ¹®¼¸¦ ¹®¼ ¾È¿¡¼ ¿¬°á½ÃÄÑÁØ °ÍÀÌ´Ù.
ÀÌÁ¦ ÆÄÀÏÀÇ À̸§ »Ó¸¸ ¾Æ´Ï¶ó hash mark(#)·Î ±¸ºÐµÈ named anchor¸¦
°®Ãß°í ÀÖ´Â ¸µÅ©¸¦ ¹®¼ A¿¡ ¸¸µé ¼ö ÀÖ´Ù.
A ¹®¼¿¡¼ B ¹®¼ÀÇ ¾î´À ºÎºÐÀ¸·Î
<A HREF="documentB.html#midway">¿¬°á</A>Çϱâ.
¹®¼ A ¾ÈÀÇ "¿¬°á"À̶ó´Â ´Ü¾î¸¦ ¸¶¿ì½º·Î Ŭ¸¯Çϸé, »ç¿ëÀÚ´Â ¹®¼ B ¾È¿¡ ÀÖ´Â midway¶ó°í Ç¥½ÃµÇ¾î ÀÖ´Â °÷À¸·Î °ðÀå °¡¼ º¼ ¼ö ÀÖ°Ô µÈ´Ù.