HTML Css W3schools
HTML Css W3schools
HTML Css W3schools
ﻣﻘﺪﻣﻪ ﺍﻱ ﺑﺮ HTML
ﺩﺭ ﺍﻳﻦ ﺩﺭﺱ ﺑﺎ ﻭﻳﮋﮔﻴﻬﺎﻱ ﻓﺎﻳﻠﻬﺎﻱ HTMLﻳﺎ ﺍﭼﺘﻤﻞ ﻭ ﻧﺤﻮﻩ ﺍﻳﺠﺎﺩ ﻳﻚ ﻓﺎﻳﻞ ﺳﺎﺩﻩ ﻭ ﻧﻤﺎﻳﺶ ﺁﻥ ﺩﺭ ﺻﻔﺤﻪ ﻣﺮﻭﺭﮔﺮﺗﺎﻥ ﺁﺷﻨﺎ ﺧﻮﺍﻫﻴﺪ ﺷﺪ.
)ﻳﺎﺩﺁﻭﺭﻱ :ﻣﺮﻭﺭﮔﺮ ،ﺑﺮﻭﺯﺭ ﻭ Browserﻫﻤﮕﻲ ﻳﻜﻲ ﻫﺴﺘﻨﺪ ﻭ ﺑﻪ ﻧﺮﻡ ﺍﻓﺰﺍﺭﻱ ﺍﻃﻼﻕ ﻣﻴﺸﻮﺩ ﻛﻪ ﺑﻪ ﻧﻤﺎﻳﺶ ﺻﻔﺤﺎﺕ HTMLﺑﺮﺩﺍﺧﺘﻪ ﻭ ﻭﺍﺳﻄﻪ
ﻛﺎﺭﺑﺮ ﺑﺎ ﺩﻧﻴﺎﻱ ﺍﻳﻨﺘﺮﻧﺖ ﺍﺳﺖ(.
ﻣﻴﺒﺎﺷﺪ.
ﻳﻚ ﻓﺎﻳﻞ HTMLﻓﺎﻳﻠﻲ ﺍﺯ ﻧﻮﻉ textﻣﻴﺒﺎﺷﺪ ﻛﻪ ﻣﺘﺸﻜﻞ ﺍﺯ markup tagﻫﺎ ﻣﻴﺒﺎﺷﺪ. •
ﻣﺮﻭﺭﮔﺮ ﻳﺎ Browserﺍﺯ ﺭﻭﻱ markup tagﻫﺎ ﻣﻲ ﻓﻬﻤﺪ ﻛﻪ ﭼﮕﻮﻧﻪ ﺑﺎﻳﺪ ﺻﻔﺤﻪ ﺭﺍ ﻧﻤﺎﻳﺶ ﺑﺪﻫﺪ. •
ﻳﻚ ﻓﺎﻳﻞ HTMLﺑﺎﻳﺪ ﺩﺍﺭﺍﻱ ﺍﻧﺸﻌﺎﺏ htmﻭ ﻳﺎ htmlﺑﺎﺷﺪ. •
ﻳﻚ ﻓﺎﻳﻞ HTMLﻓﺎﻳﻠﻲ ﺍﺯ ﻧﻮﻉ ﻣﺘﻦ ﻭ textﻣﻴﺒﺎﺷﺪ ﻛﻪ ﺑﺎ ﻫﺮ ﻭﻳﺮﺍﻳﺸﮕﺮ ﻭ ﺍﺩﻳﺘﻮﺭﻱ ﺳﺎﺩﻩ ﺍﻱ ﻗﺎﺑﻞ ﺍﻳﺠﺎﺩ ﺍﺳﺖ. •
ﻭﻇﻴﻔﻪ ﺍﺻﻠﻲ ﺗﮓ ﻫﺎﻱ ﺍﭼﺘﻤﻞ ) ( markup tagsﺑﻴﺎﻥ ﭼﮕﻮﻧﮕﻲ ﻧﻤﺎﻳﺶ ﺍﻃﻼﻋﺎﺕ ﻣﻴﺒﺎﺷﺪ. •
ﺍﮔﺮ ﺍﺯ ﻭﻳﻨﺪﻭﺯ ﻣﺎﻳﻜﺮﻭﺳﺎﻓﺖ ﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﻜﻨﻴﺪ Notepad ،ﺭﺍ ﺑﺎﺯ ﻛﺮﺩﻩ ) Macﻛﺎﺭﻫﺎ ﺍﺯ SimplaeTextﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻨﺪ ( .ﻭ ﻣﺘﻦ ﺯﻳﺮ ﺭﺍ ﺩﺭ ﺁﻥ ﺗﺎﻳﭗ
ﻛﻨﻴﺪ:
><html
><head
><title>Title of page</title
></head
><body
>This is my first html page. <b>This text is bold</b
></body
></html
ﺑﺮﺍﻱ ﺩﻳﺪﻥ ﻓﺎﻳﻞ ﺍﭼﺘﻤﻞ ﺑﺎﻻ ﺩﺭ ﻣﺮﻭﺭﮔﺮ ﻳﺎ Browerﺗﺎﻥ ) ﻣﻌﻤﻮﻻ ﺍﻳﻨﺘﺮﻧﺖ ﺍﻛﺴﭙﻠﻮﺭﺭ ﻭ ﻳﺎ ( Firefoxﻛﺎﻓﻲ ﺍﺳﺖ ﻛﻪ ﺍﺯ ﺭﻭﻱ ﻣﻨﻮﻱ
File/Open fileﻓﺎﻳﻞ ﺑﺎﻻ ﺭﺍ ﺍﺯ ﺭﻭﻱ ﻣﺤﻞ ﺫﺧﻴﺮﻩ ﺷﺪﻩ ﺑﺨﻮﺍﻧﻴﺪ ) .ﺑﻪ ﺁﺩﺭﺱ ﻓﺎﻳﻞ ﺩﺭ ﻗﺴﻤﺖ Addressﺗﻮﺟﻪ ﻛﻨﻴﺪ ،ﻣﺜﻼ (c:\test.html
ﻳﻜﻲ ﺍﺯ ﻣﻬﻤﺘﺮﻳﻦ ﻭﻇﺎﻳﻒ ﻣﺮﻭﺭﮔﺮﻫﺎ ﻧﻤﺎﻳﺶ ﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﻣﻴﺒﺎﺷﺪ ،ﭼﻪ ﺍﻳﻦ ﺻﻔﺤﺎﺕ ﺭﻭﻱ ﻛﺎﻣﭙﻴﻮﺗﺮ ﺷﻤﺎ ﺫﺧﻴﺮﻩ ﺷﺪﻩ ﺑﺎﺷﻨﺪ ﻭ ﻳﺎ ﺍﻳﻨﻜﻪ ﺭﻭﻱ
ﺳﺮﻭﺭﻱ ﺩﻳﮕﺮ ﺍﺯ ﺍﻳﻨﺘﺮﻧﺖ ﺧﻮﺍﻧﺪﻩ ﺷﻮﻧﺪ .ﺑﺎ ﻛﻠﻴﻚ ﺭﻭﻱ ﺍﻳﻦ ﻟﻴﻨﻚ ﻓﺎﻳﻠﻲ ﺷﺒﻴﻪ ﻓﺎﻳﻞ ﺫﺧﻴﺮﻩ ﺷﺪﻩ ﺗﻮﺳﻂ ﺷﻤﺎ ﺍﺯ ﺭﻭﻱ ﻭﺏ ﺳﺮﻭﺭ ﺗﻮﺳﻂ ﻣﺮﻭﺭﮔﺮﺗﺎﻥ
ﺧﻮﺍﻧﺪﻩ ﺷﺪﻩ ﻭ ﺳﭙﺲ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ!!! ) ﺑﻪ ﺁﺩﺭﺱ ﻓﺎﻳﻞ ﺩﺭ ﻗﺴﻤﺖ Addressﺗﻮﺟﻪ ﻛﻨﻴﺪ ،ﻣﺜﻼ
( http://www.khaterat.com/html/dars/test.html
ﺍﻭﻟﻴﻦ ﺗﮓ ﻣﺜﺎﻝ ﺑﺎﻻ ﺗﮓ > <htmlﻣﻴﺒﺎﺷﺪ .ﺍﺯ ﺭﻭﻱ ﺍﻳﻦ ﺗﮓ ،ﻣﺮﻭﺭﮔﺮ ﻧﻮﻉ ﻣﺘﻦ ﻳﻌﻨﻲ ﺍﭼﺘﻤﻞ ﺑﻮﺩﻧﺶ ﺭﺍ ﻳﺎﻓﺘﻪ ﻭ ﺍﺯ ﺭﻭﻱ > </htmlﺍﻧﺘﻬﺎﻱ ﻣﺘﻦ
ﺍﭼﺘﻤﻞ ﺭﺍ ﻣﻴﺒﺎﺑﺪ.
ﻣﺘﻦ ﺑﻴﻦ ﺗﮓ > <headﻭ ﺗﮓ > </headﺍﻃﻼﻋﺎﺕ ﺷﻨﺎﺳﻨﺎﻣﻪ ﺍﻱ ﻳﺎ " "Header informationﻣﺘﻦ ﺍﭼﺘﻤﻞ ﺑﻮﺩﻩ ﻭ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﻧﺨﻮﺍﻫﻨﺪ
ﺷﺪ .ﺩﺭ ﺍﻳﻦ ﻣﺜﺎﻝ ﺑﺎ ﻛﻤﻚ ﺗﮕﻬﺎﻱ > <titleﻭ > </titleﺗﻴﺘﺮ ﻭ ﻳﺎ Titleﺻﻔﺤﻪ ﻛﻪ ﺩﺭ ﺍﻳﻦ ﻣﺜﺎﻝ ﻋﺒﺎﺭﺕ " "Title of pageﻣﻴﺒﺎﺷﺪ ﺩﺭ
ﺑﺎﻻﻱ ﻣﺮﻭﺭﮔﺮ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ.
ﻣﺘﻦ ﺑﻴﻦ ﺗﮓ > <bodyﻭ ﺍﻧﺘﻬﺎﻱ ﺁﻥ ﻳﻌﻨﻲ ﺗﮓ > </bodyﺗﻨﻬﺎ ﺍﻃﻼﻋﺎﺗﻲ ﺍﺳﺖ ﻛﻪ ﺗﻮﺳﻂ ﻣﺮﻭﺭﮔﺮﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﻨﺪ ﺷﺪ.
ﻣﺘﻦ ﺑﻴﻦ ﺗﮓ > <bﻭ ﺍﻧﺘﻬﺎﻱ ﺁﻥ ﻳﻌﻨﻲ ﺗﮓ > </bﺑﺼﻮﺭﺕ Boldﻭ ﻳﺎ ﺗﻮﭘﺮ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﻨﺪ ﺷﺪ.
ﻧﺎﻡ ﻓﺎﻳﻞ test.htmlﺑﻮﺩﻩ ،ﺩﺭ ﺷﺎﺧﻪ darsﻗﺮﺍﺭ ﮔﺮﻓﺘﻪ ﻭ ﺭﻭﻱ ﻭﺏ ﺳﺮﻭﺭﻱ ﻛﻪ ﻣﻴﺰﺑﺎﻥ ﺳﺎﻳﺖ khaterat.comﺍﺳﺖ ﻗﺮﺍﺭ ﺩﺍﺭﺩ.
ﺍﻏﻠﺐ ﻣﺮﻭﺭﮔﺮﻫﺎ ﻫﺮ ﺩﻭ ﻧﻮﻉ ﺍﻧﺸﻌﺎﺏ ﺭﺍ ﺑﻪ ﺧﻮﺑﻲ ﻣﻴﺸﻨﺎﺳﻨﺪ ﻭﻟﻲ ﺗﺮﺟﻴﺤﺎ ﺑﻪ ﻫﻨﮕﺎﻡ ﺫﺧﻴﺮﻩ ﻓﺎﻳﻠﻬﺎﻱ ﺍﭼﺘﻤﻞ ﺍﺯ htmlﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ ).ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ
ﺍﻧﺸﻌﺎﺑﻬﺎﻱ ﺳﻪ ﺣﺮﻓﻲ ﻣﺎﻧﻨﺪ htmﻣﺮﺑﻮﻁ ﺑﻪ ﻗﺪﻳﻢ ﻭ ﺳﻴﺴﺘﻢ ﻋﺎﻣﻠﻬﺎﺋﻲ ﭼﻮﻥ DOSﺑﻮﺩﻧﺪ(.
ﺑﺎ ﻭﺟﻮﺩﻳﻜﻪ ﺑﺎ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺍﺩﻳﺘﻮﺭﻫﺎﻱ ﺍﺧﺘﺼﺎﺻﻲ ﺍﭼﺘﻤﻞ ﻣﺎﻧﻨﺪ FrontPageﻭ ﻳﺎ Claris Home Pageﺍﻣﻜﺎﻥ ﻧﻮﺷﺘﻦ ﻭ ﻃﺮﺍﺣﻲ ﺻﻔﺤﺎﺕ
ﺍﭼﺘﻤﻞ ﺑﺼﻮﺭﺕ WYSIWYGﻳﺎ " "Get You What Is See You Whatﻭﺟﻮﺩ ﺩﺍﺭﺩ ﺍﻣﺎ ﺗﻮﺻﻴﻪ ﻣﻴﺸﻮﺩ ﻛﻪ ﺍﺯ ﺍﺩﻳﺘﻮﺭﻫﺎﻱ ﻣﻌﻤﻮﻟﻲ
ﻣﺘﻦ ﺑﺮﺍﻱ ﺗﻬﻴﻪ ﺻﻔﺤﺎﺕ ﺧﻮﺩ ﺍﺳﺘﻔﺎﺩﻩ ﻛﺮﺩﻩ ،ﻋﻤﻠﻜﺮﺩ ﺗﮕﻬﺎ ﺭﺍ ﺷﻨﺎﺧﺘﻪ ﻭ ﻫﻴﭽﮕﺎﻩ ﺑﺪﻭﻥ ﺍﻳﻨﻜﻪ ﺑﺪﺍﻧﻴﺪ ﻛﺎﺭﺑﺮﺩ ﻳﻚ ﺗﮓ ﭼﻴﺴﺖ ﺁﻧﺮﺍ ﺑﻜﺎﺭ ﻧﺒﺮﻳﺪ) .ﺍﺩﻳﺘﻮﺭﻫﺎ
ﻓﺎﻳﻠﻢ ﺭﺍ ﺩﺭﺳﺖ ﻛﺮﺩﻡ ﻭﻟﻲ ﻫﻨﻮﺯ ﻧﻤﻴﺘﻮﺍﻧﻢ ﺁﻧﺮﺍ ﺩﺭ ﺻﻔﺤﻪ ﻣﺮﻭﺭﮔﺮﻡ ﺑﺒﻴﻨﻢ ،ﻣﺸﻜﻞ ﻛﺠﺎﺳﺖ؟
ﻣﻄﻤﺌﻦ ﺷﻮﻳﺪ ﻛﻪ ﻓﺎﻳﻞ ﺭﺍ ﺑﺎ ﺍﻧﺸﻌﺎﺏ ﺩﺭﺳﺖ ) htmﻳﺎ ( htmlﺫﺧﻴﺮﻩ ﻛﺮﺩﻩ ﺍﻳﺪ .ﺩﺭ ﺿﻤﻦ ﻣﻄﻤﺌﻦ ﺷﻮﻳﺪ ﻛﻪ ﻫﻤﺎﻥ ﻓﺎﻳﻞ ﺭﺍ Openﻛﺮﺩﻩ ﺍﻳﺪ ).ﻧﺎﻡ ﻭ
ﻣﺴﻴﺮ ﻓﺎﻳﻞ ﺭﺍ ﺩﺭ ﻗﺴﻤﺖ Addressﻣﺮﻭﺭﮔﺮﺗﺎﻥ ﭼﻚ ﻛﻨﻴﺪ(.
ﻫﺮ ﺑﺎﺭ ﭘﺲ ﺍﺯ ﺗﻐﻴﻴﺮ ﻭ ﺍﺩﻳﺖ ﻣﺜﺎﻟﻬﺎ ﻧﺴﺨﻪ ﺍﻭﻟﻴﻪ ﺭﺍ ﺩﺭ ﺻﻔﺤﻪ ﻣﺮﻭﺭﮔﺮﻡ ﻣﻴﺒﻴﻨﻢ ﻭ ﺗﻐﻴﻴﺮﺍﺕ ﺩﺍﺩﻩ ﺷﺪﻩ ﻣﺸﺎﻫﺪﻩ ﻧﻤﻴﺸﻮﺩ،
ﻣﺸﻜﻞ ﻛﺠﺎﺳﺖ؟
ﺑﻪ ﺧﺎﻃﺮ ﺑﺎﻻ ﺑﺮﺩﻥ ﺳﺮﻋﺖ ،ﻫﻤﻴﺸﻪ ﻣﺮﻭﺭﮔﺮﻫﺎ ﺍﺯ ﻧﺴﺨﻪ ﻫﺎﻱ ﻣﻮﺟﻮﺩ ﺩﺭ Cacheﻳﺎ ﺣﺎﻓﻈﻪ ﻣﻮﻗﺖ ﺧﻮﺩ ﺑﺮﺍﻱ ﺧﻮﺍﻧﺪﻥ ﺻﻔﺤﺎﺕ ﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﻜﻨﻨﺪ.ﺑﺮﺍﻱ
ﻭﺍﺩﺍﺭ ﻛﺮﺩﻥ ﻣﺮﻭﺭﮔﺮ ﺑﻪ ﺧﻮﺍﻧﺪﻥ ﺍﺻﻞ ﺻﻔﺤﻪ ﻛﺎﻓﻲ ﺍﺳﺖ ﻛﻪ ﺩﺭ ﻣﺮﻭﺭﮔﺮﺗﺎﻥ Refresh/Reloadﻛﻨﻴﺪ .ﺩﺭ ﺍﻳﻨﺘﺮﻧﺖ ﺍﻛﺴﭙﻠﻮﺭﺭ ﻛﻠﻴﺪ F5ﻳﺎ
View/Refreshﻭ ﺩﺭ ﻓﺎﻳﺮﻓﺎﻛﺲ Ctrl+Rﻳﺎ View/Reloadﺍﻳﻨﻜﺎﺭ ﺭﺍ ﺍﻧﺠﺎﻡ ﺧﻮﺍﻫﻨﺪ ﺩﺍﺩ.
ﻛﺠﺎ ﻣﻴﺘﻮﺍﻧﻢ ﺁﺧﺮﻳﻦ ﻧﺴﺨﻪ ﺍﺯ ﻣﺮﻭﺭﮔﺮﻫﺎﻱ Internet Explorerﻭ Firefoxﺭﺍ ﺩﺍﻭﻧﻠﻮﺩ ﻛﻨﻢ؟
Internet Explorerﺍﻳﻨﺠﺎﺳﺖ ﻭ Firefoxﺍﻳﻨﺠﺎ.
ﻣﻨﻈﻮﺭ ﺍﺯ ﻭﺏ ﭼﻴﺴﺖ؟
ﻭﺏ ﺷﺒﻜﻪ ﺍﻱ ﺍﺳﺖ ﻣﺘﺸﻜﻞ ﺍﺯ ﺗﻤﺎﻣﻲ ﻛﺎﻣﭙﻴﻮﺗﺮﻫﺎﻱ ﺩﻧﻴﺎ ،ﺷﺒﻜﻪ ﺍﻱ ﺍﺯ ﺷﺒﻜﻪ ﻫﺎ.
ﺍﻳﻨﺘﺮﻧﺖ ،ﻭﺏ web ،WWW ،ﻳﺎ Web Wide Worldﻫﻤﮕﻲ ﻳﻚ ﭼﻴﺰﻧﺪ.
ﺗﻤﺎﻣﻲ ﻛﺎﻣﭙﻴﻮﺗﺮﻫﺎﻱ ﻭﺏ ﻣﻴﺘﻮﺍﻧﻨﺪ ﺑﺎ ﻫﻢ ﺍﺭﺗﺒﺎﻁ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻨﺪ.
ﻛﺎﻣﭙﻴﻮﺗﺮﻫﺎﻱ ﻣﻮﺟﻮﺩ ﺩﺭ ﻭﺏ ﺑﺎ ﻛﻤﻚ ﺍﺳﺘﺎﻧﺪﺍﺭﺩ ﺍﺭﺗﺒﺎﻃﻲ ﻳﺎ ﭘﺮﻭﺗﻮﻛﻞ HTTPﺑﺎ ﻫﻢ ﺍﺭﺗﺒﺎﻁ ﺑﺮﻗﺮﺍﺭ ﻣﻴﻜﻨﻨﺪ .
ﺍﻃﻼﻋﺎﺕ ﺻﻔﺤﺎﺕ ﻭﺏ ﺩﺍﺧﻞ ﻓﺎﻳﻠﻬﺎﺋﻲ ﺑﻪ ﻧﺎﻡ Web Pagesﻭ ﻳﺎ ﻣﺘﻦ ﻫﺎﻱ ﻭﺏ ) (HTML documentsﻗﺮﺍﺭ ﺩﺍﺭﻧﺪ.
ﺍﻳﻦ ﻓﺎﻳﻠﻬﺎ ﻳﺎ ﺻﻔﺤﺎﺕ ﺭﻭﻱ Web Serverﻳﺎ ﻛﺎﻣﭙﻴﻮﺗﺮﻫﺎﻱ ﺳﺮﻭﻳﺲ ﺩﻫﻨﺪﻩ ﻭﺏ ﺫﺧﻴﺮﻩ ﺷﺪﻩ ﺍﻧﺪ.
ﺑﺮﺍﻱ ﺩﻳﺪﻥ ﺻﻔﺤﺎﺕ ﻭﺏ ﺍﺯ ﻧﺮﻡ ﺍﻓﺰﺍﺭﻱ ﺑﻪ ﻧﺎﻡ ﻣﺮﻭﺭﮔﺮ ﻭ ﻳﺎ Web Browserﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﺸﻮﺩ.
ﺳﺮﻭﺭﻫﺎﻱ ﻭﺏ ﻳﺎ Web Serversﻛﺎﻣﺒﻴﻮﺗﺮﻫﺎﻱ ﻫﺴﺘﻨﺪ ﻛﻪ ﺑﺎ ﻛﻤﻚ ﺍﺳﺘﺎﻧﺪﺍﺭﺩ ﺍﺭﺗﺒﺎﻃﻲ HTTPﺑﻪ ﺗﺒﺎﺩﻝ ﺍﻃﻼﻋﺎﺕ ﺑﺎ ﻣﺮﻭﺭﮔﺮﻫﺎ
) (web Clientsﻣﻴﺒﺮﺩﺍﺯﻧﺪ. .
ﻣﺮﻭﺭﮔﺮﻫﺎﻱ ﻭﺏ ﺭﺍ Web browsersﻳﺎ web Clientsﻫﻢ ﻣﻴﻨﺎﻣﻨﺪ .
ﺩﻭ ﻣﺮﻭﺭﮔﺮ Internet Explorerﻭ Firefoxﺟﺰﻭ ﻣﻌﺮﻭﻓﺘﺮﻳﻦ ﻣﺮﻭﺭﮔﺮﻫﺎ ﺣﺴﺎﺏ ﻣﻴﺸﻮﻧﺪ.
ﻣﺮﻭﺭﮔﺮ Internet Explorerﻣﺘﻌﻠﻖ ﺑﻪ ﺷﺮﻛﺖ ﻣﺎﻳﻜﺮﻭﺳﺎﻓﺖ ﻭ ﻣﺮﻭﺭﮔﺮ Firefoxﻣﺘﻌﻠﻖ ﺑﻪ ﺷﺮﻛﺖ Mozillaﻣﻴﺒﺎﺷﺪ.
ﻣﺮﻭﺭﮔﺮ ّ Firefoxﺩﺍﺭﺍﻱ ﺍﻣﻨﻴﺖ ﺑﻴﺸﺘﺮﻱ ﺑﻮﻩ ﻭ ﺑﺼﻮﺭﺕ open Sourceﻣﻴﺒﺎﺷﺪ ﻭ ﻧﺴﺒﺖ ﺑﻪ Internet Explorerﺑﺮﺗﺮ
ﻣﺤﺴﻮﺏ ﻣﻴﺸﻮﺩ.
ﻣﺮﻭﺭﮔﺮ Internet Explorerﮔﺎﻫﻲ ﻣﺨﺘﺼﺮﺍ IEﻧﺎﻣﻴﺪﻩ ﻣﻴﺸﻮﺩ.
ﺍﺳﺎﻣﻲ ﺑﻌﻀﻲ ﺍﺯ ﻣﺮﻭﺭﮔﺮﻫﺎﻱ ﺩﻳﮕﺮ ﺑﻪ ﻗﺮﺍﺭ ﺭﻭﺑﺮﻭ ﺍﺳﺖMosaic, Netscape Navigator, Opera, Mozilla, :
)Safari(Mac computers
ﺍﻣﻴﺪﻭﺍﺭﻡ ﻛﻪ ﺷﻤﺎ ﻃﺮﺍﺡ ﻭ ﺑﺮﻧﺎﻣﻪ ﻧﻮﻳﺲ ﺍﻭﻟﻴﻦ ﻣﺮﻭﺭﮔﺮ ﺗﻤﺎﻣﺂ ﻓﺎﺭﺳﻲ ﺑﺎﺷﻴﺪ!
ﻳﻚ ﻣﺮﻭﺭﮔﺮ ﺑﺎ ﻛﻤﻚ ﻳﻚ Requestﺩﺭﺧﻮﺍﺳﺘﻲ ﺑﺮﺍﻱ ﺧﻮﺍﻧﺪﻥ ﻳﻚ ﺻﻔﺤﻪ ﺍﺯ ﻭﺏ ﺳﺮﻭﺭ ﻣﻴﻜﻨﺪ.
ﺍﻳﻦ Requestﻳﺎ ﺩﺭﺧﻮﺍﺳﺖ ﺑﺮ ﺍﺳﺎﺱ ﺍﺳﺘﺎﻧﺪﺍﺭﺩ ﺍﺭﺗﺒﺎﻃﻲ ﻳﺎ ﭘﺮﻭﺗﻮﻛﻞ HTTPﺑﻮﺩﻩ ﻭ ﺷﺎﻣﻞ ﺁﺩﺭﺱ ﺻﻔﺤﻪ ﻣﻮﺭﺩ ﻧﻈﺮ ﻣﻴﺒﺎﺷﺪ.
ﺁﺩﺭﺱ ﻳﻚ ﺻﻔﺤﻪ ﻭﺏ ﭼﻴﺰﻱ ﺷﺒﻴﻪ http://www.khaterat.com/www/htmlwww.phpﺍﺳﺖ.
ﺑﺨﺶ http://ﻧﻮﻉ ﭘﺮﻭﺗﻮﻛﻞ ﻭ ﻳﺎ ﺍﺳﺘﺎﻧﺪﺍﺭﺩ ﺍﺭﺗﺒﺎﻃﻲ ﺭﺍ ﺗﻌﻴﻴﻦ ﻣﻴﻜﻨﺪ www.khaterat.com ،ﻧﺎﻡ ﺩﻭﻣﻴﻦ ﻳﺎ Domainﺍﺳﺖ ﻭ
/www/htmlwww.phpﻣﺴﻴﺮ ﻭ ﻧﺎﻡ ﺻﻔﺤﻪ ﺍﻱ ﺍﺳﺖ ﻛﻪ ﺑﺎﻳﺪ ﺧﻮﺍﻧﺪﻩ ﺷﻮﺩ.
ﭼﮕﻮﻧﮕﻲ ﻧﻤﺎﻳﺶ ﻳﻚ ﺻﻔﺤﻪ ﻭﺏ ﺑﺼﻮﺭﺕ ﻣﺴﺘﺘﺮ ﺩﺭ ﺁﻥ ﻭﺟﻮﺩ ﺩﺍﺭﺩ).ﺍﮔﺮ ﺷﻤﺎ ﻣﻨﻈﻮﺭﻡ ﺭﺍ ﻓﻬﻤﻴﺪﻳﺪ ﻣﻦ ﺭﺍ ﻫﻢ ﺧﺒﺮﺩﺍﺭ ﻛﻨﻴﺪ!(
ﻣﺮﻭﺭﮔﺮﻫﺎ ﺍﺯ ﺭﻭﻱ ﺩﺳﺘﻮﺭﺍﻟﻌﻤﻠﻬﺎﻱ ﺩﺍﺧﻞ ﺻﻔﺤﺎﺕ ﻭﺏ ﻭ ﺑﺎ ﻛﻤﻚ ﺗﮓ ﻫﺎ ﺑﻪ ﻧﻤﺎﻳﺶ ﺻﻔﺤﺎﺕ ﻣﻴﭙﺮﺩﺍﺯﻧﺪ.
ﻭﻇﻴﻔﻪ ﺍﺻﻠﻲ ﺗﮓ ﻫﺎﻱ ﺍﭼﺘﻤﻞ ) ( HTML tagsﺑﻴﺎﻥ ﻧﺤﻮﻩ ﭼﻴﺪﻥ ﻭ ﻗﺮﺍﺭﮔﺮﻓﺘﻦ ﺍﻃﻼﻋﺎﺕ ﺍﺳﺖ ﻭ ﻇﺎﻫﺮ ﻧﻤﺎﻳﺶ ﺑﺎ CSSﻣﻴﺒﺎﺷﺪ.
ﻳﻚ ﺗﮓ ﺍﭼﺘﻤﻞ ﭼﻴﺰﻱ ﺷﺒﻴﻪ > <p/> abc <pﺍﺳﺖ.
ﻋﻨﺎﺻﺮ ) ( Elements
ﻳﻚ ﻓﺎﻳﻞ ﺍﭼﺘﻤﻞ ﻣﺘﻨﻲ ﺍﺯ ﻧﻮﻉ textﺍﺳﺖ ﻛﻪ ﺍﺯ ﻋﻨﺎﺻﺮ ﻳﺎ elementﻫﺎ ﺗﺸﻜﻴﻞ ﺷﺪﻩ ﻭ ﺑﺮﺍﻱ ﺍﻳﺠﺎﺩ ﻋﻨﺎﺻﺮ ﺍﺯ ﺗﮓ ﻫﺎ ﻳﺎ tagsﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﺸﻮﺩ .ﺩﺭ
ﺍﻳﻦ ﻓﺼﻞ ﺑﺎ ﻋﻨﺎﺻﺮ ﻭ ﺗﮓ ﻫﺎ ﺍﭼﺘﻤﻞ ﺁﺷﻨﺎ ﺧﻮﺍﻫﻴﺪ ﺷﺪ.
><html
><head
><title>Title of page</title
></head
><body
>This is my first html page. <b>This text is bold</b
></body
></html
><body
>This is my first homepage. <b>This text is bold</b
></body
ﻋﻨﺼﺮ ﺍﭼﺘﻤﻞ ﺑﺎﻻ ﺑﺎ ﺗﮓ > <bodyﺷﺮﻭﻉ ﺷﺪﻩ ﻭ ﺑﺎ ﺗﮓ > </bodyﭘﺎﻳﺎﻥ ﻣﻲ ﻳﺎﺑﺪ .ﻫﻤﺎﻧﻄﻮﺭ ﻛﻪ ﻣﻴﺒﻴﻨﻴﺪ ﮔﺎﻫﻲ ﻳﻚ ﻋﻨﺼﺮ ﺣﺎﻭﻱ ﻳﻚ ﻳﺎ ﭼﻨﺪ
ﺗﮓ ﺩﻳﮕﺮ ﻣﻴﺒﺎﺷﺪ.ﻭﻇﻴﻔﻪ ﺗﮓ > <bodyﺗﻌﻴﻴﻦ ﺑﺪﻧﻪ ﺍﺻﻠﻲ ﻳﺎ bodyﻳﻚ ﻣﺘﻦ ﺍﭼﺘﻤﻞ ﺍﺳﺖ.ﻻﺯﻡ ﺑﻪ ﻳﺎﺩﺁﻭﺭﻱ ﺍﺳﺖ ﻛﻪ ﺗﻨﻬﺎ ﺍﻃﻼﻋﺎﺕ ﺑﺨﺶ
> <bodyﻳﻚ ﻓﺎﻳﻞ ﺍﭼﺘﻤﻞ ﺩﺭ ﺻﻔﺤﻪ ﻣﺮﻭﺭﮔﺮ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ.
ﺗﮓ ﻫﺎ ﻣﻴﺘﻮﺍﻧﻨﺪ ﺣﺎﻭﻱ ﺍﻃﻼﻋﺎﺕ ﺍﺿﺎﻓﻲ ﺩﻳﮕﺮ ﺑﺎﺷﻨﺪ ،ﺑﻪ ﺍﻳﻦ ﺍﻃﻼﻋﺎﺕ ﺷﻨﺎﺳﻪ ﻳﺎ Attributeﻣﻴﮕﻮﻳﻨﺪ ﻭ ﻭﻇﻴﻔﻪ ﺁﻧﻬﺎ ﺑﻴﺎﻥ ﺩﻳﮕﺮ ﺍﻃﻼﻋﺎﺕ ﻳﻚ
ﻋﻨﺼﺮ ﻳﺎ Elementﻣﻴﺒﺎﺷﺪ .ﻣﺜﻼ ﺩﺭ ﻣﻮﺭﺩ ﺗﮓ > <bodyﺷﻨﺎﺳﻪ ﺍﻱ ﺑﻪ ﻧﺎﻡ bgcolorﻭﺟﻮﺩ ﺩﺍﺭﺩ ﻛﻪ ﺭﻧﮓ ﺯﻣﻴﻨﻪ ﻣﺘﻦ ) (backgroundﺭﺍ
ﺗﻌﻴﻴﻦ ﻣﻴﻜﻨﺪ ﺑﺮﺍﻱ ﻧﻤﻮﻧﻪ ﺍﮔﺮ ﻣﻴﺨﻮﺍﻫﻴﺪ ﻛﻪ ﺭﻧﮓ ﺯﻣﻴﻨﻪ ﺻﻔﺤﻪ ﺍﭼﺘﻤﻠﺘﺎﻥ ﺳﻴﺎﻩ ﺑﺎﺷﺪ ﻛﺎﻓﻲ ﺍﺳﺖ ﻛﻪ ﺑﻪ ﺷﻜﻞ ﺯﻳﺮ ﻋﻤﻞ ﻛﻨﻴﺪ :
>"<body bgcolor="black
ﺩﺭ ﻣﺜﺎﻝ ﺯﻳﺮ ﺗﮓ > <tableﺩﺍﺭﺍﻱ ﭼﻬﺎﺭ ﺷﻨﺎﺳﻪ ﻣﺨﺘﻠﻒ ﺑﺎ ﻧﺎﻣﻬﺎﻱ align ،height ،widthﻭ borderﻭ ﻣﻘﺎﺩﻳﺮ 100 ،60 ،centerﻭ 0
ﻣﻴﺒﺎﺷﺪ.
> "<table border="0" width="100" height="60" align="center
...
></table
ﺷﻨﺎﺳﻪ ﻫﺎ ﺑﻪ ﺻﻮﺭﺕ ﻛﻠﻲ "ﻣﻘﺪﺍﺭ=ﻧﺎﻡ" ﻳﺎ " "name=valueﻧﻮﺷﺘﻪ ﻣﻴﺸﻮﻧﺪ ﻭ ﻫﻤﻴﺸﻪ ﺑﻪ ﺗﮓ ﺷﺮﻭﻉ ﻳﻚ ﻋﻨﺼﺮ ﻳﺎ Elementﺍﺿﺎﻓﻪ ﻣﻴﺸﻮﻧﺪ ﻭ
ﻧﻬﺎﻳﺘﺎ ﺍﮔﺮ ﺩﺭ ﻳﻚ ﻋﻨﺼﺮ ﻳﺎ Elementﺷﻨﺎﺳﻪ ﻫﺎ ﻗﻴﺪ ﻧﺸﻮﻧﺪ ﺍﺯ ﻣﻘﺎﺩﻳﺮ ﻗﺮﺍﺭﺩﺍﺩﻱ ﻳﺎ defaultﺁﻧﻬﺎ ﺍﺳﺘﻔﺎﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ ﻣﺜﻼ ﺩﺭ ﺗﮓ bodyﺍﮔﺮ
ﺷﻨﺎﺳﻪ bgcolorﻧﻮﺷﺘﻪ ﻧﺸﻮﺩ ﺍﺯ ﺭﻧﮓ ﺳﻔﻴﺪ ﺑﺮﺍﻱ ﺯﻣﻴﻨﻪ ﺻﻔﺤﻪ ﺍﺳﺘﻔﺎﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ.
ﻣﻘﺪﺍﺭ ﻳﻚ ﺷﻨﺎﺳﻪ ﺭﺍ ﻣﻴﺘﻮﺍﻧﻴﺪ ﺩﺍﺧﻞ ﻧﻮﻳﺴﻪ ﻫﺎﻱ " ﻭ ﻳﺎ ' ﺑﻨﻮﻳﺴﻴﺪ ﻭ ﺍﺧﺘﻴﺎﺭ ﺩﺳﺖ ﺷﻤﺎ ﺍﺳﺖ ﻓﻘﻂ ﺩﺭ ﻣﻮﺍﺭﺩﻱ ﻛﻪ ﻣﻘﺪﺍﺭ ﻳﻚ ﺷﻨﺎﺳﻪ ﺷﺎﻣﻞ ﻧﻮﻳﺴﻪ "
ﻫﻢ ﻣﻴﺸﻮﺩ ﺑﺎﻳﺪ ﺍﺯ ﻧﻮﻳﺴﻪ ' ﺍﺳﺘﻔﺎﺩﻩ ﺷﻮﺩ.
ﺗﮓ ﻫﺎﻱ ﺍﺻﻠﻲ ) ( Basic Tags
ﺗﮓ ﻫﺎ ) ( Tagsﺍﺟﺰﺍ ﺗﺸﻜﻴﻞ ﺩﻫﻨﺪﻩ ﻋﻨﺎﺻﺮ ﻳﺎ elementsﻫﺎﻱ ﺍﭼﺘﻤﻞ ﻫﺴﺘﻨﺪ ﻭ ﺩﺭ ﺍﻳﻦ ﻓﺼﻞ ﺑﺎ ﻋﻨﺎﺻﺮ ﻭ ﺗﮓ ﻫﺎﻱ ﭘﺎﻳﻪ ﻭ ﻣﻬﻢ:
><p> , <-- comment --!> , <h6> .... <h1> , <br> , <hr
ﺁﺷﻨﺎ ﺧﻮﺍﻫﻴﺪ ﺷﺪ .ﻳﻜﻲ ﺍﺯ ﺑﻬﺘﺮﻳﻦ ﺭﻭﺵ ﻫﺎﻱ ﻳﺎﺩﮔﻴﺮﻱ ﺗﮓ ﻫﺎﻱ ﺍﭼﺘﻤﻞ ﺩﻳﺪﻥ ﻣﺜﺎﻟﻬﺎ ﻭ ﺗﻐﻴﻴﺮ ﺁﻧﻬﺎ ﻣﻴﺒﺎﺷﺪ ﻭ ﺑﺎ ﻛﻤﻚ ﺍﺩﻳﺘﻮﺭ ﺍﺧﺘﺼﺎﺻﻲ ﻣﺎ ﻭ ﺑﺎ
ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺍﻣﻜﺎﻧﺎﺕ ﻓﺎﺭﺳﻲ ﻧﻮﻳﺴﻲ ﺁﻥ ﺑﻪ ﺻﻮﺭﺕ ﺁﻧﻼﻳﻦ ﻣﻴﺘﻮﺍﻧﻴﺪ ﺑﻪ ﻣﻄﺎﻟﻌﻪ ﻭ ﻳﺎﺩﮔﻴﺮﻱ ﻣﺜﺎﻟﻬﺎ ﭘﺮﺩﺍﺧﺘﻪ ،ﻛﺪﻫﺎﻱ ﺍﭼﺘﻤﻞ ﺭﺍ ﺗﻐﻴﻴﺮ ﺩﺍﺩﻩ ﻭ ﺑﺎ ﻛﻠﻴﻚ ﺭﻭﻱ
ﺩﻛﻤﻪ "ﻧﻤﺎﻳﺶ ﻧﺘﺎﻳﺞ" ﺑﻪ ﻣﺸﺎﻫﺪﻩ ﻧﺘﺎﻳﺞ ﺑﭙﺮﺩﺍﺯﻳﺪ.
ﻣﺜﺎﻟﻬﺎ :
ﭘﺎﺭﺍﮔﺮﺍﻓﻬﺎﻱ ﺳﺎﺩﻩ:
ﭼﮕﻮﻧﮕﻲ ﻧﻤﺎﻳﺶ ﻣﺘﻮﻥ ﺑﺎ ﻛﻤﻚ ﺗﮓ > <pﻭ ﺑﺼﻮﺭﺕ ﭘﺎﺭﺍﮔﺮﺍﻓﻲ
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ:
ﭘﺎﺭﺍﮔﺮﺍﻓﻬﺎ )(Paragraphs
ﭘﺎﺭﺍﮔﺮﺍﻓﻬﺎ ﺑﺎ ﻛﻤﻚ ﺗﮓ > <pﻣﻌﺮﻓﻲ ﻣﻴﺸﻮﻧﺪ .ﻣﺮﻭﺭﮔﺮﻫﺎ ﺑﻪ ﻫﻨﮕﺎﻡ ﻧﻤﺎﻳﺶ ﻳﻚ ﭘﺎﺭﺍﮔﺮﺍﻑ ﺑﺼﻮﺭﺕ ﺍﺗﻮﻣﺎﺗﻴﻚ ﻳﻚ ﺳﻄﺮ ﺧﺎﻟﻲ ﻗﺒﻞ ﻭ ﺑﻌﺪ ﺍﺯ ﺁﻥ
ﻧﻤﺎﻳﺶ ﺧﻮﺍﻫﻨﺪ ﺩﺍﺩ.
><p>This is a paragraph</p
><p>This is another paragraph</p
ﻣﺜﺎﻝ ﺑﺎﻻ ﺩﺭ ﺻﻔﺤﻪ ﻣﺮﻭﺭﮔﺮ ﺑﺪﻳﻦ ﺷﻜﻞ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ.
ﺑﺮﺍﻱ ﺭﻓﺘﻦ ﺳﺮ ﺳﻄﺮ ﺟﺪﻳﺪ ﺍﺯ ﺗﮓ > <brﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﺸﻮﺩ .ﺩﺭ ﺍﻳﻨﺤﺎﻟﺖ ﻳﻚ ﭘﺎﺭﺍﮔﺮﺍﻑ ﺟﺪﻳﺪ ﺍﻳﺠﺎﺩ ﻧﻤﻴﺸﻮﺩ .ﺗﮓ > <brﺍﺯ ﻧﻮﻉ ﺗﮓ ﻫﺎﻱ ﺧﺎﻟﻲ ﺑﻮﺩﻩ
ﻭ ﺩﺍﺭﺍﻱ ﺗﮓ ﺍﻧﺘﻬﺎﺋﻲ )ﻣﺜﻼ > ( </brﻧﻤﻴﺒﺎﺷﺪ.
ﺑﺮﺍﻱ ﻧﻮﺷﺘﻦ ﺷﺮﺡ ﻭ ﺗﻮﺿﻴﺤﺎﺕ ﺩﺭ ﻣﻮﺭﺩ ﻛﺪﻫﺎﻱ ﺍﭼﺘﻤﻞ ﺑﺎﻳﺪ ﺍﺯ ﺗﮓ ﺧﺎﺻﻲ ﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ .ﺑﺮﺍﻱ ﺍﻳﻨﻜﺎﺭ ﺑﺎﻳﺪ ﻣﺘﻦ ﻭ ﺷﺮﺣﺘﺎﻥ ﺭﺍ ﺩﺭﻭﻥ ﻋﻼﺋﻢ > --ﻭ
<!--ﻗﺮﺍﺭ ﺩﻫﻴﺪ .ﻣﺮﻭﺭﮔﺮ ﺗﮓ ﻫﺎﻱ commentﺭﺍ ﺩﺭ ﻧﻈﺮ ﻧﮕﺮﻓﺘﻪ ﻭ ﻣﺤﺘﻮﻱ ﺁﻧﻬﺎ ﺭﺍ ﻧﻤﺎﻳﺶ ﻧﺨﻮﺍﻫﺪ ﺩﺍﺩ ﻭ ﻓﻘﻂ ﺷﺮﺡ ﻭ ﺗﻮﺿﻴﺤﺎﺕ ﺑﺮﺍﻱ ﺑﺮﻧﺎﻣﻪ
ﻧﻮﻳﺲ ﻭ ﺩﻳﮕﺮ ﺍﻓﺮﺍﺩﻱ ﻛﻪ ﺍﺣﺘﻤﺎﻻ ﺩﺭ ﺁﻳﻨﺪﻩ ﺑﺎ ﻛﺪ ﺍﭼﺘﻤﻞ ﻛﺎﺭ ﺧﻮﺍﻫﻨﺪ ﻛﺮﺩ ﻣﻔﻴﺪ ﺧﻮﺍﻫﺪ ﺑﻮﺩ) .ﺑﻪ ﻣﺤﻞ ﻧﻮﻳﺴﻪ "!" ﺗﻮﺟﻪ ﻛﻨﻴﺪ! ﻓﻘﻂ ﻳﻜﻲ ﻭ ﺁﻧﻬﻢ ﺩﺭ
ﺍﺑﺘﺪﺍ(
ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ ﺑﺪﻟﻴﻞ ﻭﺟﻮﺩ ﻣﺮﻭﺭﮔﺮﻫﺎﻱ ﻣﺘﻔﺎﻭﺕ )ﺍﻛﺴﭙﻠﻮﺭﺭ ،ﻧﺖ ﺍﺳﻜﻴﭗ ،ﻓﺎﻳﺮﻓﺎﻛﺲ ،ﺻﻔﺮﻱ (...،ﻭ ﺑﻪ ﺩﻟﻴﻞ ﺗﻔﺎﻭﺕ ﺩﻗﺖ ﻧﻤﺎﻳﺶ ﺻﻔﺤﻪ
ﻧﻤﺎﻳﺶ ﻛﺎﻣﭙﻴﻮﺗﺮﻫﺎ ،ﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﺑﺎ ﺍﻧﺪﻛﻲ ﺗﻔﺎﻭﺕ ﺩﺭ ﺣﺎﻟﺘﻬﺎﻱ ﻣﺨﺘﻠﻒ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﻣﻴﺸﻮﻧﺪ ﻭ ﻫﻤﻴﺸﻪ ﺳﻌﻲ ﻛﻨﻴﺪ ﻛﻪ ﺻﻔﺤﺎﺗﺘﺎﻥ ﺭﺍ ﻧﻪ ﺗﻨﻬﺎ ﺑﺎ
ﺍﻛﺴﭙﻠﻮﺭﺭ ﻛﻪ ﻣﻌﺮﻭﻓﺘﺮﻳﻦ ﻣﺮﻭﺭﮔﺮ ﺍﺳﺖ ﺑﻠﻜﻪ ﺑﺎ ﻓﺎﻳﺮﻓﺎﻛﺲ ﻭ ﻧﺖ ﺍﺳﻜﻴﭗ ﻭ ﺣﺘﻲ ﻣﺮﻭﺭﮔﺮﻫﺎﻱ ﻛﺎﻣﭙﻴﻮﺗﺮﻫﺎﻱ ﻣﻜﻴﻨﺘﺎﺵ ﭼﻚ ﻛﺮﺩﻩ ﻭ ﻫﻤﭽﻨﻴﻦ ﺩﺭ ﺩﻗﺖ
ﻫﺎﻱ ﻧﻤﺎﻳﺶ x600800ﻭ X7681024ﺁﻥ ﺭﺍ ﺍﻣﺘﺤﺎﻥ ﻛﻨﻴﺪ.
ﺍﺯ ﻧﻈﺮ ﻓﺎﺻﻠﻪ ﻭ ﺳﻄﺮ ﺑﻨﺪﻱ ،ﻣﺘﻨﻲ ﻛﻪ ﺩﺭ ﺻﻔﺤﻪ ﺍﺩﻳﺘﻮﺭﺗﺎﻥ ﺗﺎﻳﭗ ﻣﻴﻜﻨﻴﺪ ﺑﺎ ﭼﻴﺰﻱ ﻛﻪ ﻣﺮﻭﺭﮔﺮ ﻧﻤﺎﻳﺶ ﺧﻮﺍﻫﺪ ﺩﺍﺩ ﻣﺘﻔﺎﻭﺕ ﺧﻮﺍﻫﺪ ﺑﻮﺩ.ﻫﻤﻴﺸﻪ ﺑﻪ ﻳﺎﺩ
ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ ﻓﺎﺻﻠﻪ ﻫﺎﻱ ﺍﺿﺎﻓﻲ ) (spaceﻭ ﺧﻄﻬﺎﻱ ﺧﺎﻟﻲ ﻣﺘﻦ ﺩﺭ ﺻﻔﺤﻪ ﺍﺩﻳﺘﻮﺭ ﺗﻮﺳﻂ ﻣﺮﻭﺭﮔﺮ ﺩﺭ ﻧﻈﺮ ﮔﺮﻓﺘﻪ ﻧﺸﺪﻩ ﻭ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﻧﺨﻮﺍﻫﺪ
ﺷﺪ.
ﺑﺮﺍﻱ ﻧﻤﺎﻳﺶ ﺑﻴﺶ ﺍﺯ ﻳﻚ ﻓﺎﺻﻠﻪ ﺧﺎﻟﻲ ﺑﺎﻳﺪ ﺍﺯ ﻧﻮﻳﺴﻪ ﻫﺎ ﻳﺎ ﺗﺮﻛﻴﺐ ﻛﺎﺭﺍﻛﺘﺮﻱ ﺧﺎﺻﻲ ) (None Breaking Spaceﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ .ﺩﺭ ﺑﺨﺶ )
( Entitiesﻧﻬﺎﺩﻫﺎ ﺑﻪ ﺍﻳﻦ ﻣﻄﻠﺐ ﺑﻴﺸﺘﺮ ﭘﺮﺩﺍﺧﺘﻪ ﺧﻮﺍﻫﺪ ﺷﺪ.
ﻓﺎﺻﻠﻪ ﻫﺎﻱ ﺍﺿﺎﻓﻲ ﺑﻴﻦ ﻛﻠﻤﺎﺕ ﺩﺭ ﻳﻚ ﻣﺘﻦ ﺍﭼﺘﻤﻞ ﺗﻮﺳﻂ ﻣﺮﻭﺭﮔﺮﻫﺎ ﺩﻳﺪﻩ ﻧﺨﻮﺍﻫﺪ ﺷﺪ ﻭ ﺩﺭ ﻧﻤﺎﻳﺶ ﻫﻤﻴﺸﻪ ﺗﺒﺪﻳﻞ ﺑﻪ ﺗﻨﻬﺎ ﻳﻚ ﻓﺎﺻﻠﻪ )(space
ﺧﻮﺍﻫﺪ ﺷﺪ .ﺩﺭ ﺿﻤﻦ ﻳﻚ ﺧﻂ ﺧﺎﻟﻲ ﺩﺭ ﻣﺘﻦ ﺍﺩﻳﺘﻮﺭ ﺑﺼﻮﺭﺕ ﻳﻚ ﻓﺎﺻﻠﻪ ﻳﺎ spaceﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ.
ﺑﺮﺍﻱ ﺍﻳﺠﺎﺩ ﻳﻚ ﺳﻄﺮ ﺟﺪﻳﺪ ﻫﻴﭽﮕﺎﻩ ﺍﺯ ﻳﻚ ﺗﮓ > <pﺧﺎﻟﻲ ﺍﺳﺘﻔﺎﺩﻩ ﻧﻜﻨﻴﺪ ﻭ ﺑﻪ ﺟﺎﻱ ﺁﻥ ﺍﺯ ﺗﮓ > <brﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ..
ﻣﺮﻭﺭﮔﺮﻫﺎ ﺑﻪ ﻫﻨﮕﺎﻡ ﻧﻤﺎﻳﺶ ﺑﻌﻀﻲ ﻋﻨﺎﺻﺮ ﺑﺼﻮﺭﺕ ﺍﺗﻮﻣﺎﺗﻴﻚ ﻳﻚ ﺳﻄﺮ ﺧﺎﻟﻲ ﻗﺒﻞ ﻭ ﺑﻌﺪ ﺍﺯ ﺁﻥ ﻋﻨﺼﺮ ﻧﻤﺎﻳﺶ ﺧﻮﺍﻫﻨﺪ ﺩﺍﺩ .ﺑﺮﺍﻱ ﻧﻤﻮﻧﻪ ﺍﻳﻦ ﮔﺮﻭﻩ ﺍﺯ
ﻋﻨﺼﺮﻫﺎ ﻣﻴﺘﻮﺍﻥ ﺍﺯ ﭘﺎﺭﺍﮔﺮﺍﻑ )> (<pﻭ ﺳﺮﺗﻴﺘﺮﻫﺎ )> (<..hﻧﺎﻡ ﺑﺮﺩ ،ﺑﺎ ﻛﻤﻚ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﻣﻴﺘﻮﺍﻧﻴﺪ ﺍﻳﻦ ﭘﻴﺶ ﻓﺮﺿﻬﺎ ﺭﺍ ﺗﻐﻴﻴﺮ ﺩﻫﻴﺪ.
ﺗﮓ > <hrﻳﺎ Roler Horizontalﺳﺒﺐ ﻧﻤﺎﻳﺶ ﻳﻚ ﺧﻂ ﺍﻓﻘﻲ ﺧﻮﺍﻫﺪ ﺷﺪ ﻭ ﺩﺭ ﻭﺍﻗﻊ ﺑﺨﺶ ﻫﺎﻱ ﻣﺨﺘﻠﻒ ﻣﻄﺎﻟﺐ ﺍﻳﻦ ﺻﻔﺤﺎﺕ ﺑﺎ ﻛﻤﻚ ﺍﻳﻦ
ﺗﮓ ﺍﺯ ﻫﻢ ﺟﺪﺍ ﺷﺪﻩ ﺍﻧﺪ.
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ:
ﺳﺮ ﺗﻴﺘﺮﻫﺎ
ﺍﻳﻦ ﻣﺜﺎﻝ ﻧﺤﻮﻩ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺗﮕﻬﺎﻱ > <h6> .... <h1ﺭﺍ ﺩﺭ ﻳﻚ ﻣﺘﻦ ﺍﭼﺘﻤﻞ ﻧﺸﺎﻥ ﻣﻴﺪﻫﺪ.
ﺗﺮﺍﺯﺑﻨﺪﻱ ﺳﺮ ﺗﻴﺘﺮﻫﺎ
ﺍﻳﻦ ﻣﺜﺎﻝ ﻧﺤﻮﻩ ﺗﺮﺍﺯ ﺑﻨﺪﻱ ﻳﻚ ﺳﺮ ﺗﻴﺘﺮ ﺭﺍ ﺑﺎ ﻛﻤﻚ ﺷﻨﺎﺳﻪ ﻳﺎ attributeﺍﻱ ﺑﻪ ﻧﺎﻡ alignﻧﺸﺎﻥ ﻣﻴﺪﻫﺪ .ﺩﺭ ﺍﻳﻦ ﺣﺎﻟﺖ ﺳﺮ ﺗﻴﺘﺮ ﺩﺭ ﻭﺳﻂ ﻧﺎﺣﻴﻪ
ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ.
) "( align="center
ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ comment
ﺍﻳﻦ ﻣﺜﺎﻝ ﻧﺤﻮﻩ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ commentﺩﺭ ﻛﺪﻫﺎﻱ ﺍﭼﺘﻤﻞ ﺭﺍ ﻧﻤﺎﻳﺶ ﻣﻴﺪﻫﺪ.
ﺗﮕﻬﺎﻱ ﺍﺻﻠﻲ
ﺩﺭ ﺟﺪﻭﻝ ﺯﻳﺮ ﻋﻨﺎﺻﺮ ﻣﻌﺮﻓﻲ ﺷﺪﻩ ﺩﺭ ﺍﻳﻦ ﻓﺼﻞ ﺑﻪ ﻫﻤﺮﺍﻩ ﻟﻴﻨﻜﻬﺎﻱ ﻣﺮﺑﻮﻃﻪ ﺟﻬﺖ ﻣﻄﺎﻟﻌﻪ ﺑﻴﺸﺘﺮ ﺁﻭﺭﺩﻩ ﺷﺪﻩ ﺍﺳﺖ .ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ ﺑﺮﺍﻱ ﻫﺮ
ﻋﻨﺼﺮ ﻓﻬﺮﺳﺘﻲ ﺍﺯ ﺷﻨﺎﺳﻪ ﻫﺎ ﻳﺎ Attributesﻣﻮﺟﻮﺩ ﺍﺳﺖ ﻭ ﻫﻤﭽﻨﻴﻦ ﺑﻪ ﺷﻨﺎﺳﻪ ﻫﺎﻱ ﻛﻨﺎﺭﮔﺬﺍﺷﺘﻪ ﺷﺪﻩ ) (Deprecatedﺩﺭ ﻧﺴﺨﻪ ﻫﺎﻱ ﺁﻳﻨﺪﻩ
ﺍﭼﺘﻤﻞ ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻭ ﺳﻌﻲ ﻛﻨﻴﺪ ﻛﻪ ﺍﺯ ﺁﻧﻬﺎ ﺍﺳﺘﻔﺎﺩﻩ ﻧﻜﻨﻴﺪ.
:
ﺩﺭ ﻣﻮﺭﺩ ﻓﺎﺭﺳﻲ ﻧﻮﻳﺴﻲ ﻭ ﻓﺎﺭﺳﻲ ﺧﻮﺍﻧﻲ ﺍﮔﺮ ﺍﺯ ﺍﺩﻳﺘﻮﺭ ﺁﻧﻼﻳﻦ ﻣﺎ ﺩﺭ ﺑﺨﺶ ﻣﺜﺎﻟﻬﺎ ﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﻜﻨﻴﺪ ﻧﻴﺎﺯﻱ ﺑﻪ ﻓﺎﺭﺳﻲ ﺳﺎﺯﻱ ﻧﺪﺍﺭﻳﺪ ﻭ ﺑﺎ ﻛﻤﻚ ﺍﺩﻳﺘﻮﺭ
ﻣﺰﺑﻮﺭ ﺑﺎﻳﺪ ﺑﻪ ﺭﺍﺣﺘﻲ ﻗﺎﺩﺭ ﺑﻪ ﺗﺎﻳﭗ ﻓﺎﺭﺳﻲ ﻭ ﻻﺗﻴﻦ ﺑﺎﺷﻴﺪ.ﺍﮔﺮ ﻣﻴﺨﻮﺍﻫﻴﺪ ﻛﻪ ﺩﺭ ﻫﺮ ﺣﺎﻝ ﻛﺎﻣﭙﻴﻮﺗﺮﺗﺎﻥ ﺭﺍ ﻓﺎﺭﺳﻲ ﻛﻨﻴﺪ ،ﻣﻄﺎﻟﻌﻪ ﺻﻔﺤﺎﺕ ﺯﻳﺮ ﺭﺍﻫﻨﻤﺎﻱ
ﺑﺴﻴﺎﺭ ﺧﻮﺑﻲ ﺑﺮﺍﻱ ﻓﺎﺭﺳﻲ ﺳﺎﺯﻱ ﻣﻴﺒﺎﺷﻨﺪ:
ﻳﻮﻧﻲﻛﺪ ﭼﻴﺴﺖ؟
ﺑﻪ ﻃﻮﺭ ﺧﻼﺻﻪ ﻭ ﺑﺎ ﺻﺮﻑ ﻧﻈﺮ ﺍﺯ ﺑﻌﻀﻲ ﺍﺯ ﭘﻴﭽﻴﺪﮔﻴﻬﺎ ﻣﻲﺷﻮﺩ ﮔﻔﺖ ﻳﻮﻧﻲﻛﺪ ﻣﺠﻤﻮﻋﻪﺍﻱ ﺑﺴﻴﺎﺭ ﺑﺰﺭگ ﺍﺯ ﻧﻮﻳﺴﻪ )(characterﻫﺎﻱ ﻣﺨﺘﻠﻒ ﺍﺳﺖ.
ﺍﻳﻦ ﻣﺠﻤﻮﻋﻪ ﺗﻘﺮﻳﺒﺎً ﺗﻤﺎﻡ ﻧﻮﻳﺴﻪﻫﺎﻱ ﻣﻮﺭﺩ ﺍﺳﺘﻔﺎﺩﻩ ﺩﺭ ﻛﺎﻣﭙﻴﻮﺗﺮ ﺩﺭ ﺟﻬﺎﻥ ﺭﺍ ﺩﺭ ﺧﻮﺩ ﺩﺍﺭﺩ .ﺍﺯ ﺣﺮﻑ ﺳﻴﻦ ﺍﻟﻔﺒﺎﻱ ﻓﺎﺭﺳﻲ ﮔﺮﻓﺘﻪ ﺗﺎ ﺣﺮﻭﻑ ﺍﻟﻔﺒﺎﻱ ﭼﻴﻨﻲ
ﺷﻤﺎﺭﻩ ﻳﻜﺘﺎ
ٴ ﻭ ﺍﻧﻮﺍﻉ ﻭ ﺍﻗﺴﺎﻡ ﻋﻼﻣﺖﻫﺎ ﻭ ﺣﺘﻲ ﺧﻂ ﻣﻴﺨﻲ ﻓﺎﺭﺳﻲ ﺑﺎﺳﺘﺎﻥ .ﻣﻬﻤﺘﺮﻳﻦ ﺧﺎﺻﻴﺖ ﻳﻮﻧﻲﻛﺪ ﺍﻳﻦ ﺍﺳﺖ ﻛﻪ ﺑﻪ ﻫﺮ ﻛﺪﺍﻡ ﺍﺯ ﺍﻳﻦ ﻧﻮﻳﺴﻪﻫﺎ ﻳﻚ
ﺍﺧﺘﺼﺎﺹ ﻣﻲﺩﻫﺪ ﻛﻪ ﺑﻪ ﺁﻥ ﻛﺪ ﻳﻮﻧﻲﻛﺪ ﺁﻥ ﻧﻮﻳﺴﻪ ﻣﻲﮔﻮﻳﻨﺪ .ﻛﺪ ﻳﻮﻧﻲﻛﺪ ﻱ ﻓﺎﺭﺳﻲ U+06CCﺍﺳﺖ ﺩﺭ ﺣﺎﻟﻲ ﻛﻪ ﻛﺪ ﻳﻮﻧﻲﻛﺪ ﻱ ﻋﺮﺑﻲ
U+064Aﺍﺳﺖ .ﻭﻗﺘﻲ ﻳﻚ ﭘﺮﻭﻧﺪﻩ ﺫﺧﻴﺮﻩ ﻣﻲﺷﻮﺩ ﺍﻳﻦ ﻛﺪﻫﺎ ﻫﺴﺘﻨﺪ ﻛﻪ ﺫﺧﻴﺮﻩ ﻣﻲﺷﻮﻧﺪ ﻧﻪ ﺷﻜﻞ ﻧﻮﻳﺴﻪﻫﺎ .ﺑﻨﺎﺑﺮ ﺍﻳﻦ ﺗﺄﺛﻴﺮ ﺍﻳﻦ ﻣﺴﺄﻟﻪ ﺍﻳﻦ ﺍﺳﺖ
ﻛﻪ ﺍﮔﺮ ﭘﺮﻭﻧﺪﻩﺍﻱ ﺑﺎ ﻗﺎﻟﺐ ﻳﻮﻧﻲﻛﺪ ﺫﺧﻴﺮﻩ ﺷﻮﺩ ﻭ ﺩﺭ ﻫﺮ ﻛﺠﺎﻱ ﺩﻳﮕﺮ ﺩﻧﻴﺎ ﻛﻪ ﺍﺯ ﻳﻮﻧﻲﻛﺪ ﺍﺳﺘﻔﺎﺩﻩ ﻣﻲﻛﻨﺪ ﺑﺎﺯ ﺷﻮﺩ ،ﻫﻤﺎﻥ ﻧﻮﻳﺴﻪﻫﺎ ﺩﺭﻭﻧﺶ ﻗﺮﺍﺭ
ﺧﻮﺍﻫﻨﺪ ﺩﺍﺷﺖ.
ﺩﺭ ﺍﻳﻨﺼﻮﺭﺕ ﻣﺮﻭﺭﮔﺮ ﻳﺎ Browserﻗﺒﻞ ﺍﺯ ﻧﻤﺎﻳﺶ ﺻﻔﺤﻪ ﺍﺯ ﺭﻭﻱ ﻣﺘﺎﺗﮓ ﻓﻮﻕ ﻧﻮﻉ ﻛﺪﮔﺰﺍﺭﻱ ) (Encodingﺭﺍ ﺗﺸﺨﻴﺺ ﺩﺍﺩﻩ ﻭ ﺩﻳﮕﺮ ﻣﺜﻼ
ﻧﻴﺎﺯﻱ ﺑﻪ ﺗﻌﻴﻴﻦ ﺩﺳﺘﻲ )ﺩﺭﺍﻛﺴﭙﻠﻮﺭﻭﺭ ( View/Encoing/Unicode / UTF-8 : 5ﻧﻮﻉ Encoingﺗﻮﺳﻂ ﺑﺎﺯﺩﻳﺪﻛﻨﻨﺪﻩ ﺳﺎﻳﺖ ﻧﺨﻮﺍﻫﺪ
ﺑﻮﺩ.
•ﺷﻨﺎﺳﻪ ﻳﺎ attributeﻱ ﺑﻪ ﻧﺎﻡ dir
ﺳﻤﺖ ﻭ ﺟﻬﺖ ﻧﻤﺎﻳﺶ ﻣﺘﻮﻥ ﻻﺗﻴﻦ ﺑﻪ ﺻﻮﺭﺕ ﭘﻴﺶ ﻓﺮﺽ ﻭ defaultﺍﺯ ﭼﭗ ﺑﻪ ﺭﺍﺳﺖ )ltrﻳﺎ (Right To Leftﻣﻴﺒﺎﺷﺪ .ﺩﺭ ﻣﻮﺭﺩ ﻣﺘﻮﻥ ﻭ
ﺟﻤﻼﺕ ﻓﺎﺭﺳﻲ ﺑﺎﻳﺪ ﺑﺎ ﻛﻤﻚ ﺭﻭﺷﻲ ﺟﻬﺖ ﻧﻤﺎﻳﺶ ﭘﻴﺶ ﻓﺮﺽ ﺭﺍ ﺑﻪ "ﺭﺍﺳﺖ ﺑﻪ ﭼﭗ" ﺗﻐﻴﻴﺮ ﺩﻫﻴﺪ .ﺷﻨﺎﺳﻪ ﻳﺎ attributeﻱ ﺑﻪ ﻧﺎﻡ dirﻳﺎ ﻫﻤﺎﻥ
directionﺍﻳﻦ ﻛﺎﺭ ﺭﺍ ﺑﺮﺍﻱ ﺷﻤﺎ ﺍﻧﺠﺎﻡ ﻣﻴﺪﻫﺪ .ﺍﻳﻦ ﺷﻨﺎﺳﻪ ﺩﺍﺭﺍﻱ ﺩﻭ ﻣﻘﺪﺍﺭ ﻣﻤﻜﻦ ﻣﻴﺒﺎﺷﺪ :
ﻣﺜﻼ ﺑﺮﺍﻱ ﻧﻤﺎﻳﺶ ﺟﻤﻠﻪ ﻓﺎﺭﺳﻲ "ﺳﻼﻡ ﺑﻪ ﺩﻧﻴﺎﻱ ﻭﺏ!" ﺑﺎ ﻛﻤﻚ ﻋﻨﺎﺻﺮ pﻳﺎ divﻛﺎﻓﻲ ﺍﺳﺖ ﻛﻪ ﺑﻪ ﻳﻜﻲ ﺍﺯ ﺷﻜﻠﻬﺎﻱ ﺯﻳﺮ ﻋﻤﻞ ﺷﻮﺩ:
ﺩﺭ ﺑﺴﻴﺎﺭﻱ ﺍﺯ ﻋﻨﺎﺻﺮ ﻭ ﺗﮓ ﻫﺎﻱ ﺍﭼﺘﻤﻞ ﺍﻣﻜﺎﻥ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺷﻨﺎﺳﻪ dirﻣﻴﺴﺮ ﺑﻮﺩﻩ ﻭ ﺑﻪ ﻋﻨﻮﺍﻥ ﻧﻤﻮﻧﻪ ﻣﻴﺘﻮﺍﻥ ﺍﺯ ﻋﻨﺎﺻﺮ ﺯﻳﺮ ﻧﺎﻡ ﺑﺮﺩ:
<p> , <div> , <html> , <body> , <table> , <tr> , <td> , <h1 ... h6> , <input> , <pre> , <select> ,
<span> , ...
ﻣﺜﺎﻟﻬﺎﻱ ﺯﻳﺮ ﻧﺤﻮﻩ ﺗﺮﺍﺯﺑﻨﺪﻱ ﻣﺘﻮﻥ ﻓﺎﺭﺳﻲ ﺭﺍ ﺑﻪ ﻧﻤﺎﻳﺶ ﻣﻴﮕﺬﺍﺭﻧﺪ ﻭ ﺑﺮﺍﻱ ﻣﻄﺎﻟﻌﻪ ﺑﻴﺸﺘﺮ ﺩﺭ ﻣﻮﺭﺩ ﺗﺮﺍﺯﺑﻨﺪﻱ ﻣﺘﻮﻥ "ﺭﺍﺳﺖ ﺑﻪ ﭼﭗ" ﺑﻪ ﺍﻳﻦ ﺻﻔﺤﻪ
ﻣﺮﺍﺟﻌﻪ ﻛﻨﻴﺪ) .ﻋﻨﺎﺻﺮ Span ،BDOﻭ ﺷﻨﺎﺳﻪ langﻫﻢ ﺑﺮﺍﻱ ﻣﻄﺎﻟﻌﻪ ﻣﻔﻴﺪ ﻣﻴﺒﺎﺷﻨﺪ(.
<b> , <big> , <code> , <del> , <em> , <i> , <ins> , <kbd> , <pre> , <s> , <samp> , <small> ,
><strike> , <strong> , <sub> , <sup> , <tt> , <u> , <var
ﺍﮔﺮ ﻣﻴﺨﻮﺍﻫﻴﺪ ﻛﻪ ﺳﻮﺭﺱ ﻳﺎ ﺍﺻﻞ ﻛﺪﻫﺎﻱ ﺍﭼﺘﻤﻞ ﺻﻔﺤﺎﺕ ﻭﺏ ﺭﺍ ﺑﺒﻴﻨﻴﺪ ﻛﺎﻓﻲ ﺍﺳﺖ ﻛﻪ ﺩﺭ ﻣﻨﻮﻱ Viewﻣﺮﻭﺭﮔﺮﺗﺎﻥ ﺣﺎﻟﺖ Source o
ﻳﺎ Page Sourceﺭﺍ ﺍﻧﺘﺨﺎﺏ ﻛﺮﺩﻩ ﻭ ﻣﺮﻭﺭﮔﺮ ﻛﺪ ﺍﭼﺘﻤﻞ ﺭﺍ ﺩﺭﻭﻥ ﺍﺩﻳﺘﻮﺭﻱ ﺑﺎﺯ ﻛﺮﺩﻩ ﻭ ﻗﺎﺑﻞ ﺫﺧﻴﺮﻩ ﺗﻮﺳﻂ ﺷﻤﺎ ﺑﺮﺍﻱ ﺍﺳﺘﻔﺎﺩﻩ ﻫﺎﻱ
ﺑﻌﺪﻱ ﻣﻴﺒﺎﺷﺪ.
ﺍﮔﺮ ﺻﻔﺤﻪ ﻣﻮﺭﺩ ﻧﻈﺮ ﺍﺯ ﻣﺠﻤﻮﻋﻪ ﻓﺮﻳﻤﻬﺎ ) (Framesetﺍﺳﺘﻔﺎﺩﻩ ﻛﺮﺩﻩ ﺑﺎﺷﺪ ﺑﺮﺍﻱ ﺩﻳﺪﻥ ﺳﻮﺭﺱ ﻛﺪ ﺍﺻﻠﻲ ﻓﺮﻳﻤﻬﺎ ﻛﺎﻓﻲ ﺍﺳﺖ ﻛﻪ ﺍﺑﺘﺪﺍ ﺑﺎ o
ﻛﻤﻚ ﺭﻭﺵ ﺑﺎﻻ ﺑﻪ ﻣﺸﺎﻫﺪﻩ ﺳﻮﺭﺱ ﻛﺪﻫﺎﻱ ﺍﭼﺘﻤﻞ ﭘﺮﺩﺍﺧﺘﻪ )ﻻﺯﻡ ﺑﻪ ﺗﻮﺿﻴﺢ ﺍﺳﺖ ﻛﻪ ﺩﺭ ﺍﻳﻦ ﺣﺎﻟﺖ ﻓﻘﻂ ﺗﻌﺎﺭﻳﻒ ﻛﻠﻲ ﻓﺮﻳﻤﻬﺎ ﻗﺮﺍﺭ
ﺩﺍﺭﻧﺪ (.ﻭ ﺳﭙﺲ ﺑﺮﺍﻱ ﺩﻳﺪﻥ ﻛﺪ ﺍﭼﺘﻤﻞ ﺍﺧﺘﺼﺎﺻﻲ ﻫﺮ ﺻﻔﺤﻪ ﺑﺎﻳﺪ ﭘﺲ ﺍﺯ " "Right Clickﺭﻭﻱ ﻫﺮ ﺻﻔﺤﻪ ""View Source
ﻛﺮﺩﻩ ﻭ ﻛﺪ ﺍﭼﺘﻤﻞ ﻫﺮ ﻓﺮﻳﻢ ﺭﺍ ﺟﺪﺍﮔﺎﻧﻪ ﺑﺒﻴﻨﻴﺪ.
ﺍﮔﺮ ﻃﺮﺍﺡ ﺳﺎﻳﺖ ﺑﺎ ﻛﻤﻚ Java Scriptﻣﺎﻧﻊ ﺩﻳﺪﻥ ﺳﻮﺭﺱ ﺗﻮﺳﻂ ﺷﻤﺎ ﻣﻴﺸﻮﺩ ،ﺍﺑﺘﺪﺍ ﺩﺭ ﻣﻨﻮﻱ Tools/Internet o
Options.../Security/Custom Levelﻣﺮﻭﺭﮔﺮﻫﺎﻱ ﺍﻛﺴﭙﻠﻮﺭﺭ ﺍﻣﻜﺎﻧﺎﺕ ﺟﺎﻭﺍﺳﻜﺮﻳﭙﺖ ﻣﺮﻭﺭﮔﺮ ﺭﺍ ﻏﻴﺮ ﻓﻌﺎﻝ ﻛﺮﺩﻩ )(disable
ﻭ ﺳﭙﺲ ﻣﺮﺍﺣﻞ ﺑﺎﻻ ﺭﺍ ﺗﻜﺮﺍﺭ ﻛﻨﻴﺪ!!!
ﺩﺭ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ Underlineﺩﻗﺖ ﻛﻨﻴﺪ ﭼﻮﻥ ﺩﺭ ﺍﻛﺜﺮ ﻣﺮﻭﺭﮔﺮﻫﺎ ،ﭘﻴﻮﻧﺪﻫﺎ ﺑﺎ ﺍﻳﻦ ﺧﻄﻮﻁ ﺯﻳﺮﻱ ﻧﺸﺎﻥ ﺩﺍﺩﻩ ﻣﻲ ﺷﻮﻧﺪ ﻭ ﺍﻳﻦ ﻣﺴﺎﻟﻪ ﻣﻴﺘﻮﺍﻧﺪ .I
ﻛﺎﺭﺑﺮﺍﻥ ﺭﺍ ﺩﭼﺎﺭ ﺍﺷﺘﺒﺎﻩ ﻛﻨﺪ .
ﺑﻪ ﻛﺎﺭﮔﻴﺮﻱ ﺗﮕﻬﺎﻱ EMﻭ STRONGﻛﻪ ﺟﺎﻳﮕﺰﻳﻦ ﺗﮕﻬﺎﻱ Iﻭ Bﻫﺴﺘﻨﺪ ،ﺍﻳﻦ ﺍﻃﻤﻴﻨﺎﻥ ﺭﺍ ﻣﻲ ﺩﻫﺪ ﻛﻪ ﺻﻔﺤﻪ ﺷﻤﺎ ﺗﻮﺳﻂ ﻫﻤﻪ .II
ﻣﺮﻭﺭﮔﺮﻫﺎ ﺑﺼﻮﺭﺕ ﺻﺤﻴﺢ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ .
ﺑﻪ ﺗﺮﺗﻴﺐ ﺑﺴﺘﻪ ﺷﺪﻥ ﺗﮕﻬﺎﻱ ﭘﺎﻳﺎﻧﻲ ﺩﺭ ﻣﺜﺎﻝ ﺯﻳﺮ ﺩﻗﺖ ﻛﻨﻴﺪ ،ﻫﻤﺎﻥ ﮔﻮﻧﻪ ﻛﻪ ﻣﺸﺎﻫﺪﻩ ﻣﻲ ﻛﻨﻴﺪ ﻋﻨﺼﺮ STRONGﺑﻌﺪ ﺍﺯ ﻋﻨﺼﺮ U .III
ﺷﺮﻭﻉ ﺷﺪﻩ ﺍﺳﺖ ،ﺑﻪ ﻫﻤﻴﻦ ﺧﺎﻃﺮ ﺗﮓ ﺧﺎﺗﻤﻪ ﺩﻫﻨﺪﻩ ﺁﻥ ﻗﺒﻞ ﺍﺯ ﺗﮓ ﺧﺎﺗﻤﻪ ﺩﻫﻨﺪﻩ Uﻗﺮﺍﺭ ﻣﻲ ﮔﻴﺮﺩ.
><U>version <STRONG>2.0</STRONG></U
Character Entities
ﺩﺭ ﺍﭼﺘﻤﻞ ﺑﻌﻀﻲ ﺍﺯ ﻧﻮﻳﺴﻪ ﻫﺎ ﺩﺍﺭﺍﻱ ﻣﻌﻨﻲ ﺧﺎﺻﻲ ﺑﻮﺩﻩ ﻭ ﺑﺮﺍﻱ ﻧﻤﺎﻳﺶ ﺁﻧﻬﺎ ﺩﺭ ﺻﻔﺤﺎﺗﺘﺎﻥ ﺑﺎﻳﺪ ﺍﺯ ﺑﺮﺍﺑﺮﻫﺎﻱ ﺧﺎﺻﻲ ﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ .ﻳﻚ character
entitiesﺍﺯ ﺳﻪ ﻗﺴﻤﺖ ﺗﺸﻜﻴﻞ ﻣﻴﺸﻮﺩ:
ﻣﺰﻳﺖ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﻧﺎﻡ entityﺩﺭ ﻣﻘﺎﺑﻞ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺷﻤﺎﺭﻩ ﻋﺪﺩﻱ ﺁﻥ ﺳﻬﻮﻟﺖ ﻳﺎﺩﺁﻭﺭﻱ ﺁﻥ ﺍﺯ ﺭﻭﻱ ﻧﺎﻣﺶ ﻣﻴﺒﺎﺷﺪ ﻭ ﻋﻴﺐ ﺁﻥ ﺍﻳﻦ ﺍﺳﺖ ﻛﻪ ﺗﻤﺎﻣﻲ
ﻣﺮﻭﺭﮔﺮﻫﺎ ﻧﺎﻡ ﮔﺬﺍﺭﻳﻬﺎﻱ ﻣﻮﺟﻮﺩ ﺑﺮﺍﻱ Entityﻫﺎ ﺭﺍ ﻗﺒﻮﻝ ﻧﺪﺍﺭﻧﺪ ﻭﻟﻲ ﺩﺭ ﻋﻮﺽ ﻫﻤﮕﻲ ﺷﻤﺎﺭﻩ ﻫﺎﻱ ﻋﺪﺩﻱ entityﻫﺎ ﺭﺍ ﺑﺨﻮﺑﻲ ﻣﻴﺸﻨﺎﺳﻨﺪ .ﺗﻮﺟﻪ
ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ entityﻫﺎ ﺑﻪ ﻛﻮﭼﻚ ﻭ ﺑﺰﺭﮔﻲ ﺣﺮﻭﻑ ﺣﺴﺎﺱ ﻫﺴﺘﻨﺪ ﻭ ﺩﺭ ﻭﺍﻗﻊ Case Sensitiveﻣﻴﺒﺎﺷﻨﺪ.
ﭘﺮ ﻛﺎﺭﺑﺮﺩﺗﺮﻳﻦ character entityﻫﺎ ﺩﺭ ﺍﭼﺘﻤﻞ ،ﻧﻮﻳﺴﻪ ﻓﺎﺻﻠﻪ ﻳﺎ Spaceﻳﺎ Blankﻣﻴﺒﺎﺷﺪ ﻭ ﻧﺎﻡ ﺭﺳﻤﻲ ﺁﻥ non-breaking space
ﻣﻴﺒﺎﺷﺪ .ﻫﻤﺎﻧﻄﻮﺭ ﻛﻪ ﻣﻴﺪﺍﻧﻴﺪ ﻣﺮﻭﺭﮔﺮﻫﺎ ﻓﺎﺻﻠﻪ ﻫﺎﻱ ﺍﺿﺎﻓﻲ ﺩﺭ ﻣﺘﻦ ﺭﺍ ﺩﺭ ﻧﻈﺮ ﻧﮕﺮﻓﺘﻪ ) (truncate spacesﻭ ﻣﺜﻼ ﺍﺯ 10ﻧﻮﻳﺴﻪ ﻓﺎﺻﻠﻪ 9 ،ﺗﺎﻱ
ﺁﻧﺮﺍ ﻧﺎﺩﻳﺪﻩ ﻣﻴﮕﻴﺮﻧﺪ ﻭ ﺑﺮﺍﻱ ﻧﻤﺎﻳﺶ ﻓﺎﺻﻠﻪ ﻫﺎﻱ ﺍﺿﺎﻓﻲ ﺑﺎﻳﺪ ﺍﺯ ;  ﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ.
)ﻧﻤﺎﻳﺶ( Result )ﺷﺮﺡ( Description )ﻧﺎﻡ( Entity Name )ﺷﻤﺎﺭﻩ ﻋﺪﺩﻱ( Entity Number
non-breaking space ;  ; 
< less than ;< ;<
ﺑﺮﺍﻱ ﺩﻳﺪﻥ ﻓﻬﺮﺳﺖ ﻛﻞ Character entityﻫﺎ ﺩﺭ ﺍﭼﺘﻤﻞ 4ﺳﺮﻱ ﺑﻪ ﺍﻳﻦ ﺻﻔﺤﻪ ﺑﺰﻧﻴﺪ.
ﭘﻴﻮﻧﺪﻫﺎﻱ ﺍﭼﺘﻤﻞ ) ( HTML Links
ﺩﺭ ﺍﻳﻦ ﺩﺭﺱ ﺑﺎ ﭘﻴﻮﻧﺪﻫﺎ ) ، ( Linksﺗﮓ ﻫﺎﻱ ﻣﺮﺑﻮﻃﻪ ﻣﺨﺼﻮﺻﺎ ﺗﮓ Anchorﻳﺎ Aﻭ ﻧﺤﻮﻩ ﺑﻪ ﻛﺎﺭ ﮔﻴﺮﻱ ﺁﻧﻬﺎ ﺁﺷﻨﺎ ﺧﻮﺍﻫﻴﺪ ﺷﺪ ،ﺑﻪ ﻳﺎﺩ ﺩﺍﺷﺘﻪ
ﺑﺎﺷﻴﺪ ﻛﻪ ﺑﺎ ﻛﻤﻚ ﭘﻴﻮﻧﺪﻫﺎ ﺍﺳﺖ ﻛﻪ ﺻﻔﺤﺎﺕ ﻭﺏ ﺑﻪ ﻫﻢ ﻣﺮﺗﺒﻂ ﻣﻴﺸﻮﻧﺪ ﻭ ﻫﻤﺎﻧﻨﺪ ﺗﺎﺭﻱ ﻧﺎﻣﺮﺋﻲ ﺍﻃﻼﻋﺎﺕ ﻭ ﺻﻔﺤﺎﺕ ﻭﺏ ﺭﺍ ﺑﻪ ﻫﻢ ﮔﺮﻩ ﻣﻴﺰﻧﻨﺪ.
ﻫﻤﭽﻨﻴﻦ ﺷﻨﺎﺳﻪ ﻫﺎﻱ ﺑﺴﻴﺎﺭ ﻣﻬﻢ target، hrefﻭ nameﺗﺸﺮﻳﺢ ﺧﻮﺍﻫﻨﺪ ﺷﺪ.
ﺩﺭ ﻣﺤﻴﻂ ﻭﺏ ،ﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﺑﺎ ﻛﻤﻚ ﭘﻴﻮﻧﺪﻫﺎ ﺑﻪ ﻳﻜﺪﻳﮕﺮ ﻣﺘﺼﻞ ) (Linkﻣﻴﺸﻮﻧﺪ .ﺍﺻﻄﻼﺡ ﺍﺑﺮﻣﺘﻦ ) (Hyper Textﺩﺭ ﻣﻘﺎﺑﻞ ﻣﺘﻦ ﺧﻄﻲ
) (Linearﻗﺮﺍﺭ ﺩﺍﺭﺩ .ﺩﺭ ﻳﻚ ﻣﺘﻦ ﻣﻌﻤﻮﻟﻲ ﺧﻮﺍﻧﺪﻥ ﺑﻪ ﺷﻜﻞ ﺧﻄﻲ ﻭ ﺍﺯ ﺍﺑﺘﺪﺍ ﺑﻪ ﺍﻧﺘﻬﺎ ﻣﻴﺒﺎﺷﺪ ﻭ ﺩﺭ ﻣﻘﺎﺑﻞ ﺩﺭ ﻳﻚ ﻣﺘﻦ ﻣﺨﺘﻠﻂ ) (Hyperﺑﺎ ﻛﻤﻚ
ﭘﻴﻮﻧﺪﻫﺎ ﻣﻴﺘﻮﺍﻥ ﺍﺯ ﻳﻚ ﻣﺘﻦ ﺑﻪ ﻫﺮ ﺻﻔﺤﻪ ﺩﻳﮕﺮ ﺩﺭ ﻭﺏ ﻣﺘﺼﻞ ﺷﺪ .ﺍﻳﻦ ﻛﺎﺭ ﺑﺎ ﻛﻤﻚ ﻋﻨﺼﺮﻱ ﻣﻌﻠﻮﻡ ﺍﻟﺤﺎﻝ! ﺑﻪ ﻧﺎﻡ Aﻳﺎ Anchorﻣﻴﺴﺮ ﻣﻴﮕﺮﺩﺩ.
ﻣﺜﺎﻟﻬﺎ
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ
ﺑﺮﺍﻱ ﺍﻳﺠﺎﺩ ﭘﻴﻮﻧﺪ ﺑﻪ ﺻﻔﺤﺎﺕ ﺩﻳﮕﺮ ﺍﺯ ﺗﮓ > <aﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﺸﻮﺩ .ﭘﻴﻮﻧﺪﻫﺎ ﻣﻴﺘﻮﺍﻧﻨﺪ ﺑﻪ ﺑﺨﺶ ﺩﻳﮕﺮﻱ ﺍﺯ ﻫﻤﺎﻥ ﺻﻔﺤﻪ ،ﺻﻔﺤﺎﺕ ﺩﻳﮕﺮ ﻭﺏ ،ﺗﺼﺎﻭﻳﺮ،
ﻓﺎﻳﻠﻬﺎﻱ ﺻﻮﺗﻲ ﻳﺎ ﺣﺘﻲ ﻓﻴﻠﻢ ﻫﺎ ﻭ ...ﺍﺷﺎﺭﻩ ﻛﻨﻨﺪ).ﺩﺭ ﻭﺍﻗﻊ ﺑﻪ ﻫﺮ ﺁﺩﺭﺱ ﺍﻳﻨﺘﺮﻧﺘﻲ(
ﻓﺮﻡ ﻛﻠﻲ ﻳﻚ ﭘﻴﻮﻧﺪ ﺑﻪ ﻗﺮﺍﺭ ﺯﻳﺮ ﺍﺳﺖ:
ﺩﺭ ﻣﺜﺎﻝ ﺑﺎﻻ ﺗﮓ > <aﺑﺮﺍﻱ ﺍﻳﺠﺎﺩ ﭘﻴﻮﻧﺪﻱ ﺑﻪ ﺻﻔﺤﻪ ﺍﻱ ﺩﻳﮕﺮ ﻛﻪ ﺁﺩﺭﺱ ﺍﻳﻨﺘﺮﻧﺘﻲ ﺁﻥ urlﻣﻴﺒﺎﺷﺪ ﺑﻜﺎﺭ ﺭﻓﺘﻪ ﺍﺳﺖ .ﺑﺮﺍﻱ ﺗﻌﻴﻴﻦ ﻣﻘﺼﺪ ﻭ ﻳﺎ ﺁﺩﺭﺱ
ﺻﻔﺤﻪ ﺟﺪﻳﺪ ﺍﺯ ﺷﻨﺎﺳﻪ ﺍﻱ ﺑﻪ ﻧﺎﻡ hrefﻛﻪ ﻫﻤﺎﻥ reference hyerlinkﻣﻴﺒﺎﺷﺪ ،ﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﺸﻮﺩ ﻭ ﻣﻘﺪﺍﺭ ﺍﻳﻦ ﺷﻨﺎﺳﻪ ﺩﺭ ﻭﺍﻗﻊ ﻫﻤﺎﻥ ﺁﺩﺭﺱ
ﺍﻳﻨﺘﺮﻧﺘﻲ ﺻﻔﺤﻪ ﻣﻘﺼﺪ ﺍﺳﺖ .ﺑﺨﺶ ﻗﺎﺑﻞ ﺭﻭﻳﺖ ﭘﻴﻮﻧﺪ ﻭ ﺩﺭ ﻭﺍﻗﻊ ﻣﺘــﻨــﻲ )ﻭ ﻳﺎ ﺗﺼﻮﻳﺮﻱ ( ﻛﻪ ﺗﻮﺳﻂ ﻣﺮﻭﺭﮔﺮ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ ﻭ ﺑﺎﺯﺩﻳﺪﻛﻨﻨﺪﻩ
ﺭﻭﻱ ﺁﻥ ﻛﻠﻴﻚ ﺧﻮﺍﻫﺪ ﻛﺮﺩ ﻣﻴﺎﻥ ﺗﮕﻬﺎﻱ > <aﻭ > </aﻗﺮﺍﺭ ﺩﺍﺩﻩ ﻣﻴﺸﻮﺩ ﻭ ﻫﺮ ﭼﻨﺪ ﻛﻪ ﺩﺭ ﻣﺜﺎﻝ ﺑﺎﻻ ﺍﻳﻦ ﺑﺨﺶ ﻣﺘﻦ " "Some Textﺍﺳﺖ
ﻭﻟﻲ ﻣﻴﺘﻮﺍﻧﺪ ﺣﺘﻲ ﻳﻚ ﺗﺼﻮﻳﺮ ﺑﺎﺷﺪ.
ﻭ ﻣﺮﻭﺭﮔﺮ ﭘﻴﻮﻧﺪ ﺑﺎﻻ ﺭﺍ ﺑﻪ ﺷﻜﻞ ﺯﻳﺮ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﻭ ﺩﺭ ﺍﺛﺮ ﻛﻠﻴﻚ ﺭﻭﻱ ﭘﻴﻮﻧﺪ ﺗﻮﺳﻂ ﺑﺎﺯﺩﻳﺪﻛﻨﻨﺪﻩ ،ﻣﺮﻭﺭﮔﺮ ﺑﻪ ﺳﺎﻳﺖ Googleﺧﻮﺍﻫﺪ ﺭﻓﺖ.
Visit Google Site
ﺑﺎ ﻛﻤﻚ ﺷﻨﺎﺳﻪ targetﺍﻣﻜﺎﻥ ﺗﻌﻴﻴﻦ ﻣﻘﺼﺪ ﭘﻴﻮﻧﺪ ﺟﺪﻳﺪ ﻓﺮﺍﻫﻢ ﻣﻴﺸﻮﺩ .ﺩﺭ ﻣﺜﺎﻝ ﺑﺎﻻ ﭘﺲ ﺍﺯ ﻛﻠﻴﻚ ﺭﻭﻱ ﭘﻴﻮﻧﺪ ،ﻣﺮﻭﺭﮔﺮ ﺳﺎﻳﺖ google.comﺭﺍ
ﺑﺎﺯ ﻛﺮﺩﻩ ﻭ ﺟﺎﻳﮕﺰﻳﻦ ﺳﺎﻳﺖ ﻓﻌﻠﻲ ﺧﻮﺍﻫﺪ ﺷﺪ .ﺍﮔﺮ ﻣﻴﺨﻮﺍﻫﻴﺪ ﻛﻪ ﻣﺮﻭﺭﮔﺮ ﭘﻴﻮﻧﺪ ﺭﺍ ﺩﺭ ﭘﻨﺠﺮﻩ ﺍﻱ ﺟﺪﻳﺪ ﺑﺎﺯ ﻛﻨﺪ ﺑﺎﻳﺪ ﺍﺯ ﺷﻨﺎﺳﻪ targetﻭ ﻣﻘﺪﺍﺭ
" "_blankﺑﺮﺍﻱ ﺁﻥ ﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ .ﻣﺜﺎﻝ ﺯﻳﺮ ﺳﺒﺐ ﺑﺎﺯ ﺷﺪﻥ ﺳﺎﻳﺖ google.comﺩﺭ ﭘﻨﺠﺮﻩ ﺟﺪﻳﺪﻱ ﺧﻮﺍﻫﺪ ﺷﺪ:
ﺷﻨﺎﺳﻪ : Name
ﺑﺎ ﻛﻤﻚ ﺷﻨﺎﺳﻪ nameﻣﻴﺘﻮﺍﻧﻴﺪ ﭘﻴﻮﻧﺪﻫﺎ ﺭﺍ ﻧﺎﻡ ﮔﺬﺍﺭﻱ ﻛﻨﻴﺪ .ﭘﻴﻮﻧﺪﻫﺎﻱ ﻧﺎﻣﮕﺬﺍﺭﻱ ﺷﺪﻩ ﺍﻣﻜﺎﻥ ﺣﺮﻛﺖ ﻣﻴﺎﻥ ﻗﺴﻤﺘﻬﺎﻱ ﻣﺨﺘﻠﻒ ﻳﻚ ﺻﻔﺤﻪ ﻳﺎ
pageﺭﺍ ﻓﺮﺍﻫﻢ ﻣﻴﻜﻨﻨﺪ ،ﻣﺨﺼﻮﺻﺎ ﻭﻗﺘﻲ ﻛﻪ ﻣﺤﺘﻮﺍﻱ ﻳﻚ ﺻﻔﺤﻪ ﺯﻳﺎﺩ ﺑﻮﺩﻩ ﻭ ﻣﺮﻭﺭﮔﺮﻓﻘﻂ ﻗﺎﺩﺭ ﺑﻪ ﻧﻤﺎﻳﺶ ﺑﺨﺸﻲ ﺍﺯ ﻣﺤﺘﻮﺍﻱ ﺻﻔﺤﻪ ﻣﻴﺒﺎﺷﺪ .ﺩﺭ
ﺍﻳﻨﺼﻮﺭﺕ ﻣﺜﻼ ﺑﺮﺍﻱ ﺭﻓﺘﻦ ﺑﻪ ﺁﺧﺮ ﻳﻚ ﻣﺘﻦ ﺩﻳﮕﺮ ﻧﻴﺎﺯﻱ ﺑﻪ Scrool downﻛﺮﺩﻥ ﺗﻤﺎﻣﻲ ﺻﻔﺤﻪ ﻧﻴﺴﺖ ﻭ ﻛﺎﻓﻲ ﺍﺳﺖ ﻛﻪ ﺑﺎﺯﺩﻳﺪﻛﻨﻨﺪﻩ ﺭﻭﻱ
ﭘﻴﻮﻧﺪﻱ ﻛﻪ ﺑﻪ ﺁﺧﺮ ﺻﻔﺤﻪ ﺍﺷﺎﺭﻩ ﻣﻴﻜﻨﺪ ﻛﻠﻴﻚ ﻛﻨﺪ.
ﻣﺜﺎﻝ :ﺑﺮﻭ ﺑﺎﻻﻱ ﺻﻔﺤﻪ!
ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﭘﻴﻮﻧﺪﻫﺎﻱ ﻧﺎﻣﮕﺬﺍﺭﻱ ﺷﺪﻩ ﺷﺎﻣﻞ ﺩﻭ ﻣﺮﺣﻠﻪ ﺍﺳﺖ:
-1ﺍﻳﺠﺎﺩ ﻳﻚ ﭘﻴﻮﻧﺪ ﻧﺎﻣﮕﺬﺍﺭﻱ ﺷﺪﻩ )ﺍﻳﻦ ﻗﺴﻤﺖ ﺑﻪ ﻋﻨﻮﺍﻥ ﻟﻨﮕﺮ ﻛﺎﺭ ﺧﻮﺍﻫﺪ ﻛﺮﺩ: (.
ﻓﺮﻡ ﻛﻠﻲ ﻳﻚ ﭘﻴﻮﻧﺪ ﻧﺎﻡ ﮔﺬﺍﺭﻱ ﺷﺪﻩ ﺑﻪ ﻗﺮﺍﺭ ﺯﻳﺮ ﺍﺳﺖ:
ﻭﻇﻴﻔﻪ ﺷﻨﺎﺳﻪ nameﺗﻌﻴﻴﻦ ﻧﺎﻡ ﺑﺮﺍﻱ ﭘﻴﻮﻧﺪ ﺍﺳﺖ ﻭ ﻣﻘﺪﺍﺭ ﺁﻥ ﻫﻤﺎﻥ ﻧﺎﻡ ﭘﻴﻮﻧﺪ ﻣﻴﺒﺎﺷﺪ .ﻧﺎﻡ ﭘﻴﻮﻧﺪ ﻫﻢ ﻫﺮ ﻧﺎﻡ ﻻﺗﻴﻨﻲ ﻣﻴﺘﻮﺍﻧﺪ ﺑﺎﺷﺪ .ﺩﺭ ﻓﺮﻡ ﻛﻠﻲ ﺑﺎﻻ،
ﻧﺎﻡ ﭘﻴﻮﻧﺪ labelﻭ ﻣﺘﻨﻲ ﻛﻪ ﺑﻌﻨﻮﺍﻥ ﭘﻴﻮﻧﺪ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﻣﻴﺸﻮﺩ ﻋﺒﺎﺭﺕ " "displayed Text to beﺧﻮﺍﻫﺪ ﺑﻮﺩ .ﻣﺜﺎﻝ ﺯﻳﺮ ﺑﻪ ﺍﻳﺠﺎﺩ ﻳﻚ ﭘﻴﻮﻧﺪ
ﻧﺎﻣﮕﺬﺍﺭﻱ ﺷﺪﻩ ﺑﺎ ﻧﺎﻡ topﻣﻴﭙﺮﺩﺍﺯﺩ:
ﺑﺮﺍﻱ ﺩﺍﺩﻥ ﻟﻴﻨﻚ ﺑﻪ ﭘﻴﻮﻧﺪﻱ ﻧﺎﻡ ﮔﺬﺍﺭﻱ ﺷﺪﻩ ،ﻛﺎﻓﻲ ﺍﺳﺖ ﻛﻪ ﭘﻴﻮﻧﺪﻱ ﻣﻌﻤﻮﻟﻲ ﺍﻳﺠﺎﺩ ﻛﺮﺩﻩ ﻭ ﺩﺭ ﻗﺴﻤﺖ hrefﺁﻥ ﺍﺑﺘﺪﺍ urlﻣﻘﺼﺪ ﻭ ﺳﭙﺲ ﻧﻮﻳﺴﻪ
#ﻭ ﺩﺭ ﻧﻬﺎﻳﺖ ﻧﺎﻡ ﭘﻴﻮﻧﺪ ﻧﺎﻣﮕﺬﺍﺭﻱ ﺷﺪﻩ ﺭﺍ ﺩﺭﺝ ﻛﻨﻴﺪ .ﻣﺜﺎﻝ ﺯﻳﺮ ﺍﻳﺠﺎﺩ ﭘﻴﻮﻧﺪﻱ ﺍﺳﺖ ﻛﻪ ﺑﻪ ﻟﻴﻨﻚ ﻧﺎﻣﮕﺬﺍﺭﻱ ﺷﺪﻩ ﺍﻱ ﺑﻪ ﻧﺎﻡ topﺍﺷﺎﺭﻩ ﻣﻴﻜﻨﺪ:
ﺩﺭ ﺍﺛﺮ ﻛﻠﻴﻚ ﺭﻭﻱ ﭘﻴﻮﻧﺪ ﺑﺎﻻ ﻣﺮﻭﺭﮔﺮ ﻣﺴﺘﻘﻴﻤﺎ ﺑﻪ ﺍﺑﺘﺪﺍﻱ ﺑﺨﺶ topﺻﻔﺤﻪ http://www.khaterat.com/www/index.cgiﺧﻮﺍﻫﺪ
ﺭﻓﺖ.
ﺍﮔﺮ ﻣﻘﺼﺪ ﭘﻴﻮﻧﺪ ﺩﺭ ﻫﻤﺎﻥ ﺻﻔﺤﻪ ﻗﺮﺍﺭ ﺩﺍﺭﺩ ﻧﻴﺎﺯﻱ ﺑﻪ ﻗﻴﺪ urlﻧﻴﺴﺖ ﻭ ﻓﻘﻂ ﻧﻮﻳﺴﻪ #ﻭ ﺳﭙﺲ ﻧﺎﻡ ﭘﻴﻮﻧﺪ ﻛﺎﻓﻲ ﺍﺳﺖ:
* ﻳﻜﻲ ﺍﺯ ﻛﺎﺭﺑﺮﺩﻫﺎﻱ ﺭﺍﻳﺞ ﭘﻴﻮﻧﺪﻫﺎﻱ ﻧﺎﻡ ﮔﺬﺍﺭﻱ ﺷﺪﻩ ﺩﺭ ﺻﻔﺤﺎﺕ ﻭ ﻣﺘﻮﻧﻲ ﻣﻴﺒﺎﺷﺪ ﻛﻪ ﻓﻬﺮﺳﺖ ﻭ ﻳﺎ ﻟﻴﺴﺘﻲ ﺍﺯ ﺍﻗﻼﻡ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺷﺪﻩ ﺍﺳﺖ ،ﻣﺎﻧﻨﺪ
ﺑﺨﺶ ﺳﺮﻓﺼﻞ ﻣﻄﺎﻟﺐ ،ﻓﻬﺮﺳﺖ FAQﻭ ﻳﺎ ...ﺩﺭ ﻫﻤﻴﻦ ﺻﻔﺤﻪ ﺩﺭ ﺩﻭ ﻣﻮﺭﺩ ﺍﺯ ﭘﻴﻮﻧﺪﻫﺎﻱ ﻧﺎﻣﮕﺬﺍﺭﻱ ﺷﺪﻩ ﺍﺳﺘﻔﺎﺩﻩ ﺷﺪﻩ ﺍﺳﺖ ،ﺁﻳﺎ ﻣﻴﺘﻮﺍﻧﻴﺪ ﺁﻧﻬﺎ ﺭﺍ
ﺑﻴﺎﺑﻴﺪ؟!
* ﺍﮔﺮ ﻣﺮﻭﺭﮔﺮ ﻧﺘﻮﺍﻧﺪ ﻳﻚ ﭘﻴﻮﻧﺪ ﻧﺎﻣﮕﺬﺍﺭﻱ ﺷﺪﻩ ﺭﺍ ﺑﻴﺎﺑﺪ ﺍﺑﺘﺪﺍﻱ ﺻﻔﺤﻪ ﻣﻘﺼﺪ ﺭﺍ ﻧﻤﺎﻳﺶ ﺧﻮﺍﻫﺪ ﺩﺍﺩ.
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ
ﻧﻤﺎﻳﺶ ﻭ ﭼﻴﺪﻥ ﺍﻃﻼﻋﺎﺗﻲ ﻛﻪ ﺑﺼﻮﺭﺕ ﺳﻄﺮﻱ ﻭ ﺳﺘﻮﻧﻲ ﻫﺴﺘﻨﺪ ﻣﺎﻧﻨﺪ ﺟﺪﻭﻟﻲ ﺍﺯ ﺍﻋﺪﺍﺩ ﻭ ﺁﻣﺎﺭ ﺗﻨﻬﺎ ﺑﺎ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺗﮓ ﻫﺎﻱ ;<p> <br>  
ﺑﺴﻴﺎﺭ ﻣﺸﻜﻞ ﻣﻴﺒﺎﺷﺪ ﻭ ﺑﻪ ﻫﻤﻴﻦ ﺩﻟﻴﻞ ﺯﺑﺎﻥ ﺍﭼﺘﻤﻞ ﺗﮕﻬﺎﻱ ﺧﺎﺻﻲ ﺭﺍ ﺑﺮﺍﻱ ﺳﺎﺧﺘﻦ ﺍﻃﻼﻋﺎﺗﻲ ﻛﻪ ﺫﺍﺗﺎ ﺟﺪﻭﻟﻲ )ﺳﻄﺮﻱ ﻭ ﺳﺘﻮﻧﻲ( ﻫﺴﺘﻨﺪ ﺩﺭ ﻧﻈﺮ
ﮔﺮﻓﺘﻪ ﺍﺳﺖ .ﺩﺭ ﺍﻳﻦ ﺩﺭﺱ ﺑﺎ ﺍﻟﻤﺎﻥ ﺟﺪﻭﻝ ) ، ( Tableﺳﻠﻮﻟﻬﺎ ﻳﺎ ﺧﺎﻧﻪ ﻫﺎ ،ﻣﺮﺯ ﻭ borderﺩﺭ ﺟﺪﺍﻭﻝ ﻭ ﺗﮓ ﻫﺎﻱ ﻣﺮﺑﻮﻃﻪ ﻣﺨﺼﻮﺻﺎ ﺗﮕﻬﺎﻱ
TD , TR ،TABLEﺁﺷﻨﺎ ﺧﻮﺍﻫﻴﺪ ﺷﺪ .ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ ﺟﺪﺍﻭﻝ ﻳﻜﻲ ﺍﺯ ﻣﻬﻤﺘﺮﻳﻦ ﺍﻟﻤﺎﻧﻬﺎﻱ ﭼﻴﺪﻣﺎﻥ ﻭ layoutﻣﻴﺒﺎﺷﻨﺪ.
ﻣﺜﺎﻟﻬﺎ:
ﻣﺮﺯ ﺟﺪﺍﻭﻝ
ﻧﻘﺶ ﺷﻨﺎﺳﻪ borderﺩﺭ ﺗﻌﻴﻴﻦ ﻣﺮﺯ ﺟﺪﺍﻭﻝ
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ
ﺟﺪﻭﻟﻬﺎ
ﺑﺮﺍﻱ ﺗﻌﺮﻳﻒ ﺟﺪﺍﻭﻝ ﺍﺯ ﺗﮓ > <tableﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﺸﻮﺩ .ﻳﻚ ﺟﺪﻭﻝ ﺍﺯ ﻳﻚ ﻳﺎ ﭼﻨﺪ ﺳﻄﺮ ﻛﻪ ﺑﺎ ﻛﻤﻚ ﺗﮓ > <trﺗﻌﺮﻳﻒ ﻣﻴﺸﻮﻧﺪ ،ﺗﺸﻜﻴﻞ ﻣﻴﺸﻮﺩ.
ﻫﺮ ﺭﺩﻳﻒ ﻳﺎ rowﺍﺯ ﻳﻚ ﻳﺎ ﭼﻨﺪ ﺳﻠﻮﻝ ،ﺧﺎﻧﻪ ﻳﺎ cellﺗﺸﻜﻴﻞ ﮔﺮﺩﻳﺪﻩ ﻛﻪ ﺑﺎ ﻛﻤﻚ ﺗﮓ > <tdﺍﻳﺠﺎﺩ ﻣﻴﺸﻮﻧﺪ .ﻧﺎﻡ ﻫﺎﻱ tdﻭ trﺑﻪ ﺗﺮﺗﻴﺐ ﺧﻼﺻﻪ
ﺷﺪﻩ row tableﻭ data tableﻣﻴﺒﺎﺷﻨﺪ.
ﻣﺤﺘﻮﻱ ﻳﻚ ﺳﻠﻮﻝ ﻣﻴﺘﻮﺍﻧﺪ ﻣﺘﻦ ،ﺗﺼﻮﻳﺮ ،ﻓﻬﺮﺳﺘﻬﺎ ،ﺟﺪﺍﻭﻝ ﺩﻳﮕﺮ ،ﭘﺎﺭﺍﮔﺮﺍﻓﻬﺎ ﻭ ...ﺑﺎﺷﺪ.
ﻛﺪ ﺍﭼﺘﻤﻞ ﺟﺪﻭﻟﻲ ﺑﺎ ﺩﻭ ﺳﻄﺮ ﻭ ﺳﻪ ﺳﺘﻮﻥ ﻧﻤﺎﻳﺶ ﺟﺪﻭﻝ ﺭﻭﺑﺮﻭ ﺗﻮﺳﻂ ﻣﺮﻭﺭﮔﺮ
></table
•ﺩﺭ ﻣﺜﺎﻝ ﺑﺎﻻ ﺷﻨﺎﺳﻪ borderﻣﺮﺯ ﺟﺪﻭﻝ ﺭﺍ ﻣﺸﺨﺺ ﻣﻴﻜﻨﺪ ،ﻣﻘﺪﺍﺭ 1ﻣﺮﺯﻱ ﺑﺎ ﺿﺨﺎﻣﺖ ﻳﻚ ﭘﻴﻜﺴﻞ ﺭﺍ ﻧﻤﺎﻳﺶ ﺧﻮﺍﻫﺪ ﺩﺍﺩ ﻭ ﻣﻘﺪﺍﺭ ﺻﻔﺮ ﺟﺪﻭﻝ ﺭﺍ ﺑﺪﻭﻥ ﻣﺮﺯ
ﻧﻤﺎﻳﺶ ﺧﻮﺍﻫﺪ ﺩﺍﺩ .ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ ﺣﺎﻟﺖ ﭘﻴﺶ ﻓﺮﺽ ﻳﻌﻨﻲ ﺟﺪﻭﻟﻲ ﺑﺪﻭﻥ ﺷﻨﺎﺳﻪ ، borderﺟﺪﺍﻭﻝ ﺑﺪﻭﻥ ﻣﺮﺯ ﺭﺍ ﻧﻤﺎﻳﺶ ﺧﻮﺍﻫﺪ ﺩﺍﺩ.
•ﺩﺭ ﻣﺜﺎﻝ ﺑﺎﻻ ﺷﻨﺎﺳﻪ dirﻳﺎ directionﻭ ﻣﻘﺪﺍﺭ rtlﺑﺮﺍﻱ ﺁﻥ ،ﺳﺒﺐ ﺗﻌﻴﻴﻦ ﻧﻤﺎﻳﺶ ﺟﻬﺖ ﻣﺘﻮﻥ ﺍﺯ ﺭﺍﺳﺖ ﺑﻪ ﭼﭗ ﺧﻮﺍﻫﺪ ﺷﺪ ﻭ ﭼﻮ ﻥ ﺩﺭ ﺩﺍﺧﻞ ﺗﻚ table
ﺗﻌﺮﻳﻒ ﺷﺪﻩ ﺍﺳﺖ ﺍﻳﻦ ﺧﺎﺻﻴﺖ ﺑﻪ ﺗﻤﺎﻣﻲ ﺳﻠﻮﻟﻬﺎﻱ ﺟﺪﻭﻝ ﻣﻨﺘﻘﻞ ﺧﻮﺍﻫﺪ ﺷﺪ.
•ﺍﮔﺮ ﺟﺪﻭﻝ ﺣﺎﻭﻱ ﻣﺘﻮﻥ ﻻﺗﻴﻦ ﺍﺳﺖ ﻧﻴﺎﺯﻱ ﺑﻪ ﻗﻴﺪ dir=ltrﻧﻴﺴﺖ ﻭ ﺑﻪ ﺻﻮﺭﺕ ﭘﻴﺶ ﻓﺮﺽ ﺍﻃﻼﻋﺎﺕ ﺍﺯ ﭼﭗ ﺑﻪ ﺭﺍﺳﺖ ﭼﻴﺪﻩ ﺧﻮﺍﻫﻨﺪ ﺷﺪ.
•ﺳﺎﺩﻩ ﺗﺮﻳﻦ ﺟﺪﻭﻝ ﻣﻤﻜﻦ ﺩﺭ ﺍﭼﺘﻤﻞ ،ﺟﺪﻭﻟﻲ ﺍﺳﺖ ﺑﺎ ﻳﻚ ﺳﻄﺮ ﻭ ﻳﻚ ﺳﺘﻮﻥ! )>(<table/><tr/><td/>Hi<td><tr><table
ﺳﺮﺳﺘﻮﻧﻬﺎ ﺩﺭ ﺟﺪﺍﻭﻝ ﺑﺎ ﻛﻤﻚ ﺗﮓ > <thﺗﻌﺮﻳﻒ ﻣﻴﺸﻮﻧﺪ .ﻣﺜﺎﻝ ﺯﻳﺮ ﻧﺤﻮﻩ ﺗﻌﺮﻳﻒ ﺳﺮﺳﺘﻮﻧﻬﺎ ﺭﺍ ﺩﺭ ﺟﺪﺍﻭﻝ ﻧﻤﺎﻳﺶ ﻣﻴﺪﻫﺪ:
ﻛﺪ ﺍﭼﺘﻤﻞ ﺟﺪﻭﻟﻲ ﺑﺎ ﺳﻪ ﺳﻄﺮ ﻭ ﺳﻪ ﺳﺘﻮﻥ ﻧﻤﺎﻳﺶ ﺟﺪﻭﻝ ﺭﻭﺑﺮﻭ ﺗﻮﺳﻂ ﻣﺮﻭﺭﮔﺮ
><tr
></thﺳﺮﺳﺘﻮﻥ ﺍ><th
></thﺳﺮﺳﺘﻮﻥ <th>2
></thﺳﺮﺳﺘﻮﻥ <th>3
ﺳﺮﺳﺘﻮﻥ 3 ﺳﺮﺳﺘﻮﻥ 2 ﺳﺮﺳﺘﻮﻥ ﺍ
></tr
><tr
></tdﺭﺩﻳﻒ ،2ﺳﻠﻮﻝ <td>1
></tdﺭﺩﻳﻒ ،2ﺳﻠﻮﻝ <td>2
></tdﺭﺩﻳﻒ ،2ﺳﻠﻮﻝ <td>3
></tr
></table
ﻫﻤﺎﻧﻄﻮﺭﻳﻜﻪ ﻣﺸﺎﻫﺪﻩ ﻣﻴﻜﻨﻴﺪ ﺳﺮ ﺳﺘﻮﻧﻬﺎ ﻣﺎﻧﻨﺪ ﺳﻠﻮﻟﻬﺎﻱ ﻣﻌﻤﻮﻟﻲ ﺟﺪﺍﻭﻝ ﺗﻌﺮﻳﻒ ﻣﻴﺸﻮﻧﺪ ﻭ ﻓﻘﻂ ﺑﻪ ﺟﺎﻱ tdﺍﺯ thﺍﺳﺘﻔﺎﺩﻩ ﺷﺪﻩ ﻭ ﻟﻲ ﺩﺭ ﻧﻤﺎﻳﺶ
ﻣﺤﺘﻮﺍﻱ ﺳﺮ ﺳﺘﻮﻧﻬﺎ boldﻳﺎ ﺗﻮﭘﺮ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﻨﺪ ﺷﺪ.
ﺍﮔﺮ ﻣﺤﺘﻮﺍﻱ ﺧﺎﻧﻪ ﺍﻱ ﺍﺯ ﻳﻚ ﺟﺪﻭﻝ ﺧﺎﻟﻲ ﺑﺎﺷﺪ ﭼﻪ ﭼﻴﺰﻱ ﺑﺎﻳﺪ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺷﻮﺩ؟ ﺑﺴﺘﻪ ﺑﻪ ﻣﺮﻭﺭﮔﺮﻱ ﻛﻪ ﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﻜﻨﻴﺪ ﻧﺘﻴﺠﻪ ﻧﻤﺎﻳﺶ ﻣﺘﻔﺎﻭﺕ
ﺍﺳﺖ ﻭ ﻣﺜﻼ ﺩﺭ ﻣﺜﺎﻝ ﺯﻳﺮ ﺧﺎﻧﻪ ﺧﺎﻟﻲ ﺟﺪﻭﻝ ﺑﺪﻭﻥ ﻣﺮﺯ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ:
ﻛﺪ ﺍﭼﺘﻤﻞ ﺟﺪﻭﻟﻲ ﺑﺎ ﺩﻭ ﺳﻄﺮ ﻭ ﺩﻭ ﺳﺘﻮﻥ ﻧﻤﺎﻳﺶ ﺟﺪﻭﻝ ﺭﻭﺑﺮﻭ ﺗﻮﺳﻂ ﻣﺮﻭﺭﮔﺮ
ﺩﺭ ﺍﻳﻨﮕﻮﻧﻪ ﻣﻮﺍﺭﺩ ﺑﺮﺍﻱ ﺭﻓﻊ ﻣﺸﻜﻞ ﻛﺎﻓﻲ ﺍﺳﺖ ﻛﻪ ﺍﺯ ); non-breaking space ( ﻳﺎ ﻫﻤﺎﻥ ﻧﻮﻳﺴﻪ ﻭ ﻛﺎﺭﺍﻛﺘﺮ ﻗﺎﺻﻠﻪ ﻭ ﺑﻼﻧﻚ
ﺍﺳﺘﻔﺎﺩﻩ ﺷﻮﺩ ﻭ ﺩﺭ ﻣﻮﺭﺩ ﻣﺜﺎﻝ ﺫﻛﺮ ﺷﺪﻩ ﻣﺮﻭﺭﮔﺮ ﺟﺪﻭﻝ ﺭﺍ ﺑﻪ ﺷﻜﻞ ﺯﻳﺮ ﻧﻤﺎﻳﺶ ﺧﻮﺍﻫﺪ ﺩﺍﺩ:
ﻛﺪ ﺍﭼﺘﻤﻞ ﺟﺪﻭﻟﻲ ﺑﺎ ﺩﻭ ﺳﻄﺮ ﻭ ﺩﻭ ﺳﺘﻮﻥ ﻧﻤﺎﻳﺶ ﺟﺪﻭﻝ ﺭﻭﺑﺮﻭ ﺗﻮﺳﻂ ﻣﺮﻭﺭﮔﺮ
ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ ﺍﻳﻨﺒﺎﺭ ﻣﺮﺯﻫﺎﻱ ﺧﺎﻧﻪ ﺧﺎﻟﻲ ﺟﺪﻭﻝ ﺑﺪﺭﺳﺘﻲ ﺗﺮﺳﻴﻢ ﮔﺮﺩﻳﺪﻩ ﺍﻧﺪ.
• ﺩﺭ ﺟﺪﺍﻭﻝ ،ﺭﺩﻳﻔﻬﺎ ،ﺧﺎﻧﻪ ﻫﺎ ﻭ ﺳﺮ ﺳﺘﻮﻧﻬﺎ ﺍﺯ ﺗﻌﺪﺍﺩ ﺯﻳﺎﺩﻱ ﺍﺯ ﺷﻨﺎﺳﻪ ﻫﺎ ﻣﻴﺘﻮﺍﻧﻴﺪ ﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ ﻛﻪ ﺷﺮﺡ ﻫﻤﮕﻲ ﺁﻧﻬﺎ ﺍﺯ ﺣﻮﺻﻠﻪ ﺍﻳﻦ ﺩﻭﺭﻩ ﻣﻘﺪﻣﺎﺗﻲ ﺧﺎﺭﺝ ﺍﺳﺖ ﻭ
ﺗﻮﺻﻴﻪ ﻣﻴﺸﻮﺩ ﻛﻪ ﺍﺯ ﻣﺜﺎﻟﻬﺎﻱ ﺯﻳﺮ ﻭ ﺟﺪﻭﻝ ﻭﺍﻗﻊ ﺩﺭ ﺍﻧﺘﻬﺎﻱ ﺍﻳﻦ ﺻﻔﺤﻪ ﺑﺮﺍﻱ ﻣﻄﺎﻟﻌﻪ ﻫﺮ ﭼﻪ ﺑﻴﺸﺘﺮ ﺩﺭ ﻣﻮﺭﺩ ﺟﺰﺋﻴﺎﺕ ﺷﻨﺎﺳﻪ ﻫﺎ ﺍﺳﺘﻔﺎﺩﻩ ﺷﻮﺩ.
•ﺷﻨﺎﺳﻪ dirﻗﺎﺑﻞ ﺍﺳﺘﻔﺎﺩﻩ ﺩﺭ ﺑﺴﻴﺎﺭﻱ ﺍﺯ ﺗﮕﻬﺎ ) ﻣﺜﻼ ( th ، td ،tr ،tableﻣﻴﺒﺎﺷﺪ .ﺑﺎ ﻛﻤﻚ ﺷﻨﺎﺳﻪ dirﻭ ﻣﻘﺪﺍﺭ rtlﺑﺮﺍﻱ ﺁﻥ ،ﺟﻬﺖ ﻧﻤﺎﻳﺶ ﻣﺘﻮﻥ
ﻓﺎﺭﺳﻲ ﺍﺯ "ﺭﺍﺳﺖ ﺑﻪ ﭼﭗ" ﺗﻌﻴﻴﻦ ﻣﻴﮕﺮﺩﺩ .ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ ﻣﻘﺪﺍﺭ ﺷﻨﺎﺳﻪ dirﺑﻪ ﺻﻮﺭﺕ ﻣﻮﺭﻭﺛﻲ ﺍﺯ tableﺑﻪ trﻭ thﻭ ﺍﺯ trﻭ thﺑﻪ tdﺧﻮﺍﻫﺪ
ﺭﺳﻴﺪ.ﻣﺜﻼ ﺑﺮﺍﻱ ﺗﻌﻴﻴﻦ ﻣﻘﺪﺍﺭ rtlﺑﺮﺍﻱ ﺗﻤﺎﻣﻲ ﺧﺎﻧﻪ ﻫﺎﻱ ﻳﻚ ﺟﺪﻭﻝ ﻛﺎﻓﻲ ﺍﺳﺖ ﻛﻪ ﻓﻘﻂ ﺷﻨﺎﺳﻪ ﻣﺰﺑﻮﺭ ﺭﺍ ﺩﺭ ﺗﮓ tableﻗﻴﺪ ﻛﻨﻴﺪ ﻭ ﻧﻴﺎﺯﻱ ﺑﻪ ﻗﻴﺪ ﺁﻥ ﺩﺭ ﺗﻤﺎﻣﻲ
ﺧﺎﻧﻪ ﻫﺎﻱ ﺟﺪﻭﻝ ﻧﻴﺴﺖ .ﺍﻟﺒﺘﻪ ﻣﻴﺘﻮﺍﻧﻴﺪ ﻛﻪ ﺩﺭ ﻣﻮﺭﺩ ﻳﻚ ﺭﺩﻳﻒ ﺧﺎﺹ ﻭ ﻳﺎ ﻳﻚ ﺧﺎﻧﻪ ﺧﺎﺹ ﺷﻨﺎﺳﻪ dirﺭﺍ ﻣﻮﺭﺩﻱ ﺗﻌﻴﻴﻦ ﻛﻨﻴﺪ.
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ
ﻣﺮﺯ ﺩﺭ ﺟﺪﺍﻭﻝ
ﺍﻳﻦ ﻣﺜﺎﻝ ﻛﺎﺭﺑﺮﺩ ﺷﻨﺎﺳﻪ borderﺭﺍ ﺩﺭ ﻧﻤﺎﻳﺶ ﺟﺪﺍﻭﻝ ﻧﺸﺎﻥ ﻣﻴﺪﻫﺪ.
ﺗﮕﻬﺎﻱ ﺟﺪﺍﻭﻝ
0B
ﻣﺜﺎﻟﻬﺎ:
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ
ﻓﺮﻳﻤﻬﺎ )(Frames
ﺑﺎ ﻛﻤﻚ ﻓﺮﻳﻤﻬﺎ ﻗﺎﺩﺭ ﺑﻪ ﻧﻤﺎﻳﺶ ﻫﻤﺰﻣﺎﻥ ﺑﻴﺶ ﺍﺯ ﻳﻚ ﺻﻔﺤﻪ ﻭﺏ ﺩﺭ ﭘﻨﺠﺮﻩ ﻣﺮﻭﺭﮔﺮ ﺧﻮﺍﻫﻴﺪ ﺷﺪ .ﻫﺮ ﺻﻔﺤﻪ ﻳﺎ ﺩﺭﻳﭽﻪ ،ﻓﺮﻳﻢ ) (frameﻧﺎﻣﻴﺪﻩ ﺷﺪﻩ
ﻭ ﻓﺮﻳﻤﻬﺎ ﻛﺎﻣﻼ ﻣﺴﺘﻘﻞ ﺍﺯ ﻫﻢ ﻣﻴﺒﺎﺷﻨﺪ .ﻣﺤﺘﻮﺍﻱ ﻫﺮ ﻓﺮﻳﻢ ﻫﻢ ﻣﻴﺘﻮﺍﻧﺪ ﻫﺮ ﺻﻔﺤﻪ ﻳﺎ ﻭﺏ ﺳﺎﻳﺘﻲ ﺑﺎﺷﺪ .ﻫﺮ ﭼﻨﺪ ﻛﻪ ﻓﺮﻳﻤﻬﺎ ﻃﺮﺍﺣﻲ ﺳﺎﻳﺘﻬﺎﻱ ﻛﻮﭼﻚ
ﻭ ﻣﺘﻮﺳﻂ ﺭﺍ ﺑﺴﻴﺎﺭ ﺁﺳﺎﻥ ﻣﻴﻜﻨﻨﺪ ﻭﻟﻲ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺁﻧﻬﺎ ﺩﺭ ﻛﺎﺭﻫﺎﻱ ﺣﺮﻓﻪ ﺍﻱ ﺗﻮﺻﻴﻪ ﻧﻤﻴﺸﻮﺩ).ﺑﻪ ﺟﺰ ﺩﺭ ﻣﻮﺍﺭﺩ ﺧﺎﺹ(
ﺍﮔﺮ ﻣﻴﺨﻮﺍﻫﻴﺪ ﺻﻔﺤﺎﺕ ﻧﺴﺒﺘﺎ ﺩﻳﻨﺎﻣﻴﻚ ﺳﺎﺧﺘﻪ ﻭ ﺑﺎ ﻫﻴﭻ ﺯﺑﺎﻥ ﺍﺳﻜﺮﻳﭙﺘﻲ ﻣﺎﻧﻨﺪ PHPﻳﺎ ASPﺁﺷﻨﺎﺋﻲ ﻧﺪﺍﺭﻳﺪ ﻓﺮﻳﻤﻬﺎ ﻛﻤﻚ ﺧﻮﺑﻲ ﺧﻮﺍﻫﻨﺪ ﺑﻮﺩ.
ﻫﻤﭽﻨﻴﻦ ﻓﺮﻳﻤﻬﺎ ﺑﺮﺍﻱ ﺳﺎﺧﺘﻦ ﺳﺮﻳﻊ ﻗﺴﻤﺘﻬﺎﺋﻲ ﺍﺯ ﺳﺎﻳﺖ ﻛﻪ ﻋﻤﻮﻡ ﺑﻪ ﺁﻥ ﺩﺳﺘﺮﺳﻲ ﻧﺪﺍﺭﻧﺪ ﻣﺎﻧﻨﺪ ﻗﺴﻤﺖ ﻣﺪﻳﺮﻳﺖ ) (Adminﻣﻨﺎﺳﺐ ﺑﻪ ﻧﻈﺮ
ﻣﻴﺮﺳﻨﺪ.
ﻛﺎﺭﺑﺮﺩ ﺍﺻﻠﻲ ﺗﮓ > <frameﺗﻌﻴﻴﻦ sourceﻳﺎ ﻧﺎﻡ ﺻﻔﺤﻪ ﺍﻱ ﺍﺳﺖ ﻛﻪ ﺑﺎﻳﺪ ﺩﺭ ﻓﺮﻳﻢ ﻫﺎ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺷﻮﺩ. •
ﻣﺜﺎﻝ ﺯﻳﺮ ﻣﺠﻤﻮﻋﻪ ﺍﻱ ﺍﺯ ﻓﺮﻳﻤﻬﺎ ﺭﺍ ﻛﻪ ﺷﺎﻣﻞ ﺩﻭ ﻓﺮﻳﻢ ﻋﻤﻮﺩﻱ ﻣﻴﺒﺎﺷﻨﺪ ﻣﻌﺮﻓﻲ ﻣﻴﻜﻨﺪ .ﺍﺯ ﺳﻤﺖ ﭼﭗ ﻓﺮﻳﻢ ﺍﻭﻝ 75ﺩﺭﺻﺪ ﻭ ﻓﺮﻳﻢ ﺩﻭﻡ 25ﺩﺭﺻﺪ ﺍﺯ
ﻋﺮﺽ ﭘﻨﺠﺮﻩ ﻣﺮﻭﺭﮔﺮ ﺭﺍ ﺑﻪ ﺧﻮﺩ ﻧﻤﺎﻳﺶ ﺧﻮﺍﻫﻨﺪ ﺩﺍﺩ .ﺩﺭ ﺍﺩﺍﻣﻪ ﺗﻌﺮﻳﻒ ﻣﺤﺘﻮﻳﺎﺕ ﻫﺮ ﻓﺮﻳﻢ ،ﺩﺭﻭﻥ ﻓﺮﻳﻢ ﺍﻭﻝ ﻓﺎﻳﻞ " "frame_left.htmlﻭ ﺩﺭﻭﻥ
ﻓﺮﻳﻢ ﺩﻭﻡ ﻓﺎﻳﻞ " "frame_right.htmlﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ .ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ ﺗﻤﺎﻣﻲ ﺳﻪ ﻓﺎﻳﻞ ﺍﭼﺘﻤﻞ ﻣﺮﺑﻮﻁ ﺑﻪ ﺍﻳﻦ ﻣﺜﺎﻝ ﺩﺭ ﻳﻚ
ﺩﺍﻳﺮﻛﺘﻮﺭﻱ ﻗﺮﺍﺭ ﺩﺍﺭﻧﺪ.
><html
>"<frameset cols="75%,25%
>"<frame src="frame_left.html
>"<frame src="frame_right.html
></frameset
></html
ﺑﺮﺍﻱ ﻧﻤﺎﻳﺶ ﻣﺜﺎﻝ ﺑﺎﻻ ﺑﻪ ﺳﻪ ﻓﺎﻳﻞ ﻧﻴﺎﺯ ﺩﺍﺭﻳﺪ frame_right.html،frame_left.html ،ﻭ ﻓﺎﻳﻞ ﻛﺪ ﺍﭼﺘﻤﻞ ﺑﺎﻻ.
ﺩﺭ ﻣﺜﺎﻝ ﻳﻚ ﻋﺮﺽ ﻓﺮﻳﻢ ﺍﻭﻝ ﺍﺯ ﺳﻤﺖ ﺭﺍﺳﺖ 200ﭘﻴﻜﺴﻞ ﺗﻌﻴﻴﻦ ﺷﺪﻩ ﻭ ﺑﻘﻴﻪ ﻋﺮﺽ ﭘﻨﺠﺮﻩ ﻛﻪ ﺑﺎ ﻋﻼﻣﺖ * ﻣﺸﺨﺺ ﻣﻴﺸﻮﺩ ﺑﻪ ﻓﺮﻳﻢ ﺩﻭﻡ
ﺍﺧﺘﺼﺎﺹ ﺧﻮﺍﻫﺪ ﻳﺎﻓﺖ.
ﺩﺭ ﻣﺜﺎﻝ ﺩﻭﻡ ﻋﺮﺽ ﭘﻨﺠﺮﻩ ﺑﺎ ﻣﻘﺎﺩﻳﺮ ﺩﺭﺻﺪﻱ ﺑﻪ ﻓﺮﻳﻤﻬﺎ ﺍﺧﺘﺼﺎﺹ ﻳﺎﻓﺘﻪ ﺍﺳﺖ.
ﺩﺭ ﻣﻮﺭﺩ ﺷﻨﺎﺳﻪ rowsﺩﻗﻴﻘﺎ ﻗﺮﺍﺭﺩﺍﺩﻫﺎﻱ ﺑﺎﻻ ﺑﺮﻗﺮﺍﺭﻧﺪ.
ﻧﻜﺎﺕ ﻛﺎﺭﺑﺮﺩﻱ:
* ﺍﮔﺮ ﻓﺮﻳﻤﻬﺎﻱ ﻃﺮﺍﺣﻲ ﺷﺪﻩ ﻣﺮﺯﻫﺎﻱ ﻗﺎﺑﻞ ﻣﺸﺎﻫﺪﻩ ﺩﺍﺭﻧﺪ ﺗﻮﺳﻂ ﻛﺎﺭﺑﺮ ﻗﺎﺑﻞ ﺗﻐﻴﻴﺮ ﺍﻧﺪﺍﺯﻩ ) (resizeﺧﻮﺍﻫﻨﺪ ﺑﻮﺩ ﻭ ﺑﺮﺍﻱ ﺟﻠﻮﮔﻴﺮﻱ ﺍﺯ ﺗﻐﻴﻴﺮ ﺍﻧﺪﺍﺯﻩ
ﻓﺮﻳﻤﻬﺎ ﺗﻮﺳﻂ ﻛﺎﺭﺑﺮ ﺑﺎﻳﺪ ﺍﺯ ﺷﻨﺎﺳﻪ ﺍﻱ ﺑﻪ ﻧﺎﻡ noresizeﺩﺭ ﺩﺍﺧﻞ ﺗﮓ > <frameﺍﺳﺘﻔﺎﺩﻩ ﺷﻮﺩ .ﺩﺭ ﺍﻳﻦ ﻣﺜﺎﻝ noresizeﻧﻤﻴﺘﻮﺍﻧﻴﺪ ﻛﻪ ﻓﺮﻳﻤﻬﺎ
ﺭﺍ ﺗﻐﻴﻴﺮ ﺍﻧﺪﺍﺯﻩ ﺑﺪﻫﻴﺪ.
* ﺍﮔﺮ ﻣﻴﺨﻮﺍﻫﻴﺪ ﻛﻪ ﻓﺮﻳﻤﻬﺎ scrollﻧﺸﻮﻧﺪ )ﺣﺮﻛﺖ ﻣﻴﺎﻥ ﻣﺤﺘﻮﻳﺎﺕ ﺻﻔﺤﻪ ﺗﻮﺳﻂ ﻣﺎﻭﺱ( ﺑﺎﻳﺪ ﺩﺭ ﺗﮓ frameﻣﻘﺪﺍﺭ ﺷﻨﺎﺳﻪ scrollingﺭﺍ ﺑﺮﺍﺑﺮ
" "noﻗﺮﺍﺭ ﺩﻫﻴﺪ) .ﻣﻘﺎﺩﻳﺮ ﻣﻤﻜﻦ " " ""no ،yesﻭ " "autoﻣﻴﺒﺎﺷﻨﺪ (.ﺩﺭ ﺍﻳﻦ ﻣﺜﺎﻝ scrollingﺻﻔﺤﺎﺕ ﻗﺎﺑﻞ scrollﻧﻴﺴﺘﻨﺪ.
* ﺍﮔﺮ ﻣﻴﺨﻮﺍﻫﻴﺪ ﻛﻪ ﻣﺮﺯ ﺑﻴﻦ ﻓﺮﻳﻤﻬﺎ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﻧﺸﻮﻧﺪ ﺑﺎﻳﺪ ﺩﺭ ﺗﮓ frameﻣﻘﺪﺍﺭ ﺷﻨﺎﺳﻪ frameborderﺭﺍ ﺑﺮﺍﺑﺮ " "0ﻗﺮﺍﺭ ﺩﻫﻴﺪ) .ﻣﺜﺎﻝ
( frameborder
* ﺩﺭﺻﺪ ﺑﺴﻴﺎﺭ ﻛﻤﻲ ﺍﺯ ﻣﺮﻭﺭﮔﺮﻫﺎ ﺍﺯ ﺗﮕﻬﺎﻱ ﻣﺮﺑﻮﻁ ﺑﻪ frameﻭ framesetﭘﺸﺘﻴﺒﺎﻧﻲ ﻧﻤﻴﻜﻨﻨﺪ .ﺑﺮﺍﻱ ﺍﻳﻦ ﻣﻮﺍﺭﺩ ﺑﺎﻳﺪ ﺍﺯ ﺗﮓ ><noframes
ﺟﻬﺖ ﻧﻤﺎﻳﺶ ﺻﻔﺤﻪ ﺟﺎﻳﮕﺰﻳﻦ ﺍﺳﺘﻔﺎﺩﻩ ﺷﻮﺩ.
* ﺑﻌﻀﻲ ﺍﺯ ﻣﺮﻭﺭﮔﺮﻫﺎ ﺑﻪ ﺍﻭﻟﻴﻦ ﻧﻮﻳﺴﻪ ﻭ ﺷﺮﻭﻉ ﺗﻌﺮﻳﻒ ﻳﻚ ﻓﺎﻳﻞ framesetﺣﺴﺎﺱ ﻫﺴﺘﻨﺪ ،ﻣﻄﻤﺌﻦ ﺑﺎﺷﻴﺪ ﻛﻪ ﻫﻴﭻ ﻛﺎﺭﺍﻛﺘﺮ ﺍﺿﺎﻓﻲ ﻣﺎﻧﻨﺪ
spaceﻳﺎ new linkﻗﺒﻞ ﺍﺯ tag framesetﺩﺭ ﺍﺑﺘﺪﺍﻱ ﺻﻔﺤﻪ ﻭﺟﻮﺩ ﻧﺪﺍﺭﺩ.
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ
ﺳﻤﺖ ﭼﭗ ﺻﻔﺤﺎﺕ ﻣﺨﺘﻠﻒ ﺳﺎﻳﺖ ﺭﺍ ﺑﻪ ﻧﻤﺎﻳﺶ ﺧﻮﺍﻫﺪ ﮔﺬﺍﺷﺖ .ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ ﺑﺮﺍﻱ ﺍﻳﻦ ﻣﺜﺎﻝ ﺣﺪﺍﻗﻞ ﺑﻪ ﻳﻚ ﻓﺎﻳﻞ ﺑﺮﺍﻱ ﻣﻌﺮﻓﻲ ﻣﺠﻤﻮﻋﺎ
ﻓﺮﻳﻤﻬﺎ) (framesetﻭ ﺳﻪ ﺻﻔﺤﻪ ﺍﭼﺘﻤﻞ ﺑﺮﺍﻱ ﻓﺮﻳﻤﻬﺎﻱ ﺑﺎﻻﺋﻲ ،ﺳﻤﺖ ﭼﭗ ﻭ ﺭﺍﺳﺖ ﺍﺣﺘﻴﺎﺝ ﺧﻮﺍﻫﺪ ﺑﻮﺩ.
ﻣﺜﺎﻟﻬﺎ:
ﻓﻬﺮﺳﺘﻬﺎﻱ ﻧﺎﻣﺮﺗﺐ
ﻣﺜﺎﻟﻲ ﺑﺴﻴﺎﺭ ﺳﺎﺩﻩ ﺩﺭ ﻣﻮﺭﺩ ﻓﻬﺮﺳﺘﻬﺎﻱ ﻧﺎﻣﺮﺗﺐ
ﻓﻬﺮﺳﺘﻬﺎﻱ ﻣﺮﺗﺐ
ﻣﺜﺎﻟﻲ ﺩﺭ ﻣﻮﺭﺩ ﻓﻬﺮﺳﺘﻬﺎﻱ ﻣﺮﺗﺐ ﻭ ﻧﺤﻮﻩ ﻧﻤﺎﻳﺶ ﻣﺘﻮﻥ ﻓﺎﺭﺳﻲ
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ
ﻓﻬﺮﺳﺘﻬﺎﺋﻲ ﻫﺴﺘﻨﺪ ﺍﺯ ﻳﻚ ﻳﺎ ﭼﻨﺪ ﻗﻠﻢ ﺍﻃﻼﻋﺎﺕ ﻛﻪ ﻣﻌﻤﻮﻻ ﺑﺎ ﺩﺍﻳﺮﻩ ﺍﻱ ﻛﻮﭼﻚ ﻭ ﺳﻴﺎﻩ ﺭﻧﮓ ﺩﺭ ﺷﺮﻭﻉ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﻣﻴﺸﻮﻧﺪ .ﻳﻚ ﻓﻬﺮﺳﺖ ﺍﺯ ﻧﻮﻉ
ﻧﺎﻣﺮﺗﺐ ﺑﺎ ﺗﮓ > <ulﺷﺮﻭﻉ ﺷﺪﻩ ﻭ ﻫﺮ ﺭﻗﻢ ﺍﻃﻼﻋﺎﺕ ﺑﺎ ﺗﮓ > <liﻣﺸﺨﺺ ﻣﻴﮕﺮﺩﺩ.
ﺩﺍﺧﻞ ﺗﮕﻬﺎﻱ > <liﻣﻴﺘﻮﺍﻧﻴﺪ ﺍﺯ ﭘﺎﺭﺍﮔﺮﺍﻓﻬﺎ ،ﺗﮕﻬﺎﻱ ، brﺗﺼﺎﻭﻳﺮ ﻭ ﺣﺘﻲ ﻓﻬﺮﺳﺘﻬﺎﻱ ﺩﻳﮕﺮ ﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ .ﺑﻪ ﺷﻨﺎﺳﻪ dirﺩﺭ ﻣﺜﺎﻝ ﺑﺎﻻ ﺗﻮﺟﻪ ﻛﻨﻴﺪ،
ﺍﻣﻜﺎﻥ ﺗﻌﻴﻴﻦ ﺳﻤﺖ ﻭ ﺟﻬﺖ ﻧﻤﺎﻳﺶ ﻣﺘﻮﻥ ﺩﺭ ﺗﻤﺎﻣﻲ ﺗﮕﻬﺎﻱ ﻣﺮﺑﻮﻁ ﺑﻪ ﻓﻬﺮﺳﺘﻬﺎ ﻣﻤﻜﻦ ﻣﻴﺒﺎﺷﺪ.
ﺍﻳﻦ ﻧﻮﻉ ﻓﻬﺮﺳﺖ ﺑﺴﻴﺎﺭ ﺷﺒﻴﻪ ﻓﻬﺮﺳﺘﻬﺎﻱ ﻧﺎﻣﺮﺗﺐ ﺑﻮﺩﻩ ﻭ ﻓﻘﻂ ﻣﺮﻭﺭﮔﺮ ﺑﻪ ﻫﻨﮕﺎﻡ ﻧﻤﺎﻳﺶ ﺍﻗﻼﻡ ﺍﻃﻼﻋﺎﺗﻲ ﺍﺯ ﺍﻋﺪﺍﺩ ﺑﻪ ﺟﺎﻱ ﺩﺍﻳﺮﻩ ﻫﺎﻱ ﻛﻮﭼﻚ ﺳﻴﺎﻩ
ﺭﻧﮓ ﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﻜﻨﺪ .ﻳﻚ ﻓﻬﺮﺳﺖ ﺍﺯ ﻧﻮﻉ ﻣﺮﺗﺐ ﺑﺎ ﺗﮓ > <olﺷﺮﻭﻉ ﺷﺪﻩ ﻭ ﻫﻤﺎﻧﻨﺪ ﻓﻬﺮﺳﺘﻬﺎﻱ ﻧﺎﻣﺮﺗﺐ ﻫﺮ ﺭﻗﻢ ﺍﻃﻼﻋﺎﺕ ﺑﺎ ﺗﮓ > <liﻣﺸﺨﺺ
ﻣﻴﮕﺮﺩﺩ.
ﺩﺍﺧﻞ ﺗﮕﻬﺎﻱ > <liﻣﻴﺘﻮﺍﻧﻴﺪ ﺍﺯ ﭘﺎﺭﺍﮔﺮﺍﻓﻬﺎ ،ﺗﮕﻬﺎﻱ ، brﺗﺼﺎﻭﻳﺮ ﻭ ﺣﺘﻲ ﻓﻬﺮﺳﺘﻬﺎﻱ ﺩﻳﮕﺮ ﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ .ﺑﻪ ﺷﻨﺎﺳﻪ dirﺩﺭ ﻣﺜﺎﻝ ﺑﺎﻻ ﺗﻮﺟﻪ ﻛﻨﻴﺪ،
ﺍﻣﻜﺎﻥ ﺗﻌﻴﻴﻦ ﺳﻤﺖ ﻭ ﺟﻬﺖ ﻧﻤﺎﻳﺶ ﻣﺘﻮﻥ ﺩﺭ ﺗﻤﺎﻣﻲ ﺗﮕﻬﺎﻱ ﻣﺮﺑﻮﻁ ﺑﻪ ﻓﻬﺮﺳﺘﻬﺎ ﻣﻤﻜﻦ ﻣﻴﺒﺎﺷﺪ.
ﻓﻬﺮﺳﺘﻬﺎﻱ ﺗﻌﺮﻳﻔﻲ ﺑﺎ > <dlﺷﺮﻭﻉ ﺷﺪﻩ ﻭ ﻫﺮ ﺫﻭﺝ ﺍﺻﻄﻼﺡ ﻭ ﺗﻌﺮﻳﻒ ﻣﺮﺑﻮﻁ ﺑﻪ ﺁﻥ ﺑﺎ ﺗﮕﻬﺎﻱ > <dtﻭ > <ddﺗﻌﺮﻳﻒ ﻣﻴﺸﻮﻧﺪ.
ﺩﺍﺧﻞ ﺗﮕﻬﺎﻱ ﺗﺸﺮﻳﺢ ﻳﻌﻨﻲ > <ddﻣﻴﺘﻮﺍﻧﻴﺪ ﺍﺯ ﭘﺎﺭﺍﮔﺮﺍﻓﻬﺎ ،ﺗﮕﻬﺎﻱ ، brﺗﺼﺎﻭﻳﺮ ﻭ ﺣﺘﻲ ﻓﻬﺮﺳﺘﻬﺎﻱ ﺩﻳﮕﺮ ﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ .ﺑﻪ ﺷﻨﺎﺳﻪ dirﺩﺭ ﻣﺜﺎﻝ ﺑﺎﻻ
ﺗﻮﺟﻪ ﻛﻨﻴﺪ ،ﺍﻣﻜﺎﻥ ﺗﻌﻴﻴﻦ ﺳﻤﺖ ﻭ ﺟﻬﺖ ﻧﻤﺎﻳﺶ ﻣﺘﻮﻥ ﺩﺭ ﺗﻤﺎﻣﻲ ﺗﮕﻬﺎﻱ ﻣﺮﺑﻮﻁ ﺑﻪ ﻓﻬﺮﺳﺘﻬﺎ ﻣﻤﻜﻦ ﻣﻴﺒﺎﺷﺪ.
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ
ﻣﺜﺎﻟﻲ ﺩﺭ ﻣﻮﺭﺩ ﻓﻬﺮﺳﺘﻬﺎﻱ ﻣﺮﺗﺐ ﺑﻪ ﻫﻤﺮﺍﻩ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺷﻨﺎﺳﻪ typeﺟﻬﺖ ﺗﻌﻴﻴﻦ ﻧﻮﻉ ﻧﻤﺎﻳﺶ ﻓﻬﺮﺳﺖ
ﻓﻬﺮﺳﺘﻬﺎﻱ ﺗﻮﺩﺭﺗﻮ
ﻣﺜﺎﻟﻲ ﺩﺭ ﻣﻮﺭﺩ ﻓﻬﺮﺳﺘﻬﺎﻱ ﺗﺮﻛﻴﺒﻲ .ﺍﻋﻀﺎﻱ ﻓﻬﺮﺳﺖ ﻣﻴﺘﻮﺍﻧﻨﺪ ﺍﺯ ﻓﻬﺮﺳﺘﻬﺎﻱ ﺩﻳﮕﺮ ﺗﺸﻜﻴﻞ ﺷﻮﻧﺪ.
ﻓﻬﺮﺳﺘﻬﺎﻱ ﺗﻌﺮﻳﻔﻲ
ﻣﺜﺎﻟﻲ ﺩﺭ ﻣﻮﺭﺩ ﻓﻬﺮﺳﺘﻬﺎﻱ ﺗﻌﺮﻳﻔﻲ ﺑﻪ ﻫﻤﺮﺍﻩ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺷﻨﺎﺳﻪ dir
ﺗﮕﻬﺎﻱ ﻓﻬﺮﺳﺖ
ﻓﺮﻣﻬﺎ ) ( Forms
ﺍﺯ ﻃﺮﻳﻖ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﻋﻨﺼﺮ > <formﻭ ﭼﻨﺪ ﺗﮓ ﻣﺮﺗﺒﻂ ﻗﺎﺩﺭ ﺑﻪ ﺩﺭﻳﺎﻓﺖ ﺍﻃﻼﻋﺎﺕ ﺍﺯ ﺑﺎﺯﺩﻳﺪﻛﻨﻨﺪﮔﺎﻥ ﺻﻔﺤﺎﺗﺘﺎﻥ ﻭ ﻳﺎ ﺗﺒﺎﺩﻝ ﺍﻃﻼﻋﺎﺕ ﺑﻴﻦ ﺻﻔﺤﺎﺕ
ﻣﺨﺘﻠﻒ ﺧﻮﺍﻫﻴﺪ ﺷﺪ .ﺑﺎ ﻛﻤﻚ ﺍﻳﻦ ﮔﺮﻭﻩ ﺍﺯ ﺗﮓ ﻫﺎ ﻗﺎﺩﺭ ﺑﻪ ﻧﻤﺎﻳﺶ ﺑﺎﻛﺴﻬﺎﻱ ﻭﺭﻭﺩ ﺍﻃﻼﻋﺎﺕ ﻣﺘﻦ ) ، (text fieldsﭼﻚ ﺑﺎﻛﺴﻬﺎ )check-
، (boxesﺭﺍﺩﻳﻮ ﺑﺎﺗﻮﻧﻬﺎ ) (radio-buttonsﻭ ...ﺷﺪﻩ ﻭ ﻫﻤﭽﻨﻴﻦ ﺍﻣﻜﺎﻥ ﮔﺬﺍﺷﺘﻦ ﺩﻛﻤﻪ ﻫﺎﻱ ﺍﺭﺳﺎﻝ ) (button submitﻭ ﻳﺎ resetﺭﺍ
ﺧﻮﺍﻫﻴﺪ ﺩﺍﺷﺖ .ﺍﻳﻦ ﻓﺼﻞ ﺑﺎ ﺷﺮﺡ ﺗﮓ ﻫﺎﻱ formﻭ inputﻭ ...ﺑﻪ ﭼﮕﻮﻧﮕﻲ ﺍﻳﺠﺎﺩ ﺍﺭﺗﺒﺎﻁ ﺑﺎ ﺑﺎﺯﺩﻳﺪﻛﻨﻨﺪﮔﺎﻥ ﻭ ﮔﺮﻓﺘﻦ ﺍﻃﻼﻋﺎﺕ ﺍﺯ ﺁﻧﻬﺎ ﺑﺼﻮﺭﺕ
ﻻﺗﻴﻦ ﻭ ﻳﺎ ﻓﺎﺭﺳﻲ ﺧﻮﺍﻫﺪ ﭘﺮﺩﺍﺧﺖ.
ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ ﺑﺮﺍﻱ ﭘﺮﺩﺍﺯﺵ ﺍﻃﻼﻋﺎﺕ ﺩﺭﻳﺎﻓﺘﻲ ﺍﺯ ﻛﺎﺭﺑﺮ ﺑﺎﻳﺪ ﺑﺎ ﻳﻜﻲ ﺍﺯ ﺯﺑﺎﻧﻬﺎﻱ cgiﺍﺯ ﻗﺒﻴﻞ JSP ،CFM ،PHP ،perl ،ASPﻳﺎ
Javaﺁﺷﻨﺎﺋﻲ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ .ﻣﺜﺎﻟﻬﺎﻱ cgiﻣﺪﺭﺳﻪ ﻭﺏ ﺍﺯ ﺭﺑﺎﻥ ﺍﺳﻜﺮﻳﭙﺖ Perlﻳﺎ PHPﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﻜﻨﻨﺪ.
ﻣﺜﺎﻟﻬﺎ:
ﻣﺜﺎﻟﻲ ﺳﺎﺩﻩ ﺩﺭ ﻣﻮﺭﺩ ﺍﻳﺠﺎﺩ password fieldﻫﺎ .ﺑﺎ ﻛﻤﻚ password fieldﻫﺎ ﻛﺎﺭﺑﺮﺍﻥ ﻗﺎﺩﺭ ﺑﻪ ﻭﺭﻭﺩ ﺭﻣﺰ ﻋﺒﻮﺭ ﻳﺎ ﭘﺴﻮﺭﺩ ﺧﻮﺍﻫﻨﺪ ﺷﺪ،
ﻣﺮﻭﺭﮔﺮﻫﺎ ﺑﺮﺍﻱ ﺍﻣﻨﻴﺖ ﺍﻃﻼﻋﺎﺕ ﺭﻣﺮﺯﻫﺎﻱ ﻋﺒﻮﺭ ﺭﺍ ﺭﻣﺰﮔﺬﺍﺭﻱ ﻣﻴﻜﻨﻨﺪ ﻭ ﻣﻌﻤﻮﻻ ﺍﺯ '*' ﺑﺮﺍﻱ ﻧﻤﺎﻳﺶ ﺍﻃﻼﻋﺎﺕ ﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﻜﻨﻨﺪ.
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ
ﻓﺮﻣﻬﺎ )(Forms
ﺗﻤﺎﻣﻲ ﻋﻨﺎﺻﺮ ﻭ ﺗﮕﻬﺎﺋﻲ ﻛﻪ ﺗﺎﻛﻨﻮﻥ ﺩﻳﺪﻩ ﺍﻳﺪ ﻓﻘﻂ ﺑﻪ ﻧﻤﺎﻳﺶ ﺍﻃﻼﻋﺎﺕ ﭘﺮﺩﺍﺧﺘﻪ ﺍﻧﺪ ﻭ ﻫﻴﭽﻜﺪﺍﻡ ﺑﻪ ﮔﺮﻓﺘﻦ ﻭ ﺍﺧﺬ ﺍﻃﻼﻋﺎﺕ ﺍﺯ ﻛﺎﺭﺑﺮ ﻧﭙﺮﺩﺍﺧﺘﻪ ﺍﻧﺪ.
ﻓﺮﻣﻬﺎ ﻛﻪ ﺑﺎ ﺗﮓ > <formﻣﻌﺮﻓﻲ ﻣﻴﺸﻮﻧﺪ ،ﻃﺮﺍﺡ ﺳﺎﻳﺖ ﺭﺍ ﻗﺎﺩﺭ ﺑﻪ ﺟﻤﻊ ﺁﻭﺭﻱ ﻭ ﺍﺧﺬ ﺍﻃﻼﻋﺎﺕ ﺍﺯ ﺑﺎﺯﺩﻳﺪﻛﻨﻨﺪﻩ ﺳﺎﻳﺖ ﺧﻮﺍﻫﻨﺪ ﻛﺮﺩ .ﻋﻨﺼﺮ ﻓﺮﻡ ﻭ
ﮔﺮﻭﻫﻲ ﺍﺯ ﻋﻨﺎﺻﺮ ﻭ ﺗﮕﻬﺎﻱ ﺩﺭﻭﻥ ﺁﻥ ﺑﻪ ﺩﺭﻳﺎﻓﺖ ﻭ ﺍﺭﺳﺎﻝ ﺍﻃﻼﻋﺎﺕ ﺑﻪ ﺳﻤﺖ ﻭﺏ ﺳﺮﻭﺭ ﻛﻤﻚ ﺧﻮﺍﻫﻨﺪ ﭘﺮﺩﺍﺧﺖ ) .ﺗﻤﺎﻣﻲ ﺗﮕﻬﺎﻱ ﻣﺮﺑﻮﻁ ﺑﻪ ﻓﺮﻣﻬﺎ
ﺩﺭﻭﻥ ﺗﮕﻬﺎﻱ > <formﻭ > </formﻗﺮﺍﺭ ﻣﻴﮕﻴﺮﻧﺪ( .
ﺩﺭﻭﻥ ﺗﮓ ﻓﺮﻡ ﮔﺮﻭﻩ ﺯﻳﺎﺩﻱ ﺍﺯ ﻋﻨﺎﺻﺮ ﻭ ﺗﮕﻬﺎﻱ ﻣﺨﺘﻠﻒ ﻗﺎﺑﻞ ﺍﺳﺘﻔﺎﺩﻩ ﻫﺴﺘﻨﺪ ﺍﺯ ﻗﺒﻴﻞ ﻋﻨﺎﺻﺮ ﻭﺭﻭﺩ ﻣﺘﻦ ﻳﻚ ﺳﻄﺮﻱ) ،(text fieldsﻋﻨﺎﺻﺮ ﻭﺭﻭﺩ
ﻣﺘﻨﻬﺎﻱ ﭼﻨﺪ ﺳﻄﺮﻱ ) ،(Textareaﻣﻨﻮﻫﺎﻱ drop-downﻭ radio buttonsﻭ ﻣﻨﻮﻫﺎﻱ drop-downﻭ ﻏﻴﺮﻩ.
ﺗﮓ Input
ﺑﻪ ﻋﻨﻮﺍﻥ ﭘﺮ ﻣﺼﺮﻑ ﺗﺮﻳﻦ ﺗﮓ ﻣﺮﺑﻮﻁ ﺑﻪ ﻭﺭﻭﺩ ﺍﻃﻼﻋﺎﺕ ﺑﺎﻳﺪ ﺍﺯ ﺗﮓ > <inputﻧﺎﻡ ﺑﺮﺩ .ﺩﺭ ﺍﻳﻦ ﺗﮓ ﺷﻨﺎﺳﻪ ﺍﻱ ﺑﻪ ﻧﺎﻡ typeﺑﻪ ﺗﻌﻴﻴﻦ ﻧﻮﻉ
ﺍﻃﻼﻋﺎﺕ ﻭﺭﻭﺩﻱ ﺍﺧﺘﺼﺎﺹ ﺩﺍﺭﺩ .ﻣﻘﺎﺩﻳﺮ ﻣﻤﻜﻦ ﺑﺮﺍﻱ ﺍﻳﻦ ﺷﻨﺎﺳﻪ ﺑﻪ ﻗﺮﺍﺭ ﺯﻳﺮﻧﺪ:
text , checkbox , radio , password , hidden , submit , reset , button , file , image
ﺩﺭ ﺍﺩﺍﻣﻪ ﺑﻪ ﺷﺮﺡ ﺑﻌﻀﻲ ﺍﺯ typeﻫﺎﻱ ﻛﺎﺭﺑﺮﺩﻱ ﺧﻮﺍﻫﻴﻢ ﭘﺮﺩﺍﺧﺖ:
ﺍﮔﺮ ﻣﻴﺨﻮﺍﻫﻴﺪ ﻛﻪ ﺑﺎﺯﺩﻳﺪﻛﻨﻨﺪﻩ ﺍﻃﻼﻋﺎﺗﻲ ﺍﺯ ﻗﺒﻴﻞ ﻣﺘﻦ ،ﺍﻋﺪﺍﺩ ﻭ ...ﺭﺍ ﻭﺍﺭﺩ ﻛﻨﺪ ﺍﺯ ﺷﻨﺎﺳﻪ ﺍﻱ ﺑﺎ ﻣﻘﺪﺍﺭ " "textﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﺸﻮﺩ.
><br
Last name: Last name:
>"<input type="text" name="lastname
></form
> "<form dir="rtl
:ﻧـــــــــــــــﺎﻡ
:ﻧـــــــــــــــﺎﻡ >"<input type="text" name="firstname
><br
:ﻧﺎﻡ ﺧﺎﻧﻮﺍﺩﮔﻲ :ﻧﺎﻡ ﺧﺎﻧﻮﺍﺩﮔﻲ
>"<input type="text" name="lastname
></form
ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ ﺗﮓ > <formﭼﻴﺰﻱ ﺭﺍ ﺑﻪ ﻧﻤﺎﻳﺶ ﻧﺨﻮﺍﻫﺪ ﮔﺬﺍﺷﺖ ﺑﻠﻜﻪ ﺗﮕﻬﺎﻱ ﺩﺭﻭﻥ ﺁﻥ ﺗﻮﺳﻂ ﻣﺮﻭﺭﮔﺮ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﻨﺪ ﺷﺪ .ﺩﺭ ﻣﺜﺎﻝ
ﻓﺎﺭﺳﻲ ﺑﺎﻻ ﺑﻪ ﺷﻨﺎﺳﻪ dirﻭ ﻣﻘﺪﺍﺭ rtlﺁﻥ ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ.ﻻﺯﻡ ﺑﻪ ﻳﺎﺩﺁﻭﺭﻱ ﺍﺳﺖ ﻛﻪ ﺍﻏﻠﺐ ﻣﺮﻭﺭﮔﺮﻫﺎ ﺩﺭ ﺣﺎﻟﺖ ﭘﻴﺶ ﻓﺮﺽ ﺑﺮﺍﻱ ﻭﺭﻭﺩﻳﻬﺎﻱ ﻣﺘﻦ
ﺍﻧﺪﺍﺯﻩ 20ﻛﺎﺭﺍﻛﺘﺮ ﺭﺍ ﺩﺭ ﻧﻈﺮ ﻣﻴﮕﻴﺮﻧﺪ ﻭ ﺍﮔﺮ ﻣﻴﺨﻮﺍﻫﻴﺪ ﻛﻪ ﺍﻧﺪﺍﺯﻩ ﭘﻴﺶ ﻓﺮﺽ ﻭﺭﻭﺩﻳﻬﺎﻱ ﻣﺘﻦ ﺭﺍ ﺗﻐﻴﻴﺮ ﺩﻫﻴﺪ ﺑﺎﻳﺪ ﺍﺯ ﺷﻨﺎﺳﻪ ﺍﻱ ﺑﻪ ﻧﺎﻡ sizeﺍﺳﺘﻔﺎﺩﻩ
ﻛﻨﻴﺪ.
ﺍﮔﺮ ﻣﻴﺨﻮﺍﻫﻴﺪ ﻛﻪ ﺑﺎﺯﺩﻳﺪﻛﻨﻨﺪﻩ ﻓﻘﻂ ﻳﻚ ﮔﺰﻳﻨﻪ ﺭﺍ ﺍﺯ ﺑﻴﻦ ﭼﻨﺪ ﮔﺰﻳﻨﻪ ﻣﺤﺪﻭﺩ ﺍﻧﺘﺨﺎﺏ ﻛﻨﺪ ،ﺍﺯ ﻣﻘﺪﺍﺭ " "radioﺑﺮﺍﻱ ﺷﻨﺎﺳﻪ typeﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ:
ﻫﻤﺎﻧﻄﻮﺭ ﻛﻪ ﻣﺸﺎﻫﺪﻩ ﻣﻴﺸﻮﺩ ﻓﻘﻂ ﺍﻣﻜﺎﻥ ﻳﻜﻲ ﺍﺯ ﮔﺰﻳﻨﻪ ﻫﺎ ﺑﺮﺍﻱ ﻛﺎﺭﺑﺮ ﻣﻴﺴﺮ ﺍﺳﺖ.
ﻭﺭﻭﺩﻳﻬﺎﻱ Checkboxes
ﺍﮔﺮ ﻣﻴﺨﻮﺍﻫﻴﺪ ﻛﻪ ﺑﺎﺯﺩﻳﺪﻛﻨﻨﺪﻩ ﻳﻚ ﻳﺎ ﭼﻨﺪ ﮔﺰﻳﻨﻪ ﺭﺍ ﺍﺯ ﺑﻴﻦ ﭼﻨﺪﻳﻦ ﮔﺰﻳﻨﻪ ﻣﺤﺪﻭﺩ ﺍﻧﺘﺨﺎﺏ ﻛﻨﺪ ،ﺍﺯ ﻣﻘﺪﺍﺭ " "checkboxﺑﺮﺍﻱ ﺷﻨﺎﺳﻪ type
ﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ:
><br
I have a car >"<input type="checkbox" name="car
I have a car
></form
>"<form dir="rtl
>"<input type="checkbox" name="bike
ﺩﻭﭼﺮﺧﻪ ﺩﺍﺭﻡ ﺩﻭﭼﺮﺧﻪ ﺩﺍﺭﻡ
><br
ﻣﺎﺷﻴﻦ ﺩﺍﺭﻡ >"<input type="checkbox" name="car
ﻣﺎﺷﻴﻦ ﺩﺍﺭﻡ
></form
ﺷﻨﺎﺳﻪ Actionﻭ ﺩﻛﻤﻪ Submitﺩﺭ ﻓﺮﻣﻬﺎ ) (Submit Button & Form's Action Attribute
ﺩﺭ ﻓﺮﻣﻬﺎ ﺑﺮﺍﻱ ﺍﺭﺳﺎﻝ ﺍﻃﻼﻋﺎﺕ ﻛﺴﺐ ﺷﺪﻩ ﺍﺯ ﺩﻛﻤﻪ ﺍﻱ ﺑﻪ ﻧﺎﻡ ﺍﺭﺳﺎﻝ ﻳﺎ Button Submitﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﺸﻮﺩ ﻭ ﺩﺭ ﺍﺛﺮ ﻛﻠﻴﻚ ﻛﺎﺭﺑﺮ ﺑﺮﻭﻱ ﺍﻳﻦ
ﺩﻛﻤﻪ " ، "Submitﺍﻃﻼﻋﺎﺕ ﺩﺭﻭﻥ ﻓﺮﻡ ﺗﻮﺳﻂ ﻣﺮﻭﺭﮔﺮ ﺑﻪ ﺻﻔﺤﻪ ﺍﻱ ﻛﻪ ﺷﻤﺎ ﺗﻌﻴﻴﻦ ﻣﻴﻜﻨﻴﺪ ﺍﺭﺳﺎﻝ ﺧﻮﺍﻫﻨﺪ ﺷﺪ .ﺑﺮﺍﻱ ﺗﻌﻴﻴﻦ ﻣﻘﺼﺪ ﺍﺭﺳﺎﻝ
ﺍﻃﻼﻋﺎﺕ ﺑﺎﻳﺪ ﺩﺭﻭﻥ ﺗﮓ formﺍﺯ ﺷﻨﺎﺳﻪ ﺍﻱ ﺑﻪ ﻧﺎﻡ actionﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ .ﻣﻘﺪﺍﺭ ﺷﻨﺎﺳﻪ actionﺁﺩﺭﺱ ﻳﺎ urlﺻﻔﺤﻪ ﺍﻱ ﺍﺳﺖ ﻛﻪ ﺑﻪ ﺩﺭﻳﺎﻓﺖ
ﻭ ﺳﭙﺲ ﭘﺮﺩﺍﺯﺵ ﺍﻃﻼﻋﺎﺕ ﺩﺭﻳﺎﻓﺘﻲ ﺧﻮﺍﻫﺪ ﭘﺮﺩﺍﺧﺖ .ﻣﻌﻤﻮﻻ ﻓﺎﻳﻠﻬﺎﻱ ﺑﺨﺶ actionﺑﺮﻧﺎﻣﻪ ﻫﺎ ﻭ ﺍﺳﻜﺮﻳﭙﺖ ﻫﺎﺋﻲ ﻧﻮﺷﺘﻪ ﺷﺪﻩ ﺑﺎ ﺭﺑﺎﻧﻬﺎﻱ cgiﻣﺎﻧﻨﺪ
PHP ، Perl ،ASPﻭ ...ﺑﻮﺩﻩ ﻭ ﻭﻇﻴﻔﻪ ﺁﻧﻬﺎ ﺩﺭﻳﺎﻓﺖ ﺍﻃﻼﻋﺎﺕ ﻓﺮﻣﻬﺎ ﻭ ﺳﭙﺲ ﭘﺮﺩﺍﺯﺵ ﺁﻧﻬﺎ ﻣﻴﺒﺎﺷﺪ.
ﺗﻌﻴﻴﻦ ﻣﻘﺪﺍﺭ " "submitﺑﺮﺍﻱ ﺷﻨﺎﺳﻪ typeﺳﺒﺐ ﻧﻤﺎﻳﺶ ﺩﻛﻤﻪ Submitﻳﺎ ﺍﺭﺳﺎﻝ ﺧﻮﺍﻫﺪ ﮔﺮﺩﻳﺪ.
ﺩﺭ ﻣﺜﺎﻝ ﺑﺎﻻ ﺩﺭ ﺑﺎﻛﺲ ﻭﺭﻭﺩﻱ ﻣﺘﻦ ،ﻛﻠﻤﻪ ﺍﻱ ﺭﺍ ﻭﺍﺭﺩ ﻛﺮﺩﻩ ﻭ ﺩﻛﻤﻪ ﺍﺭﺳﺎﻝ ﺭﺍ ﻛﻠﻴﻚ ﻛﻨﻴﺪ .ﻣﺮﻭﺭﮔﺮ ﺑﻪ ﻣﺤﺾ ﻛﻠﻴﻚ ﺩﻛﻤﻪ ﺍﺭﺳﺎﻝ ،ﺍﻃﻼﻋﺎﺕ ﺩﺭﻭﻥ
ﻓﺮﻡ ﺭﺍ ﻛﻪ ﺩﺭ ﺍﻳﻦ ﻣﺜﺎﻝ ﻣﺘﻨﻲ ﺳﺎﺩﻩ ﺍﺳﺖ ﺑﻪ ﺳﻤﺖ ﺁﺩﺭﺳﻲ ) (URLﻛﻪ ﺩﺭ ﺷﻨﺎﺳﻪ actionﺗﻌﻴﻴﻦ ﺷﺪﻩ ﺍﺳﺖ ﺍﺭﺳﺎﻝ ﻛﺮﺩﻩ ﻭ ﺩﺭ ﺍﻳﻦ ﻣﺜﺎﻝ ﺑﺮﻧﺎﻣﻪ ﺍﻱ
ﺑﻪ ﺯﺑﺎﻥ PHPﺑﺎ ﻧﺎﻡ form_action.phpﺩﺭ ﺳﻤﺖ ﺳﺮﻭﺭ ﺑﻪ ﺩﺭﻳﺎﻓﺖ ﻭ ﭘﺮﺩﺍﺯﺵ ﺍﻃﻼﻋﺎﺕ ﺩﺭﻳﺎﻓﺘﻲ ﺧﻮﺍﻫﺪ ﭘﺮﺩﺍﺧﺖ.
ﺑﻪ ﻳﺎﺩ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ ﺁﺩﺭﺱ ﻗﻴﺪ ﺷﺪﻩ ﺩﺭ ﺑﺨﺶ actionﻣﻴﺘﻮﺍﻧﺪ ﺁﺩﺭﺱ ﺍﺳﻜﺮﻳﭙﺘﻲ ﺩﺭ ﻫﺎﻣﺎﻥ ﺳﺎﻳﺖ ﻭ ﻳﺎ ﺳﺎﻳﺖ ﺩﻳﮕﺮﻱ ﺑﺎﺷﺪ ،ﻫﻤﭽﻨﻴﻦ ﻣﻴﺘﻮﺍﻧﺪ
ﺁﺩﺭﺳﻲ ﻧﺴﺒﻲ ﻳﺎ ﻣﻄﻠﻖ ﺑﺎﺷﺪ.
ﻫﻤﺎﻧﻄﻮﺭ ﻛﻪ ﺩﺭ ﻣﺜﺎﻟﻬﺎﻱ ﺑﺎﻻ ﻣﺸﺎﻫﺪﻩ ﻛﺮﺩﻳﺪ ﺩﺭ ﻣﻮﺭﺩ ﺍﻟﻤﺎﻧﻬﺎﻱ Text fieldﻭ Textareaﻣﺎﻧﻨﺪ ﺑﺴﻴﺎﺭﻱ ﺩﻳﮕﺮ ﺍﺯ ﺍﻟﻤﺎﻧﻬﺎ ﺑﺎ ﻛﻤﻚ ﺷﻨﺎﺳﻪ dir
ﻣﻴﺘﻮﺍﻥ ﺳﻤﺖ ﻭ ﺟﻬﺖ ﻭﺭﻭﺩ ﺍﻃﻼﻋﺎﺕ ﺭﺍ "ﺍﺯ ﺭﺍﺳﺖ ﺑﻪ ﭼﭗ" ﺗﻌﻴﻴﻦ ﻛﻨﻴﺪ .ﻭﻟﻲ ﺍﮔﺮ ﻛﺎﺭﺑﺮﻱ ﻭﻳﻨﺪﻭﺯ ﻓﺎﺭﺳﻲ ﻧﺪﺍﺷﺘﻪ ﺑﺎﺷﺪ ،ﺍﺯ ﻛﺎﻣﭙﻴﻮﺗﺮﻫﺎﻱ ﻣﻜﻴﻨﺘﺎﺵ
ﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﺪ ﻭ ﻳﺎ ﺳﻴﺴﺘﻤﺶ ﺭﺍ ﻓﺎﺭﺳﻲ ﻧﻜﺮﺩﻩ ﺑﺎﺷﺪ ﻗﺎﺩﺭ ﺑﻪ ﻭﺭﻭﺩ ﺍﻃﻼﻋﺎﺕ ﺑﻪ ﺯﺑﺎﻥ ﻓﺎﺭﺳﻲ ﻧﺨﻮﺍﻫﺪ ﺑﻮﺩ ﻭ ﻧﻮﻳﺴﻪ ﻫﺎﻱ ﺗﺎﻳﭗ ﺷﺪﻩ ﻻﺗﻴﻦ ﺧﻮﺍﻫﻨﺪ ﺑﻮﺩ!،
ﺩﺭ ﺍﻳﻨﮕﻮﻧﻪ ﻣﻮﺍﺭﺩ ﭼﻪ ﺑﺎﻳﺪ ﻛﺮﺩ؟
ﻣﻌﻤﻮﻻ ﺑﺮﻧﺎﻣﻪ ﻧﻮﻳﺴﺎﻥ ﻭﺏ ﺑﺮﺍﻱ ﻓﺮﺍﻫﻢ ﺳﺎﺧﺘﻦ ﺍﻣﻜﺎﻥ ﻭﺭﻭﺩ ﻣﺘﻦ ﻓﺎﺭﺳﻲ ﺍﺯ ﻳﻜﻲ ﺍﺯ ﺩﻭ ﺭﻭﺵ ﺯﻳﺮ ﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﻜﻨﻨﺪ:
•ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺍﭘﻠﺘﻬﺎﻱ ﺟﺎﻭﺍ ﻳﺎ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﻓﻠﺶ
•ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺯﺑﺎﻥ ﺟﺎﻭﺍ ﺍﺳﻜﺮﻳﭙﺖ
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ
Checkboxes
ﻣﺜﺎﻟﻲ ﺩﺭ ﻣﻮﺭﺩ ﻧﺤﻮﻩ ﺗﻌﺮﻳﻒ ﻓﺮﻣﻲ ﻣﺘﺸﻜﻞ ﺍﺯ Checkboxﻫﺎ
Radiobuttons
ﻣﺜﺎﻟﻲ ﺩﺭ ﻣﻮﺭﺩ ﻧﺤﻮﻩ ﺗﻌﺮﻳﻒ ﻓﺮﻣﻲ ﻣﺘﺸﻜﻞ ﺍﺯ Radio buttonﻫﺎ
Textarea
ﻣﺜﺎﻟﻲ ﺩﺭ ﻣﻮﺭﺩ ﻧﺤﻮﻩ ﺗﻌﺮﻳﻒ ﻓﺮﻣﻲ ﻣﺘﺸﻜﻞ ﺍﺯ ، Textareaﻧﺎﺣﻴﻪ ﺍﻱ ﺑﺮﺍﻱ ﻭﺭﻭﺩ ﺑﻴﺶ ﺍﺯ ﻳﻚ ﺳﻄﺮ ﻣﺘﻦ
ﺗﮕﻬﺎﻱ ﻓﺮﻡ
><textarea
Defines a text-area (a multi-line text input ﺗﻌﺮﻳﻒ ﻭﺭﻭﺩﻱ ﻣﺘﻦ ﭼﻨﺪ ﺳﻄﺮﻱ ﻳﺎ text-area
)control
><label Defines a label to a control ﺗﻌﺮﻳﻒ ﺑﺮﭼﺴﺐ ﻳﺎ label
<fieldset> Defines a fieldset ﺗﻌﺮﻳﻒ fieldset
<legend> Defines a caption for a fieldset ﺗﻌﺮﻳﻒ ﻋﻨﻮﺍﻥ ﺑﺮﺍﻱ fieldsetﻫﺎ
)<select> Defines a selectable list (a drop-down box ﺗﻌﺮﻳﻒ ﻓﻬﺮﺳﺘﻬﺎﻱ ﺍﻧﺘﺨﺎﺑﻲ ﻳﺎ drop-down box
<optgroup>Defines an option group ﺗﻌﺮﻳﻒ option groupﻫﺎ
<option> Defines an option in the drop-down box ﺗﻌﺮﻳﻒ ﮔﺰﻳﻨﻪ ﺍﻱ ﺍﺯ drop-down boxﻫﺎ
ﺗﻌﺮﻳﻒ ﺩﻛﻤﻪ ﻓﺸﺎﺭﻱ ،ﻣﺘﻔﺎﻭﺕ ﺑﺎ buttonﺗﮓ
><button Defines a push button
input
ﺗﺼﺎﻭﻳﺮ ) ( Images
ﺩﺭ ﺍﻳﻦ ﺩﺭﺱ ﺑﺎ ﺗﮓ ، imgﺷﻨﺎﺳﻪ srcﻭ ، altﺗﮕﻬﺎﻱ Mapﻭ Areaﻭ ﭼﮕﻮﻧﮕﻲ ﻧﻤﺎﻳﺶ ﺗﺼﺎﻭﻳﺮ ﻭ ﻫﻤﭽﻨﻴﻦ ﺗﻨﻈﻴﻢ ﻣﺤﻞ ﺁﻧﻬﺎ ﺩﺭ ﺳﻨﺪﻫﺎﻱ
ﺍﭼﺘﻤﻞ ﺁﺷﻨﺎ ﺧﻮﺍﻫﻴﺪ ﺷﺪ.
ﻣﺜﺎﻟﻬﺎ:
ﺩﺭﺝ ﺗﺼﻮﻳﺮ
ﻧﺤﻮﻩ ﺍﺿﺎﻓﻪ ﻛﺮﺩﻥ ﺗﺼﻮﻳﺮ ﺑﻪ ﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﺑﺎ ﻛﻤﻚ ﺗﮓ img
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ
ﺩﺭ ﺯﺑﺎﻥ ﺍﭼﺘﻤﻞ ﺗﺼﺎﻭﻳﺮ ﺭﺍ ﺑﺎ ﻛﻤﻚ ﺗﮓ > <imgﺗﻌﺮﻳﻒ ﻣﻴﻜﻨﻨﺪ .ﺗﮓ > <imgﺍﺯ ﻧﻮﻉ ﺗﮕﻬﺎﻱ ﺧﺎﻟﻲ ﺍﺳﺖ ،ﺑﺪﻳﻦ ﻣﻌﻨﺎ ﻛﻪ ﻓﻘﻂ ﺩﺍﺭﺍﻱ ﻳﻚ ﻳﺎ ﭼﻨﺪ
ﺷﻨﺎﺳﻪ ﻭ attributeﺑﻮﺩﻩ ﻭ ﺩﺍﺭﺍﻱ ﺗﮓ ﺍﻧﺘﻬﺎﺋﻲ ﻳﺎ > </imgﻧﻴﺴﺖ.
ﻣﻬﻤﺘﺮﻳﻦ ﺷﻨﺎﺳﻪ ﺑﺮﺍﻱ ﺩﺭﺝ ﻭ ﺗﻌﺮﻳﻒ ﻳﻚ ﺗﺼﻮﻳﺮ srcﻳﺎ sourceﻧﺎﻡ ﺩﺍﺭﺩ ﻭ ﻣﻘﺪﺍﺭ ﺍﻳﻦ ﺷﻨﺎﺳﻪ ﺁﺩﺭﺱ ﻳﺎ URLﺗﺼﻮﻳﺮ ﻣﻴﺒﺎﺷﺪ .ﺗﺼﺎﻭﻳﺮﻱ ﻛﻪ
ﻣﺮﻭﺭﮔﺮ ﺩﺭ ﻳﻚ ﺻﻔﺤﻪ ﻭﺏ ﻧﻤﺎﻳﺶ ﻣﻴﺪﻫﺪ ﻣﻴﺘﻮﺍﻧﻨﺪ ﺩﺭ ﻫﻤﺎﻥ ﺩﺍﻳﺮﻛﺘﻮﺭﻱ ﺻﻔﺤﻪ ﺍﭼﺘﻤﻞ ،ﺩﺭ ﺩﻳﮕﺮ ﺩﺍﻳﺮﻛﺘﻮﺭﻳﻬﺎﻱ ﻫﻤﺎﻥ ﺳﺎﻳﺖ ﻭ ﻳﺎ ﺩﺭ ﻓﻀﺎﻱ ﺑﻴﻜﺮﺍﻥ
ﻭﺏ ﻗﺮﺍﺭ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻨﺪ.
>"<img src="url
ﻣﻘﺪﺍﺭ urlﺁﺩﺭﺱ ﺍﻳﻨﺘﺮﻧﺘﻲ ﺗﺼﻮﻳﺮ ﻣﻴﺒﺎﺷﺪ ﻭ ﻣﺜﻼ ﺍﮔﺮ ﺗﺼﻮﻳﺮﻱ ﻛﻪ ﻗﺮﺍﺭ ﺍﺳﺖ ﻛﻪ ﺩﺭ ﺻﻔﺤﻪ ﺩﺭﺝ ﺷﻮﺩ ﺩﺭ ﻫﻤﺎﻥ ﺩﺍﻳﺮﻛﺘﻮﺭﻱ ﻗﺮﺍﺭ ﺩﺍﺭﺩ ﻭ ﻧﺎﻣﺶ
، test.jpgﻛﺎﻓﻲ ﺍﺳﺖ ﻛﻪ ﺑﻪ ﺟﺎﻱ urlﻓﻘﻂ ﻧﺎﻡ ﺗﺼﻮﻳﺮ ﻳﻌﻨﻲ test.jpgﺭﺍ ﺑﻨﻮﻳﺴﻴﺪ ﻭ ﺍﮔﺮ ﺗﺼﻮﻳﺮ ﺩﺭ ﺳﺎﻳﺘﻲ ﺩﻳﻜﺮ ﻗﺮﺍﺭ ﺩﺍﺭﺩ urlﻛﺎﻣﻞ ﺁﻧﺮﺍ
ﺑﻨﻮﻳﺴﻴﺪ .ﻣﺜﻼ ﺗﺼﻮﻳﺮ ﻟﻮﮔﻮ ﺳﺎﻳﺖ google.comﺩﺍﺭﺍﻱ urlﻱ ﺑﺮﺍﺑﺮ http://www.google.com/images/logo.gifﺍﺳﺖ.ﺩﺭ ﺍﻳﻦ
urlﻧﺎﻡ ﺗﺼﻮﻳﺮ logo.gifﺑﻮﺩﻩ ،ﺩﺭ ﺩﺍﻳﺮﻛﺘﻮﺭﻱ imagesﻗﺮﺍﺭ ﺩﺍﺷﺘﻪ ﻭ ﺭﻭﻱ ﻭﺏ ﺳﺎﻳﺖ google.comﻗﺮﺍﺭ ﺩﺍﺭﺩ.
ﻛﺎﺭﺑﺮﺩ ﺷﻨﺎﺳﻪ ﻫﺎﻱ widthﻭ heightﺗﻌﻴﻴﻦ ﻋﺮﺽ ﻭ ﺍﺭﺗﻔﺎﻉ ﻧﻤﺎﻳﺶ ﺗﺼﻮﻳﺮ ﺍﺳﺖ .ﺍﮔﺮ ﺍﺯ ﺍﻳﻦ ﺷﻨﺎﺳﻪ ﻫﺎ ﺍﺳﺘﻔﺎﺩﻩ ﻧﻜﻨﻴﺪ ،ﻣﺮﻭﺭﮔﺮ ﺍﺑﺘﺪﺍ ﺗﺼﻮﻳﺮ ﺭﺍ ﻟﻮﺩ
ﻛﺮﺩﻩ ﻭ ﺳﭙﺲ ﻃﻮﻝ ﻭ ﻋﺮﺽ ﺁﻧﺮﺍ ﻳﺎﻓﺘﻪ ﻭ ﺩﺭ ﻧﻬﺎﻳﺖ ﻧﻤﺎﻳﺶ ﻣﻴﺪﻫﺪ .ﺑﺎ ﻧﻮﺷﺘﻦ ﻣﻘﺎﺩﻳﺮﻱ ﻏﻴﺮ ﺍﺯ ﻣﻘﺎﺩﻳﺮ ﻭﺍﻗﻌﻲ ﻃﻮﻝ ﻭ ﻋﺮﺽ ﺗﺼﻮﻳﺮ ﻣﻴﺘﻮﺍﻧﻴﺪ ﺑﻪ ﺗﻐﻴﻴﺮ
ﺷﻜﻞ ﻭ ﺍﺑﻌﺎﺩ ﺁﻥ ﺑﭙﺮﺩﺍﺯﻳﺪ ﻭ ﺁﻧﺮﺍ ﻣﺜﻼ ﻛﻮﭼﻜﺘﺮ ،ﺑﺰﺭﮔﺘﺮ ﻭ ﻳﺎ ﻛﺸﻴﺪﻩ ﺗﺮ ﻧﻤﺎﻳﺶ ﺩﻫﻴﺪ .ﻣﺜﺎﻝ ﺯﻳﺮ ﻧﺤﻮﻩ ﺩﺭﺝ ﺗﺼﻮﻳﺮﻱ ﺭﺍ ﺑﺎ ﻗﻴﺪ ﺍﺑﻌﺎﺩ ﺁﻥ ﺷﺮﺡ ﻣﻴﺪﻫﺪ:
ﺗﻮﺻﻴﻪ ﻣﻴﺸﻮﺩ ﻛﻪ ﺣﺘﻤﺎ ﺍﺑﻌﺎﺩ ﺗﺼﻮﻳﺮ ﺭﺍ ﺑﺎ ﻛﻤﻚ ﺷﻨﺎﺳﻪ ﻫﺎﻱ widthﻭ heightﻗﻴﺪ ﻛﻨﻴﺪ ،ﺍﻳﻨﻜﺎﺭ ﺳﺒﺐ ﻛﻤﻚ ﺑﻪ ﻣﺮﻭﺭﮔﺮ ﺩﺭ ﺗﺴﺮﻳﻊ ﺷﺮﻭﻉ ﻧﻤﺎﻳﺶ
ﺻﻔﺤﻪ ﺧﻮﺍﻫﺪ ﺷﺪ).ﺩﺭ ﻭﺍﻗﻊ ﺑﺎ ﻗﻴﺪ ﺍﺑﻌﺎﺩ ﺗﺼﻮﻳﺮ ،ﻣﺮﻭﺭﮔﺮ ﻗﺒﻞ ﺍﺯ ﻟﻮﺩ ﺗﺼﻮﻳﺮ ﻣﻴﺪﺍﻧﺪ ﻛﻪ ﭼﻪ ﻣﻘﺪﺍﺭ ﺍﺯ ﺻﻔﺤﻪ ﻧﻤﺎﻳﺶ ﺑﺎﻳﺪ ﺑﻪ ﺗﺼﻮﻳﺮ ﻣﺰﺑﻮﺭ ﺍﺧﺘﺼﺎﺹ ﺩﺍﺩﻩ
ﺷﻮﺩ ﻭ ﻗﺒﻞ ﺍﺯ ﻟﻮﺫ ﺷﺪﻥ ﺗﻤﺎﻣﻲ ﺗﺼﺎﻭﻳﺮ ﻣﺮﻭﺭﮔﺮ ﺷﺮﻭﻉ ﺑﻪ ﻧﻤﺎﻳﺶ ﻗﺎﻟﺐ ﻭ ﭼﺎﺭﭼﻮﺏ ﻛﻠﻲ ﺻﻔﺤﻪ ﺧﻮﺍﻫﺪ ﻛﺮﺩ(.
ﺍﮔﺮ ﻣﺮﻭﺭﮔﺮ ﺑﻪ ﻫﺮ ﺩﻟﻴﻠﻲ ﻧﺘﻮﺍﻧﺪ ﻛﻪ ﻳﻚ ﺗﺼﻮﻳﺮ ﺭﺍ ﻧﻤﺎﻳﺶ ﺩﻫﺪ ﻭ ﻳﺎ ﻣﺮﻭﺭﮔﺮ ﺍﺯ ﻧﻮﻉ ﻣﺮﻭﺭﮔﺮﻫﺎﺋﻲ ﺑﺎﺷﺪ ﻛﻪ ﻓﻘﻂ ﻣﺘﻦ ﺭﺍ ﻧﻤﺎﻳﺶ ﻣﻴﺪﻫﻨﺪ ،ﻣﺘﻦ ﻭ text
ﻱ ﻛﻪ ﺑﺎ ﻛﻤﻚ ﺷﻨﺎﺳﻪ altﺗﻌﻴﻴﻦ ﺷﺪﻩ ﺍﺳﺖ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ .ﻫﻤﭽﻨﻴﻦ ﺩﺭ ﺍﻏﻠﺐ ﻣﺮﻭﺭﮔﺮﻫﺎ ﺑﺎ ﻗﺮﺍﺭﮔﺮﻓﺘﻦ ﻣﺎﻭﺱ ﺑﺮﻭﻱ ﻳﻚ ﺗﺼﻮﻳﺮ ،ﻣﺘﻦ
ﺗﻌﻴﻴﻦ ﺷﺪﻩ ﺗﻮﺳﻂ ﺷﻨﺎﺳﻪ altﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﺧﻮﺍﻫﺪ ﺷﺪ .ﺑﺎ ﻛﻤﻚ altﺍﻃﻼﻋﺎﺕ ﺍﺿﺎﻓﻲ ﻣﺮﺑﻮﻁ ﺑﻪ ﺗﺼﻮﻳﺮ ﻗﺎﺑﻞ ﻧﻤﺎﻳﺶ ﻣﻴﺒﺎﺷﺪ.ﻣﺜﺎﻝ ﺯﻳﺮ ﻧﺤﻮﻩ ﺩﺭﺝ
ﺗﺼﻮﻳﺮﻱ ﺭﺍ ﺑﺎ ﻗﻴﺪ ﻣﺘﻦ ﺟﺎﻳﮕﺰﻳﻦ ﺁﻥ ﺷﺮﺡ ﻣﻴﺪﻫﺪ:
•ﺏ( ﺗﺼﻮﻳﺮ ﺭﻭﻱ ﻫﺎﺭﺩ ﻛﺎﻣﻴﻴﻮﺗﺮ ﺷﻤﺎ ﺍﺳﺖ ﻭ ﻫﻨﻮﺯ ﺑﺮﻭﻱ ﻭﺏ ﻣﻨﺘﻘﻞ ﻧﺸﺪﻩ ﺍﺳﺖ .ﺩﺭ ﺍﻳﻦ ﺣﺎﻟﺖ ﭼﻮﻥ ﺑﻌﻀﻲ ﺳﻴﺴﺘﻢ ﻫﺎﻱ ﻭﺑﻼگ ﺍﻣﻜﺎﻥ ﺫﺧﻴﺮﻩ
ﺗﺼﺎﻭﻳﺮ ﺭﺍ ﺑﻪ ﺷﻤﺎ ﻧﻤﻲ ﺩﻫﻨﺪ ﺑﺎﻳﺪ ﺍﺑﺘﺪﺍ ﺗﺼﻮﻳﺮﺗﺎﻥ ﺭﺍ ﺑﺎ ﻛﻤﻚ FTPﻳﺎ ﺭﻭﺷﻬﺎﻱ ﺩﻳﮕﺮ ﺑﻪ ﺭﻭﻱ ﺳﺎﻳﺖ ﻳﺎ ﻫﺮ ﻭﺏ ﺳﺮﻭﺭ ﺩﻳﮕﺮﻱ ﻣﻨﺘﻘﻞ ﻛﻨﻴﺪ.
ﺷﺮﻛﺘﻬﺎﻱ ﻣﺨﺘﻠﻔﻲ ﻓﻀﺎﻱ ﻣﺠﺎﻧﻲ ﺑﺮﺍﻱ ﺳﺎﺧﺖ ﺻﻔﺤﺎﺕ ﻭﺏ ﻭ ﺫﺧﻴﺮﻩ ﺍﻃﻼﻋﺎﺕ ﻭ ﺗﺼﺎﻭﻳﺮ ﺩﺭ ﺍﺧﺘﻴﺎﺭ ﺷﻤﺎ ﻗﺮﺍﺭ ﻣﻴﺪﻫﻨﺪ ﻭ ﺩﺭ ﻳﻜﻲ ﺍﺯ ﺳﺆﺍﻟﻬﺎﻱ ﺍﻳﻦ
FAQﻓﻬﺮﺳﺖ ﺍﻳﻦ ﺷﺮﻛﺘﻬﺎ ﺭﺍ ﻣﻴﺘﻮﺍﻧﻴﺪ ﺑﺒﻴﻨﻴﺪ .ﺑﻨﺎﺑﺮﺍﻳﻦ ﺍﺑﺘﺪﺍ ﻓﻀﺎﺋﻲ ﺩﺭ ﻭﺏ ﺗﻬﻴﻪ ﻛﺮﺩﻩ ،ﺳﭙﺲ ﺗﺼﻮﻳﺮﺗﺎﻥ ﺭﺍ Uploadﻛﺮﺩﻩ )ﺑﺎ ﻛﻤﻚ FTPﻳﺎ
ﺭﻭﺷﻬﺎﺱ ﺩﻳﮕﺮ ( ﻭ ﺳﭙﺲ ﺩﺭ ﺷﻨﺎﺳﻪ srcﺍﺯ ﺗﮓ imgﺁﺩﺭﺱ ﺟﺪﻳﺪ ﺗﺼﻮﻳﺮ ﺭﺍ ﻗﻴﺪ ﻛﻨﻴﺪ.
ﺍﮔﺮ ﺩﺭ ﻳﻚ ﺻﻔﺤﻪ ﺍﭼﺘﻤﻞ ﺍﺯ 10ﺗﺼﻮﻳﺮ ﺍﺳﺘﻔﺎﺩﻩ ﺷﺪﻩ ﺑﺎﺷﺪ ،ﻣﺮﻭﺭﮔﺮ ﺑﺎﻳﺪ 11ﻓﺎﻳﻞ ﺭﺍ ﻟﻮﺩ ﻛﻨﺪ ).ﺧﻮﺩ ﺻﻔﺤﻪ ﺑﻪ ﻋﻼﻭﻩ 10ﺗﺼﻮﻳﺮ( •
ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺗﺼﺎﻭﻳﺮ ،ﺳﺮﻋﺖ ﻟﻮﺩ ﺷﺪﻥ ﺻﻔﺤﺎﺕ ﺭﺍ ﭘﺎﻳﻴﻦ ﻣﻲ ﺁﻭﺭﺩ.ﺑﺎ ﺍﺣﺘﻴﺎﻁ ﺍﺯ ﺗﺼﺎﻭﻳﺮ ﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ ﻭ ﺑﻪ ﺍﻧﺪﺍﺯﻩ ﻭ ﺣﺠﻢ ﺗﺼﻮﻳﺮ ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ •
ﺑﺎﺷﻴﺪ.
ﻟﻮﺩ ﺗﺼﻮﻳﺮﻱ ﺑﺎ ﺣﺠﻢ 50ﻛﻴﻠﻮﺑﺎﻳﺖ ﺑﺮﺍﻱ ﻛﺴﻲ ﻛﻪ ﺍﺯ ﻣﻮﺩﻣﻲ ﺑﺎ ﺳﺮﻋﺖ kbps28ﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﻜﻨﺪ ﺣﺪﺍﻗﻞ 15ﺛﺎﻧﻴﻪ ﻃﻮﻝ ﺧﻮﺍﻫﺪ ﻛﺸﻴﺪ. •
ﺑﺮﺍﻱ ﺩﻳﺪﻥ ﻣﺸﺨﺼﺎﺕ ﺗﺼﺎﻭﻳﺮ ﺩﺭ ﻭﺏ ﻛﺎﻓﻲ ﺍﺳﺖ ﻛﻪ ﺭﻭﻱ ﺗﺼﻮﻳﺮ Right clickﻛﺮﺫﻩ ﻭ ﺳﭙﺲ ﺩﺭ ﺑﺨﺶ properities •
ﺁﺩﺭﺱ،ﺍﺑﻌﺎﺩ ﻭ ﻇﺮﻓﻴﺖ ﺗﺼﻮﻳﺮ ﺭﺍ ﺑﺒﻴﻨﻴﺪ.
ﺑﺮﺍﻱ ﺫﺧﻴﺮﻩ ﺗﺼﺎﻭﻳﺮ ﺩﺭ ﻭﺏ ﻛﺎﻓﻲ ﺍﺳﺖ ﻛﻪ ﺭﻭﻱ ﺗﺼﻮﻳﺮ Right clickﻛﺮﺫﻩ ﻭ ﺳﭙﺲ ﺩﺭ ﺑﺨﺶ " "Save picture asﺁﻧﺮﺍ ﺫﺧﻴﺮﻩ •
ﻛﻨﻴﺪ.
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ
ﺗﺼﺎﻭﻳﺮ ﺯﻣﻴﻨﻪ
ﻣﺜﺎﻟﻲ ﺩﺭ ﻣﻮﺭﺩ ﻧﺤﻮﻩ ﺗﻌﻴﻴﻦ ﺗﺼﺎﻭﻳﺮ ﺯﻣﻴﻨﻪ ﺑﺎ ﻛﻤﻚ ﺷﻨﺎﺳﻪ backgroundﺩﺭ ﺗﮓ body
ﺗﺮﺍﺯﺑﻨﺪﻱ ﺗﺼﺎﻭﻳﺮ
ﺍﻳﻦ ﻣﺜﺎﻝ ﻧﺤﻮﻩ ﺗﺮﺍﺯﺑﻨﺪﻱ ﺗﺼﺎﻭﻳﺮ ﺩﺭ ﻛﻨﺎﺭ ﻣﺘﻮﻥ ﺭﺍ ﻧﺸﺎﻥ ﻣﻴﺪﻫﺪ.
ﺑﺮﺍﻧﺎﻣﻪ ﺍﻱ ﺧﻮﺏ ﻭ ﻣﺘﻦ ﺑﺎﺯ ﺑﺮﺍﻱ FTPﺭﺍ ﻣﻴﺘﻮﺍﻧﻴﺪ ﺍﻳﻨﺠﺎ ﺩﺍﻭﻧﻠﻮﺩ ﻛﻨﻴﺪ:
Filezilla
ﺩﺭ ﺍﻳﻦ ﺩﺭﺱ ﺑﺎ ﭼﮕﻮﻧﮕﻲ ﺗﻌﻴﻴﻦ ﺗﺼﺎﻭﻳﺮ ﻭ ﺭﻧﮓ ﭘﺲ ﺯﻣﻴﻨﻪ ) (Backgroundﺁﺷﻨﺎ ﺧﻮﺍﻫﻴﺪ ﺷﺪ .ﺭﻧﮓ ﻭ ﻳﺎ ﺗﺼﻮﻳﺮ ﭘﺲ ﺯﻣﻴﻨﻪ ﻋﺎﻣﻞ ﺑﺴﻴﺎﺭ ﻣﻬﻤﻲ
ﺩﺭ ﻃﺮﺍﺣﻲ ﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﺑﻮﺩﻩ ﻭ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺭﻧﮓ ﻭ ﻳﺎ ﺗﺼﻮﻳﺮ ﻣﻨﺎﺳﺐ ﻧﻘﺸﻲ ﺗﻌﻴﻴﻦ ﻛﻨﻨﺪﻩ ﺩﺭ ﺧﻮﺍﻧﺎ ﺑﻮﺩﻥ ﺻﻔﺤﺎﺕ ﺩﺍﺭﺩ.
ﻣﺜﺎﻟﻬﺎ:
ﻣﺜﺎﻟﻬﺎﻱ ﺑﻴﺸﺘﺮ
ﺗﮓ > <bodyﺩﺍﺭﺍﻱ ﺩﻭ ﺷﻨﺎﺳﻪ ﻣﻬﻢ ﺑﺮﺍﻱ ﺗﻌﻴﻴﻦ ﺭﻧﮓ ﻭ ﺗﺼﻮﻳﺮ ﭘﺲ ﺯﻣﻴﻨﻪ ﻣﻴﺒﺎﺷﺪ .ﭘﺲ ﺯﻣﻴﻨﻪ ﻳﻚ ﺻﻔﺤﻪ ﺍﭼﺘﻤﻞ ،ﺭﻧﮓ ﻭ ﻳﺎ ﻳﻚ ﺗﺼﻮﻳﺮ ﻣﻴﺘﻮﺍﻧﺪ
ﺑﺎﺷﺪ.
ﺷﻨﺎﺳﻪ bgcolorﺭﻧﮓ ﭘﺲ ﺯﻣﻴﻨﻪ ﺭﺍ ﺗﻌﻴﻴﻦ ﻣﻴﻜﻨﺪ .ﻣﻘﺪﺍﺭ ﺭﻧﮓ ﭘﺲ ﺯﻣﻴﻨﻪ ﻣﻴﺘﻮﺍﻧﺪ ﻧﺎﻡ ﺭﻧﮓ )ﻣﺜﻞ redﻳﺎ ، ( blueﻣﻘﺪﺍﺭ ﺁﻥ ﺑﺮ ﺍﺳﺎﺱ ﺍﺳﺘﺎﻧﺪﺍﺭﺩ
RGBﻭ ﻳﺎ ﺣﺘﻲ ﻣﻘﺪﺍﺭ ﻫﮕﺰﺍﺩﺳﻴﻤﺎﻝ ) (Hexadecimalﺑﺎﺷﺪ.
>"<body bgcolor="#000000
>")<body bgcolor="rgb(0,0,0
>"<body bgcolor="black
ﺩﺭ ﺗﻤﺎﻣﻲ ﻣﺜﺎﻟﻬﺎﻱ ﺑﺎﻻ ﺑﺎ ﻛﻤﻚ ﺷﻨﺎﺳﻪ bgcolorﺭﻧﮓ ﺯﻣﻴﻨﻪ ﺻﻔﺤﻪ "ﺳﻴﺎﻩ" ﺗﻌﻴﻴﻦ ﻣﻴﺸﻮﺩ.
ﺑﺮﺍﻱ ﺗﻌﻴﻴﻦ ﺗﺼﻮﻳﺮﻱ ﻛﻪ ﺑﻪ ﻋﻨﻮﺍﻥ ﭘﺲ ﺯﻣﻴﻨﻪ ﺻﻔﺤﻪ ﻧﻤﺎﻳﺶ ﺩﺍﺩﻩ ﻣﻴﺸﻮﺩ ﺍﺯ ﺷﻨﺎﺳﻪ backgroundﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﺸﻮﺩ.ﻣﻘﺪﺍﺭ ﺍﻳﻦ ﺷﻨﺎﺳﻪ URLﻳﺎ
ﺁﺩﺭ ﺱ ﺗﺼﻮﻳﺮ ) (imageﻣﻴﺒﺎﺷﺪ.ﺍﮔﺮ ﺍﺑﻌﺎﺩ ﺗﺼﻮﻳﺮ ﻛﻮﭼﻜﺘﺮ ﺍﺯ ﺍﺑﻌﺎﺩ ﭘﻨﺠﺮﻩ ﺍﺻﻠﻲ ﻣﺮﻭﺭﮔﺮ ﺑﺎﺷﺪ ،ﺗﺼﻮﻳﺮ ﺯﻣﻴﻨﻪ ﺗﻜﺜﻴﺮ ﺧﻮﺍﻫﺪ ﺷﺪ ﺗﺎ ﺣﺪﻱ ﻛﻪ ﺗﻤﺎﻡ
ﺻﻔﺤﻪ ﻧﻤﺎﻳﺶ ﺍﺯ ﺗﺼﻮﻳﺮ ﺯﻣﻴﻨﻪ ﭘﻮﺷﺎﻧﺪﻩ ﺷﻮﺩ.
>"<body background="bg.gif
>"<body background="http://www.khaterat.com/images/bg.gif
ﺩﺭ ﻣﺜﺎﻝ ﺍﻭﻝ ﺍﺯ ﺁﺩﺭﺱ ﺩﻫﻲ ﻧﺴﺒﻲ ) (relativeﺑﺮﺍﻱ ﺗﻌﻴﻴﻦ URLﻳﺎ ﺁﺩﺭﺱ ﺗﺼﻮﻳﺮ ﺍﺳﺘﻔﺎﺩﻩ ﺷﺪﻩ ﻭ ﺩﺭ ﻭﺍﻗﻊ ﺩﺭ ﺍﻳﻦ ﻣﺜﺎﻝ ﻓﺎﻳﻞ ﺍﭼﺘﻤﻞ ﻭ ﺗﺼﻮﻳﺮ
bg.gifﺑﺎﻳﺪ ﺩﺭ ﻳﻚ ﺩﺍﻳﺮﻛﺘﻮﺭﻱ ﻗﺮﺍﺭ ﮔﻴﺮﻧﺪ .ﺩﺭ ﻣﻘﺎﺑﻞ ﻣﺜﺎﻝ ﺩﻭﻡ ﺍﺯ ﺁﺩﺭﺱ ﺩﻫﻲ ﻣﻄﻠﻖ ) (absoluteﺑﺮﺍﻱ ﺗﻌﻴﻴﻦ ﺁﺩﺭﺱ ﺗﺼﻮﻳﺮ ﺍﺳﺘﻔﺎﺩﻩ ﺷﺪﻩ ﺍﺳﺖ
ﻭ ﻫﻤﺎﻧﻄﻮﺭ ﻛﻪ ﻣﻴﺪﺍﻧﻴﺪ ﺁﺩﺭﺱ ﺗﺼﻮﻳﺮ ﺩﺭ ﻫﺮ ﻧﻘﻄﻪ ﺍﺯ ﻓﻀﺎﻱ ﻭﺏ ﻭ ﺭﻭﻱ ﻫﺮ ﻭﺏ ﺳﺮﻭﺭﻱ ﻣﻴﺘﻮﺍﻧﺪ ﺑﺎﺷﺪ.
ﻧﻜﺎﺕ ﻣﻬﻢ :ﺍﮔﺮ ﺍﺯ ﺗﺼﺎﻭﻳﺮ ﭘﺲ ﺯﻣﻴﻨﻪ ﺩﺭ ﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﻜﻨﻴﺪ ﺑﻪ ﻧﻜﺎﺕ ﺯﻳﺮ ﺗﻮﺟﻪ ﻛﻨﻴﺪ :
ﻫﺮﺗﺼﻮﻳﺮﻱ ﺑﺎ ﻓﺮﻣﺖ png, bmp, gifﻭ ﻳﺎ jpgﻗﺎﺑﻞ ﺍﺳﺘﻔﺎﺩﻩ ﺑﻪ ﻋﻨﻮﺍﻥ ﺗﺼﻮﻳﺮ ﺯﻣﻴﻨﻪ ﻣﻴﺒﺎﺷﺪ. •
ﺗﻮﺻﻴﻪ ﻣﻴﺸﻮﺩ ﺍﺯ ﺗﺼﺎﻭﻳﺮ ﺑﺰﺭﮔﺘﺮ ﺍﺯ ﺩﻩ ﻛﻴﻠﻮﺑﺎﻳﺖ ﺑﻪ ﻋﻨﻮﺍﻥ ﺗﺼﻮﻳﺮ ﭘﺲ ﺯﻣﻴﻨﻪ ﺍﺳﺘﻔﺎﺩﻩ ﻧﻜﻨﻴﺪ ،ﺩﺭ ﻏﻴﺮ ﺍﻳﻦ ﺻﻮﺭﺕ ﺳﺮﻋﺖ loadﺻﻔﺤﻪ ﺑﺸﺪﺕ ﭘﺎﻳﻴﻦ •
ﺧﻮﺍﻫﺪ ﺁﻣﺪ.
ﺍﺯ ﺗﺼﺎﻭﻳﺮ ﺯﻣﻴﻨﻪ ﻫﻤﺎﻫﻨﮓ ﺑﺎ ﺩﻳﮕﺮﺕ ﺻﺎﻭﻳﺮ ﻭ ﻣﺘﻮﻥ ﺻﻔﺤﻪ ﺻﻔﺤﻪ ﺍﺳﺘﻔﺎﺩﻩ ﻛﻨﻴﺪ. •
ﺩﺭ ﺭﺯﻭﻟﻮﺷﻨﻬﺎﻱ ﻣﺨﺘﻠﻒ ﺑﻪ ﺩﻳﺪﻥ ﻭ ﺁﺯﻣﺎﻳﺶ ﺗﺼﺎﻭﻳﺮ ﭘﺲ ﺯﻣﻴﻨﻪ ﺑﭙﺮﺩﺍﺯﻳﺪ. •
ﭘﺮ ﻣﺼﺮﻑ ﺗﺮﻳﻦ ﺭﻧﮕﻬﺎﻱ ﺯﻣﻴﻨﻪ ﻭﺏ ﺳﺎﻳﺘﻬﺎ ،ﺭﻧﮕﻬﺎﻱ ﺳﻔﻴﺪ ،ﺳﻴﺎﻩ ﻭ ﺧﺎﻛﺴﺘﺮﻱ ﻣﻴﺒﺎﺷﻨﺪ. •
ﺍﻏﻠﺐ ﺳﺎﻳﺘﻬﺎﻱ ﻭﺏ ﺍﺯ ﺗﺼﺎﻭﻳﺮ ﭘﺲ ﺯﻣﻴﻨﻪ ﺍﺳﺘﻔﺎﺩﻩ ﻧﻤﻲ ﻛﻨﻨﺪ! ﻣﺜﻼ ﻫﻤﻴﻦ ﺳﺎﻳﺖ!!! •
ﺗﻮﺟﻪ ﺩﺍﺷﺘﻪ ﺑﺎﺷﻴﺪ ﻛﻪ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺷﻨﺎﺳﻪ ﻫﺎﻱ bgcolorﻭ backgroundﻣﺮﺑﻮﻁ ﺑﻪ ﺍﺳﺘﺎﻧﺪﺍﺭﺩ ﻗﺪﻳﻤﻲ ﺍﭼﺘﻤﻞ ﻣﻴﺒﺎﺷﺪ. •
ﺷﻨﺎﺳﻪ ﻫﺎﻱ bgcolorﻭ backgroundﺩﺭ ﺗﮓ > <bodyﺩﺭ ﻧﺴﺨﻪ 4ﺍﭼﺘﻤﻞ ﻭ XHTMLﭘﺸﺘﻴﺒﺎﻧﻲ ﻧﻤﻴﺸﻮﻧﺪ ﻭ ﺩﺭ ﻭﺍﻗﻊ ﺍﺯ ﺭﺩﻩ ﺧﺎﺭﺝ
ﻣﺤﺴﻮﺏ ﻣﻴﺸﻮﻧﺪ .ﺩﺭ ﻋﻮﺽ ﻛﻨﺴﺮﺳﻴﻮﻡ W3Cﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ Style Sheetﻫﺎ ﺭﺍ ﺗﻮﺻﻴﻪ ﻣﻴﻜﻨﺪ ﻭ ﺩﺭ ﻭﺍﻗﻊ ﺩﺭ ﻧﺴﺨﻪ 4ﺍﭼﺘﻤﻞ ﻭ ﺍﺳﺘﺎﻧﺪﺍﺭﺩ ﺟﺪﻳﺪ
XHTMLﺗﻤﺎﻣﻲ ﺍﻃﻼﻋﺎﺕ ﻣﺮﺑﻮﻁ ﺑﻪ ﻧﻤﺎﻳﺶ ﻳﺎ presentationﻭ layoutﺑﺎﻳﺪ ﺩﺭ style sheetﻫﺎ ﻗﺮﺍﺭ ﮔﻴﺮﻧﺪ.
ﺩﺭ ﺍﻳﻦ ﻣﺜﺎﻝ ﭼﮕﻮﻧﮕﻲ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ Style Sheetﻫﺎ ﺑﺮﺍﻱ ﺗﻌﻴﻴﻦ ﺭﻧﮓ ﺯﻣﻴﻨﻪ ﺁﻭﺭﺩﻩ ﺷﺪﻩ ﺍﺳﺖ.
ﻗﻠﻢ ﻫﺎ ) ( HTML Fonts
ﺩﺭ ﺍﻳﻦ ﺩﺭﺱ ﻳﺎﺩ ﺧﻮﺍﻫﻴﺪ ﮔﺮﻓﺖ ﻛﻪ ﭼﮕﻮﻧﻪ ﻧﻮﻉ ﻗﻠﻢ ،ﺍﻧﺪﺍﺯﻩ ﻭ ﺭﻧﮓ ﻧﻮﺷﺘﻪ ﻫﺎ ﺩﺭ ﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﺗﻌﻴﻴﻦ ﻣﻴﺸﻮﻧﺪ.
ﺑﺎ ﻭﺟﻮﺩﻳﻜﻪ ﻫﻨﻮﺯ ﺑﻌﻀﻲ ﺍﺯ ﺍﭼﺘﻤﻞ ﻛﺎﺭﺍﻥ ﺍﺯ ﺗﮓ > <fontﺑﺮﺍﻱ ﺗﻌﻴﻴﻦ ﻧﺎﻡ ﻭ ﻧﻮﻉ ﻗﻠﻢ ،ﺭﻧﮓ ﻭ ﺍﻧﺪﺍﺯﻩ ﻣﺘﻮﻥ ﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﻜﻨﻨﺪ ﻭﻟﻲ ﺩﺭ ﺍﺳﺘﺎﻧﺪﺍﺭﺩ ﺟﺪﻳﺪ
ﺍﭼﺘﻤﻞ )ﻧﺴﺨﻪ (4ﻭ ﻫﻤﭽﻨﻴﻦ XHTMLﺍﺯ ﺗﮓ > <fontﭘﺸﺘﻴﺒﺎﻧﻲ ﻧﻤﻴﺸﻮﺩ ﻭ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ Style Sheetﻫﺎ ﺑﻪ ﻋﻨﻮﺍﻥ ﺟﺎﻳﮕﺰﻳﻦ ﻣﻌﺮﻓﻲ ﺷﺪﻩ
ﺍﺳﺖ.
ﺗﮓ ><font
ﺩﺭ ﻧﺴﺨﻪ ﻫﺎﻱ 3.2ﻭ ﻗﺒﻠﻲ ﺗﺮ ﺯﺑﺎﻥ ﺍﭼﺘﻤﻞ ﺍﺯ ﺗﮓ > <fontﺑﺮﺍﻱ ﺗﻌﻴﻴﻦ ﻧﺎﻡ ﻗﻠﻢ ،ﺭﻧﮓ ﻭ ﺍﻧﺪﺍﺯﻩ ﻣﺘﻮﻥ ﺍﺳﺘﻔﺎﺩﻩ ﻣﻴﺸﻮﺩ .ﺩﺭ ﺍﻳﻦ ﺗﮓ ﺷﻨﺎﺳﻪ face
ﻧﺎﻡ ﻗﻠﻢ ،ﺷﻨﺎﺳﻪ sizeﺍﻧﺪﺍﺭﻩ ﻗﻠﻢ ﻭ ﺷﻨﺎﺳﻪ colorﻣﻌﺮﻑ ﺭﻧﮓ ﻣﺘﻦ ﺧﻮﺍﻫﺪ ﺑﻮﺩ .ﻣﺜﺎﻟﻬﺎﻱ ﺯﻳﺮ ﻛﺎﺭﺑﺮﺩ ﺗﮓ > <fontﺧﺪﺍﺑﻴﺎﻣﺮﺯ ﺭﺍ ﻧﺸﺎﻥ ﻣﻴﺪﻫﻨﺪ:
*** ﺑﻴﺎﻥ ﻣﺨﺘﺼﺮ ﻋﻤﻠﻜﺮﺩ ﺗﮓ > <fontﺩﺭ ﺍﻳﻦ ﺩﺭﻭﺱ ﻓﻘﻂ ﺟﻬﺖ ﺍﻃﻼﻉ ﺑﻮﺩﻩ ﻭ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺁﻧﻬﺎ ﺩﺭ ﻃﺮﺍﺣﻲ ﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﺗﻮﺻﻴﻪ ﻧﻤﻴﺸﻮﺩ.
ﺗﮓ > <fontﺍﺯ ﺭﺩﻩ ﺧﺎﺭﺝ ﻣﺤﺴﻮﺏ ﻣﻴﺸﻮﺩ ﻭ ﻛﻨﺴﺮﺳﻴﻮﻡ ﺟﻬﺎﻧﻲ ﺗﻌﻴﻴﻦ ﺍﺳﺘﺎﻧﺪﺍﺭﺩﻫﺎﻱ ﻭﺏ ) World Wide Web Consortium,
(W3Cﺍﻳﻦ ﺗﮓ ﺭﺍ ﺍﺯ ﻣﺠﻤﻮﻋﻪ ﺗﮕﻬﺎﻱ ﺍﺳﺘﺎﻧﺪﺍﺭﺩ ﺍﭼﺘﻤﻞ ﻛﻨﺎﺭ ﮔﺬﺍﺷﺘﻪ ﺍﺳﺖ ﻭ ﺍﻛﻴﺪﺍ ﺗﻮﺻﻴﻪ ﻣﻴﺸﻮﺩ ﻛﻪ ﺍﺯ Style Sheetﻫﺎ ﺑﺮﺍﻱ ﺗﻌﺮﻳﻒ ﻫﺮ ﮔﻮﻧﻪ
ﺧﻮﺍﺹ ﻧﻤﺎﻳﺸﻲ ﻭ ﺁﺭﺍﻳﺸﻲ ) (Presentation & layoutﺍﻟﻤﺎﻧﻬﺎ ﺩﺭ ﺍﭼﺘﻤﻞ ﺍﺳﺘﻔﺎﺩﻩ ﺷﻮﺩ.
ﺭﻭﺵ ﺻﺤﻴﺢ ﺗﻌﻴﻴﻦ ﻧﺎﻡ ﻗﻠﻢ ،ﺍﻧﺪﺍﺯﻩ ﻭ ﺭﻧﮓ ﻣﺘﻮﻥ ﺑﺎ ﻛﻤﻚ Style Sheetﻫﺎ:
ﻫﺮ ﭼﻨﺪ ﻛﻪ ﺳﺎﻟﻬﺎ ﺍﺳﺖ ﻛﻪ ﻣﺒﺤﺚ ﻭ ﻛﻼﺳﻬﺎﻱ ﺩﺭﺱ Style Sheetﻫﺎ ﺩﺭ "ﻣﺪﺭﺳﻪ ﻭﺏ" ﺩﺭ ﺩﺳﺖ ﺗﻬﻴﻪ ﺑﻮﺩﻩ ﻭ ﺍﻣﻴﺪﻭﺍﺭﻳﻢ ﻛﻪ ﺑﺰﻭﺩﻱ ﺍﺭﺍﺋﻪ ﺷﻮﻧﺪ!
ﻭﻟﻲ ﺗﺎ ﻗﺒﻞ ﺍﺯ ﺁﻥ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺷﻨﺎﺳﻪ ﺍﻱ ﺑﻪ ﻧﺎﻡ styleﺩﺭ ﺑﺴﻴﺎﺭﻱ ﺍﺯ ﺍﻟﻤﺎﻧﻬﺎ ﻛﺎﺭ ﮔﺸﺎ ﺧﻮﺍﻫﺪ ﺑﻮﺩ .ﻣﺜﺎﻟﻬﺎﻱ ﺳﺎﺩﻩ ﺯﻳﺮ ﻧﺤﻮﻩ ﺗﻌﻴﻴﻦ ﻧﺎﻡ ﻗﻠﻢ ،ﺍﻧﺪﺍﺯﻩ ﻭ
ﺭﻧﮓ ﻣﺘﻮﻥ ﺭﺍ ﺑﺎ ﻛﻤﻚ ﺷﻨﺎﺳﻪ styleﺑﻪ ﻧﻤﺎﻳﺶ ﺧﻮﺍﻫﻨﺪ ﮔﺬﺍﺷﺖ:
ﺗﮓ ><span
ﺗﮓ > <spanﺳﺒﺐ ﺗﻌﺮﻳﻒ ﻣﺤﺪﻭﺩﻩ ﻭ ﮔﺴﺘﺮﻩ ﺍﻱ ﻣﺸﺨﺺ ﻣﻴﺸﻮﺩ .ﺗﻤﺎﻣﻲ ﺍﻟﻤﺎﻥ ﻫﺎﺋﻲ ﻛﻪ ﺩﺭﻭﻥ ﺗﮕﻬﺎﻱ > <spanﻭ > </spanﻗﺮﺍﺭ ﺧﻮﺍﻫﻨﺪ
.(dir)( ﻭ ﻳﺎ ﺳﻤﺖ ﻭ ﺟﻬﺖ ﻧﻤﺎﻳﺶ ﻣﺘﻮﻥStyle) ﺧﻮﺍﺻﻲ ﺍﺯ ﻗﺒﻴﻞ ﺍﺳﺘﻴﻞ،ﮔﺮﻓﺖ ﺧﻮﺍﺹ ﺁﻧﺮﺍ ﺑﻪ ﺍﺭﺙ ﺧﻮﺍﻫﻨﺪ ﺑﺮﺩ
.< ﺍﺿﺎﻓﻪ ﻧﻤﻲ ﻛﻨﻨﺪspan> < ﻣﺮﻭﺭﮔﺮﻫﺎ ﻫﻴﭻ ﺳﻄﺮ ﺟﺪﻳﺪﻱ ﺑﻪ ﺍﻭﻝ ﻳﺎ ﺁﺧﺮ ﺍﻟﻤﺎﻥdiv> < ﻭp> ﺑﺮ ﺧﻼﻑ ﺗﮓ ﻫﺎﻱ
:ﻣﺜﺎﻝ
ﻛﺪ ﺍﭼﺘﻤﻞ ﻧﻤﺎﻳﺶ ﻛﺪ ﺭﻭﺑﺮﻭ ﺗﻮﺳﻂ ﻣﺮﻭﺭﮔﺮ
<p>Some text <span style="color:#0000AF;">another text</span> Some text another text
again text...</p> again text...
id, class, title, style, dir, lang span ﺷﻨﺎﺳﻪ ﻫﺎﻱ ﺍﺳﺘﺎﻧﺪﺍﺭﺩ ﺍﻟﻤﺎﻥ
: ﻫﺎStyle sheet ﻭspan ﻣﺜﺎﻟﻬﺎﺋﻲ ﺍﺯ ﻧﺤﻮﻩ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺍﻟﻤﺎﻥ
ﺭﻭﺵ ﻗﺪﻳﻤﻲ ﺭﻭﺵ ﺻﺤﻴﺢ
<font color="#FF00FF">Hello!</font> <span style="color:#FF00FF">Hello!</span>
<font
<span style="color:rgb(255,0,255)">Hello!</span>
color="rgb(255,0,255)">Hello!</font>
<font style="color:Fuchsia">Hello!</font> <span style="color:Fuchsia">Hello!</span>
<font color="#FF00FF" <span style="color:#FF00FF;font-
size="3">Hello!</font> size:100%">Hello!</span>
<div> ﺗﮓ
< ﻗﺮﺍﺭ ﺧﻮﺍﻫﻨﺪ ﮔﺮﻓﺖ/div> < ﻭdiv> ﺗﻤﺎﻣﻲ ﺍﻟﻤﺎﻥ ﻫﺎﺋﻲ ﻛﻪ ﺩﺭﻭﻥ ﺗﮕﻬﺎﻱ.< ﺳﺒﺐ ﺗﻌﺮﻳﻒ ﻣﺤﺪﻭﺩﻩ ﻭ ﮔﺴﺘﺮﻩ ﺍﻱ ﻣﺸﺨﺺ ﻣﻴﺸﻮﺩdiv> ﺗﮓ
.(dir)( ﻭ ﻳﺎ ﺳﻤﺖ ﻭ ﺟﻬﺖ ﻧﻤﺎﻳﺶ ﻣﺘﻮﻥStyle) ﺧﻮﺍﺻﻲ ﺍﺯ ﻗﺒﻴﻞ ﺍﺳﺘﻴﻞ،ﺧﻮﺍﺹ ﺁﻧﺮﺍ ﺑﻪ ﺍﺭﺙ ﺧﻮﺍﻫﻨﺪ ﺑﺮﺩ
.< ﺍﺿﺎﻓﻪ ﻣﻲ ﻛﻨﻨﺪdiv> < ﻣﺮﻭﺭﮔﺮﻫﺎ ﻳﻚ ﺳﻄﺮ ﺟﺪﻳﺪ ﺑﻪ ﺍﻭﻝ ﻭ ﺁﺧﺮ ﺍﻟﻤﺎﻥspan> ﺑﺮ ﺧﻼﻑ ﺗﮓ
:ﻣﺜﺎﻝ
ﻧﻤﺎﻳﺶ ﻛﺪ ﺭﻭﺑﺮﻭ ﺗﻮﺳﻂ
ﻛﺪ ﺍﭼﺘﻤﻞ
ﻣﺮﻭﺭﮔﺮ
Some text
<p>Some text <div style="color:#0000AF;">another text</div> again
text...</p> another text
again text...
id, class, title, style, dir, lang div ﺷﻨﺎﺳﻪ ﻫﺎﻱ ﺍﺳﺘﺎﻧﺪﺍﺭﺩ ﺍﻟﻤﺎﻥ
44 Teaching by : H.shoja
www.hshoja.ir
Learn HTML and CSS with w3schools 2012
ﻣﺜﺎﻟﻬﺎ
ﺍﺳﺘﻴﻠﻬﺎ ﺩﺭ ﺍﭼﺘﻤﻞ
ﺩﺭ ﺍﻳﻦ ﻣﺜﺎﻝ ﻧﺤﻮﻩ ﺗﻌﺮﻳﻒ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﺩﺭﻭﻥ ﺑﺨﺶ > <headﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﺷﺮﺡ ﺩﺍﺩﻩ ﺷﺪﻩ ﺍﺳﺖ(Internal Style Sheet) .
ﻣﺮﻭﺭﮔﺮﻫﺎ ﺍﺯ ﺭﻭﻱ ﺍﺳﺘﻴﻠﻬﺎﻱ ﺗﻌﺮﻳﻒ ﺷﺪﻩ ﺗﻮﺳﻂ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﺑﻪ ﻓﺮﻣﺖ ﺩﻫﻲ ﻭ ﻧﻤﺎﻳﺶ ﺍﻃﻼﻋﺎﺕ ﺩﺭﻭﻥ ﺻﻔﺤﻪ ﺍﭼﺘﻤﻞ ﻣﻴﭙﺮﺩﺍﺯﻧﺪ .ﺗﻌﺮﻳﻒ ﻭ ﺍﺳﺘﻔﺎﺩﻩ
ﺍﺯ ﺍﺳﺘﺎﻳﻞ ﻫﺎ ﺩﺭ ﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﺑﻪ ﺳﻪ ﺭﻭﺵ ﻣﺨﺘﻠﻒ ﻣﻤﻜﻦ ﻣﻴﺒﺎﺷﺪ:
ﺩﺭ ﺍﻳﻦ ﺭﻭﺵ ﺗﻤﺎﻣﻲ ﺍﺳﺘﻴﻠﻬﺎ ﻭ ﺗﻌﺎﺭﻳﻒ ﻧﻤﺎﻳﺸﻲ ﺩﺭﻭﻥ ﻓﺎﻳﻠﻲ ﺟﺪﺍﮔﺎﻧﻪ ﻗﺮﺍﺭ ﮔﺮﻓﺘﻪ ﻭ ﺑﺴﻴﺎﺭ ﻣﻨﺎﺳﺐ ﺣﺎﻟﺘﻬﺎﺋﻲ ﺍﺳﺖ ﻛﻪ ﻗﺮﺍﺭ ﺍﺳﺖ ﻛﻪ ﺍﺳﺘﺎﻳﻠﻲ ﺑﻪ ﺑﻴﺶ ﺍﺯ
ﻳﻚ ﺻﻔﺤﻪ ﺍﭼﺘﻤﻞ ﺍﻋﻤﺎﻝ ﺷﻮﺩ .ﻣﺰﻳﺖ ﺍﻳﻦ ﺭﻭﺵ ﺳﻬﻮﻟﺖ ﺩﺭ ﺗﻐﻴﻴﺮ ﻇﺎﻫﺮ ﺻﻔﺤﺎﺕ ﻳﻚ ﻭﺏ ﺳﺎﻳﺖ ﻣﻴﺒﺎﺷﺪ ﻭ ﺑﺮﺍﻱ ﻳﻚ ﺗﻐﻴﻴﺮ ﻛﻠﻲ ﺩﺭ ﺳﺎﻳﺖ ﻛﺎﻓﻲ
ﺍﺳﺖ ﻛﻪ ﻓﺎﻳﻞ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺖ ﻛﻞ ﺳﺎﻳﺖ ﻛﻪ ﻣﻌﻤﻮﻻ ﻳﻚ ﻓﺎﻳﻞ ﻭﺍﺣﺪ ﺍﺳﺖ ﺗﻐﻴﻴﺮ ﺩﺍﺩﻩ ﺷﻮﺩ) .ﺑﺎﻳﺪ ﺗﻮﺟﻪ ﺩﺍﺷﺖ ﻛﻪ ﺩﺭ ﺍﻳﻦ ﺣﺎﻟﺖ ﺗﻤﺎﻣﻲ ﺻﻔﺤﺎﺕ ﺳﺎﻳﺖ
ﺑﺎﻳﺪ ﺑﻪ ﻳﻚ ﻓﺎﻳﻞ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺖ ﻭﺍﺣﺪ ﻟﻴﻨﻚ ﺷﺪﻩ ﺑﺎﺷﻨﺪ (.ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎﻱ ﺧﺎﺭﺟﻲ ﺗﻮﺳﻂ ﺗﮓ > <linkﻛﻪ ﺩﺭﻭﻥ ﺑﺨﺶ headﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ
ﻗﺮﺍﺭ ﻣﻴﮕﻴﺮﺩ ،ﻣﻌﺮﻓﻲ ﻣﻴﺸﻮﻧﺪ.
ﺩﺭ ﻣﺜﺎﻝ ﺯﻳﺮ ﺑﺎ ﻛﻤﻚ ﺷﻨﺎﺳﻪ hrefﺍﺯ ﺗﮓ linkﻧﺎﻡ ﻭ ﺩﺭ ﺣﺎﻟﺖ ﻛﻠﻲ urlﻓﺎﻳﻞ ﺩﺭ ﺑﺮﮔﻴﺮﻧﺪﻩ ﺍﺳﺘﺎﻳﻠﻬﺎﻱ ﺗﻌﺮﻳﻒ ﺷﺪﻩ ﺗﻌﻴﻴﻦ ﻣﻴﮕﺮﺩﺩ:
><head
>"<link rel="stylesheet" type="text/css" href="mystyle.css
></head
ﻛﺎﺭﺑﺮﺩ ﺍﻳﻦ ﺭﻭﺵ ﺩﺭ ﺣﺎﻟﺘﻬﺎﺋﻲ ﺍﺳﺖ ﻛﻪ ﺻﻔﺤﻪ ﺍﭼﺘﻤﻞ ﻧﻴﺎﺯﻣﻨﺪ ﺗﻌﺮﻳﻒ ﺍﺳﺘﺎﻳﻠﻲ ﻣﻨﺤﺼﺮ ﺑﻪ ﻓﺮﺩ ﻭ ﻣﺠﺰﺍ ﺑﻮﺩﻩ ﻭ ﺍﺳﺘﺎﻳﻞ ﻃﺮﺍﺣﻲ ﺷﺪﻩ ﻓﻘﻂ ﺑﺪﺭﺩ ﺁﻥ
ﺻﻔﺤﻪ ﺧﻮﺍﻫﺪ ﺧﻮﺭﺩ .ﺩﺭ ﺍﻳﻦ ﺣﺎﻟﺖ ﺑﺎﻳﺪ ﻛﺪﻫﺎﻱ ﺣﺎﻭﻱ ﺗﻌﺮﻳﻒ ﺍﺳﺘﺎﻳﻞ ﺩﺭﻭﻥ ﺗﮓ ﻫﺎﻱ > <styleﻭ > </styleﻗﺮﺍﺭ ﮔﺮﻓﺘﻪ ﻭ ﻣﻌﻤﻮﻻ ﻧﺘﻴﺠﻪ ﺩﺭﻭﻥ
ﺑﺨﺶ headﺻﻔﺤﻪ ﺍﭼﺘﻤﻞ ﮔﺬﺍﺷﺘﻪ ﻣﻴﺸﻮﺩ .ﻣﺜﺎﻝ:
><head
>"<style type="text/css
}body {background-color: red
}p {margin-left: 20px
></style
></head
ﻛﺎﺭﺑﺮﺩ ﺍﻳﻦ ﺭﻭﺵ ﺩﺭ ﻣﻮﺍﺭﺩﻱ ﺍﺳﺖ ﻛﻪ ﺑﺎﻳﺪ ﺑﺮﺍﻱ ﻳﻚ ﺍﻟﻤﺎﻥ )ﻳﺎ ﮔﺮﻭﻫﻲ( ﺧﺎﺹ ﺍﺳﺘﺎﻳﻠﻲ ﺍﻋﻤﺎﻝ ﺷﻮﺩ .ﺩﺭ ﺍﻳﻦ ﺣﺎﻟﺖ ﺑﺎﻳﺪ ﺍﺯ ﺷﻨﺎﺳﻪ ﺍﻱ ﺑﻪ ﻧﺎﻡ style
ﻛﻪ ﺗﻘﺮﻳﺒﺎ ﺩﺭ ﺗﻤﺎﻣﻲ ﺗﮕﻬﺎ ﻗﺎﺑﻞ ﺍﻋﻤﺎﻝ ﺍﺳﺖ ﺍﺳﺘﻔﺎﺩﻩ ﺷﻮﺩ .ﻣﺜﺎﻝ:
>"<p style="color: red; margin-left: 20px
This is a paragraph
></p
><link
Defines the relationship between two linked ﺗﻌﻴﻴﻦ ﻭ ﺗﻌﺮﻳﻒ ﻓﺎﻳﻞ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺖ ﺧﺎﺭﺟﻲ
documents
ﻛﻨﺎﺭ ﮔﺬﺍﺷﺘﻪ ﺷﺪﻩ.ﺍﺯ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﺍﺳﺘﻔﺎﺩﻩ
><font Deprecated. Use styles instead
ﺷﻮﺩ.
ﻛﻨﺎﺭ ﮔﺬﺍﺷﺘﻪ ﺷﺪﻩ.ﺍﺯ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﺍﺳﺘﻔﺎﺩﻩ
<basefont>Deprecated. Use styles instead
ﺷﻮﺩ.
ﻛﻨﺎﺭ ﮔﺬﺍﺷﺘﻪ ﺷﺪﻩ.ﺍﺯ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﺍﺳﺘﻔﺎﺩﻩ
<center> Deprecated. Use styles instead
ﺷﻮﺩ.
ﻛﺪ ﻣﻌﺎﺩﻝ ﻣﺜﺎﻝ ﻓﻮﻕ ﺑﺎ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﺩﺭ ﺍﻳﻦ ﻣﺜﺎﻝ ﺷﺮﺡ ﺩﺍﺩﻩ ﺷﺪﻩ ﺍﺳﺖ).ﻫﺮ ﭼﻨﺪ ﻛﻪ ﺍﻳﻦ ﻣﺜﺎﻝ ﺍﺯ ﺗﻤﺎﻣﻲ ﺍﻣﻜﺎﻧﺎﺕ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﻭ ﺍﻳﺠﺎﺩ
ﻓﺎﻳﻠﻲ ﻛﺎﻣﻼ ﻣﺴﺘﻘﻞ ﺑﺮﺍﻱ ﺗﻌﺮﻳﻒ ﺍﺳﺘﺎﻳﻞ ﺍﺳﺘﻔﺎﺩﻩ ﻧﻜﺮﺩﻩ ﺍﺳﺖ(.
ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ) ( Style Sheets
ﺩﺭ ﻧﺴﺨﻪ ﺟﺪﻳﺪ) (4/0ﺍﭼﺘﻤﻞ ﺍﻣﻜﺎﻥ ﺟﺪﺍﺳﺎﺯﻱ ﻛﺎﻣﻞ ﻓﺮﻣﺖ ﺩﻫﻲ ﺍﺯ ﺳﺎﺧﺘﺎﺭ ﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﻓﺮﺍﻫﻢ ﺷﺪﻩ ﺍﺳﺖ .ﺩﺭ ﺍﻳﻦ ﻧﺴﺨﻪ ﺗﻮﺻﻴﻪ ﻣﻴﺸﻮﺩ ﻛﻪ
ﺗﻤﺎﻣﻲ ﺍﻃﻼﻋﺎﺕ ﻣﺮﺑﻮﻁ ﺑﻪ ﻧﻤﺎﻳﺶ ﻭ ﺗﺮﺍﺯﺑﻨﺪﻱ ﺑﻪ ﻓﺎﻳﻠﻬﺎﺋﻲ ﻣﺠﺰﺍ ﺍﺯ ﺻﻔﺤﻪ ﺍﭼﺘﻤﻞ ﻣﻨﺘﻘﻞ ﺷﻮﻧﺪ .ﺑﺨﺸﻲ ﺍﺯ ﺻﻘﺤﺎﺕ ﺍﭼﺘﻤﻞ ﻛﻪ ﻣﺮﺑﻮﻁ ﺑﻪ ﻧﻤﺎﻳﺶ،
ﺗﺮﺍﺯﺑﻨﺪﻱ ﻭ ﻓﺮﻣﺖ ﺩﻫﻲ ﺍﺳﺖ ،ﺍﺳﺘﺎﻳﻞ ﺷﻴﺖ ﻳﺎ " "Style Sheetﻧﺎﻣﻴﺪ ﺷﺪﻩ ﻭ ﻣﻌﻤﻮﻻ ﺑﻪ ﺻﻮﺭﺕ ﻓﺎﻳﻠﻲ ﻣﺠﺰﺍ ﺩﺭﻭﻥ ﺑﺨﺶ > <headﺻﻔﺤﺎﺕ
ﺍﭼﺘﻤﻞ ﻣﻌﺮﻓﻲ ﻣﻴﮕﺮﺩﻧﺪ .ﺩﺭ ﺍﻳﻦ ﺩﺭﺱ ﺑﻪ ﺻﻮﺭﺕ ﺑﺴﻴﺎﺭ ﺧﻼﺻﻪ ﺑﺎ ﺭﻭﺷﻬﺎﻱ ﻣﺨﺘﻠﻒ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﺩﺭ ﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﺁﺷﻨﺎ ﺧﻮﺍﻫﻴﺪ ﺷﺪ.
ﻣﺜﺎﻟﻬﺎ
ﺍﺳﺘﻴﻠﻬﺎ ﺩﺭ ﺍﭼﺘﻤﻞ
ﺩﺭ ﺍﻳﻦ ﻣﺜﺎﻝ ﻧﺤﻮﻩ ﺗﻌﺮﻳﻒ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﺩﺭﻭﻥ ﺑﺨﺶ > <headﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﺷﺮﺡ ﺩﺍﺩﻩ ﺷﺪﻩ ﺍﺳﺖ(Internal Style Sheet) .
ﻣﺮﻭﺭﮔﺮﻫﺎ ﺍﺯ ﺭﻭﻱ ﺍﺳﺘﻴﻠﻬﺎﻱ ﺗﻌﺮﻳﻒ ﺷﺪﻩ ﺗﻮﺳﻂ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﺑﻪ ﻓﺮﻣﺖ ﺩﻫﻲ ﻭ ﻧﻤﺎﻳﺶ ﺍﻃﻼﻋﺎﺕ ﺩﺭﻭﻥ ﺻﻔﺤﻪ ﺍﭼﺘﻤﻞ ﻣﻴﭙﺮﺩﺍﺯﻧﺪ .ﺗﻌﺮﻳﻒ ﻭ ﺍﺳﺘﻔﺎﺩﻩ
ﺍﺯ ﺍﺳﺘﺎﻳﻞ ﻫﺎ ﺩﺭ ﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ ﺑﻪ ﺳﻪ ﺭﻭﺵ ﻣﺨﺘﻠﻒ ﻣﻤﻜﻦ ﻣﻴﺒﺎﺷﺪ:
ﺩﺭ ﺍﻳﻦ ﺭﻭﺵ ﺗﻤﺎﻣﻲ ﺍﺳﺘﻴﻠﻬﺎ ﻭ ﺗﻌﺎﺭﻳﻒ ﻧﻤﺎﻳﺸﻲ ﺩﺭﻭﻥ ﻓﺎﻳﻠﻲ ﺟﺪﺍﮔﺎﻧﻪ ﻗﺮﺍﺭ ﮔﺮﻓﺘﻪ ﻭ ﺑﺴﻴﺎﺭ ﻣﻨﺎﺳﺐ ﺣﺎﻟﺘﻬﺎﺋﻲ ﺍﺳﺖ ﻛﻪ ﻗﺮﺍﺭ ﺍﺳﺖ ﻛﻪ ﺍﺳﺘﺎﻳﻠﻲ ﺑﻪ ﺑﻴﺶ ﺍﺯ
ﻳﻚ ﺻﻔﺤﻪ ﺍﭼﺘﻤﻞ ﺍﻋﻤﺎﻝ ﺷﻮﺩ .ﻣﺰﻳﺖ ﺍﻳﻦ ﺭﻭﺵ ﺳﻬﻮﻟﺖ ﺩﺭ ﺗﻐﻴﻴﺮ ﻇﺎﻫﺮ ﺻﻔﺤﺎﺕ ﻳﻚ ﻭﺏ ﺳﺎﻳﺖ ﻣﻴﺒﺎﺷﺪ ﻭ ﺑﺮﺍﻱ ﻳﻚ ﺗﻐﻴﻴﺮ ﻛﻠﻲ ﺩﺭ ﺳﺎﻳﺖ ﻛﺎﻓﻲ
ﺍﺳﺖ ﻛﻪ ﻓﺎﻳﻞ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺖ ﻛﻞ ﺳﺎﻳﺖ ﻛﻪ ﻣﻌﻤﻮﻻ ﻳﻚ ﻓﺎﻳﻞ ﻭﺍﺣﺪ ﺍﺳﺖ ﺗﻐﻴﻴﺮ ﺩﺍﺩﻩ ﺷﻮﺩ) .ﺑﺎﻳﺪ ﺗﻮﺟﻪ ﺩﺍﺷﺖ ﻛﻪ ﺩﺭ ﺍﻳﻦ ﺣﺎﻟﺖ ﺗﻤﺎﻣﻲ ﺻﻔﺤﺎﺕ ﺳﺎﻳﺖ
ﺑﺎﻳﺪ ﺑﻪ ﻳﻚ ﻓﺎﻳﻞ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺖ ﻭﺍﺣﺪ ﻟﻴﻨﻚ ﺷﺪﻩ ﺑﺎﺷﻨﺪ (.ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎﻱ ﺧﺎﺭﺟﻲ ﺗﻮﺳﻂ ﺗﮓ > <linkﻛﻪ ﺩﺭﻭﻥ ﺑﺨﺶ headﺻﻔﺤﺎﺕ ﺍﭼﺘﻤﻞ
ﻗﺮﺍﺭ ﻣﻴﮕﻴﺮﺩ ،ﻣﻌﺮﻓﻲ ﻣﻴﺸﻮﻧﺪ.
ﺩﺭ ﻣﺜﺎﻝ ﺯﻳﺮ ﺑﺎ ﻛﻤﻚ ﺷﻨﺎﺳﻪ hrefﺍﺯ ﺗﮓ linkﻧﺎﻡ ﻭ ﺩﺭ ﺣﺎﻟﺖ ﻛﻠﻲ urlﻓﺎﻳﻞ ﺩﺭ ﺑﺮﮔﻴﺮﻧﺪﻩ ﺍﺳﺘﺎﻳﻠﻬﺎﻱ ﺗﻌﺮﻳﻒ ﺷﺪﻩ ﺗﻌﻴﻴﻦ ﻣﻴﮕﺮﺩﺩ:
><head
>"<link rel="stylesheet" type="text/css" href="mystyle.css
></head
ﻛﺎﺭﺑﺮﺩ ﺍﻳﻦ ﺭﻭﺵ ﺩﺭ ﺣﺎﻟﺘﻬﺎﺋﻲ ﺍﺳﺖ ﻛﻪ ﺻﻔﺤﻪ ﺍﭼﺘﻤﻞ ﻧﻴﺎﺯﻣﻨﺪ ﺗﻌﺮﻳﻒ ﺍﺳﺘﺎﻳﻠﻲ ﻣﻨﺤﺼﺮ ﺑﻪ ﻓﺮﺩ ﻭ ﻣﺠﺰﺍ ﺑﻮﺩﻩ ﻭ ﺍﺳﺘﺎﻳﻞ ﻃﺮﺍﺣﻲ ﺷﺪﻩ ﻓﻘﻂ ﺑﺪﺭﺩ ﺁﻥ
ﺻﻔﺤﻪ ﺧﻮﺍﻫﺪ ﺧﻮﺭﺩ .ﺩﺭ ﺍﻳﻦ ﺣﺎﻟﺖ ﺑﺎﻳﺪ ﻛﺪﻫﺎﻱ ﺣﺎﻭﻱ ﺗﻌﺮﻳﻒ ﺍﺳﺘﺎﻳﻞ ﺩﺭﻭﻥ ﺗﮓ ﻫﺎﻱ > <styleﻭ > </styleﻗﺮﺍﺭ ﮔﺮﻓﺘﻪ ﻭ ﻣﻌﻤﻮﻻ ﻧﺘﻴﺠﻪ ﺩﺭﻭﻥ
ﺑﺨﺶ headﺻﻔﺤﻪ ﺍﭼﺘﻤﻞ ﮔﺬﺍﺷﺘﻪ ﻣﻴﺸﻮﺩ .ﻣﺜﺎﻝ:
><head
>"<style type="text/css
}body {background-color: red
}p {margin-left: 20px
></style
></head
ﻛﺎﺭﺑﺮﺩ ﺍﻳﻦ ﺭﻭﺵ ﺩﺭ ﻣﻮﺍﺭﺩﻱ ﺍﺳﺖ ﻛﻪ ﺑﺎﻳﺪ ﺑﺮﺍﻱ ﻳﻚ ﺍﻟﻤﺎﻥ )ﻳﺎ ﮔﺮﻭﻫﻲ( ﺧﺎﺹ ﺍﺳﺘﺎﻳﻠﻲ ﺍﻋﻤﺎﻝ ﺷﻮﺩ .ﺩﺭ ﺍﻳﻦ ﺣﺎﻟﺖ ﺑﺎﻳﺪ ﺍﺯ ﺷﻨﺎﺳﻪ ﺍﻱ ﺑﻪ ﻧﺎﻡ style
ﻛﻪ ﺗﻘﺮﻳﺒﺎ ﺩﺭ ﺗﻤﺎﻣﻲ ﺗﮕﻬﺎ ﻗﺎﺑﻞ ﺍﻋﻤﺎﻝ ﺍﺳﺖ ﺍﺳﺘﻔﺎﺩﻩ ﺷﻮﺩ .ﻣﺜﺎﻝ:
>"<p style="color: red; margin-left: 20px
This is a paragraph
></p
><link
Defines the relationship between two linked ﺗﻌﻴﻴﻦ ﻭ ﺗﻌﺮﻳﻒ ﻓﺎﻳﻞ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺖ ﺧﺎﺭﺟﻲ
documents
ﻛﻨﺎﺭ ﮔﺬﺍﺷﺘﻪ ﺷﺪﻩ.ﺍﺯ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﺍﺳﺘﻔﺎﺩﻩ
><font Deprecated. Use styles instead
ﺷﻮﺩ.
ﻛﻨﺎﺭ ﮔﺬﺍﺷﺘﻪ ﺷﺪﻩ.ﺍﺯ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﺍﺳﺘﻔﺎﺩﻩ
<basefont>Deprecated. Use styles instead
ﺷﻮﺩ.
ﻛﻨﺎﺭ ﮔﺬﺍﺷﺘﻪ ﺷﺪﻩ.ﺍﺯ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﺍﺳﺘﻔﺎﺩﻩ
<center> Deprecated. Use styles instead
ﺷﻮﺩ.
ﻛﺪ ﻣﻌﺎﺩﻝ ﻣﺜﺎﻝ ﻓﻮﻕ ﺑﺎ ﺍﺳﺘﻔﺎﺩﻩ ﺍﺯ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﺩﺭ ﺍﻳﻦ ﻣﺜﺎﻝ ﺷﺮﺡ ﺩﺍﺩﻩ ﺷﺪﻩ ﺍﺳﺖ).ﻫﺮ ﭼﻨﺪ ﻛﻪ ﺍﻳﻦ ﻣﺜﺎﻝ ﺍﺯ ﺗﻤﺎﻣﻲ ﺍﻣﻜﺎﻧﺎﺕ ﺍﺳﺘﺎﻳﻞ ﺷﻴﺘﻬﺎ ﻭ ﺍﻳﺠﺎﺩ
ﻓﺎﻳﻠﻲ ﻛﺎﻣﻼ ﻣﺴﺘﻘﻞ ﺑﺮﺍﻱ ﺗﻌﺮﻳﻒ ﺍﺳﺘﺎﻳﻞ ﺍﺳﺘﻔﺎﺩﻩ ﻧﻜﺮﺩﻩ ﺍﺳﺖ(.
ﻣﺮﺍﺟﻊ ﻭ ﺭﻓﺮﻧﺴﻬﺎ