Babban matsalar da ke da alaฦa da favicon don shafukan HTML shine cewa yana iya yin wahalar aiwatarwa. Favicons ฦananan gumaka ne waษanda ke bayyana a cikin mashigin bincike ko adireshin adireshin gidan yanar gizon, kuma galibi ana amfani da su don gano gidan yanar gizo ko alama. Don ฦara favicon zuwa shafin HTML, gunkin dole ne a adana shi azaman fayil ษin .ico sannan a haษa shi cikin lambar HTML ta amfani da Tag. Wannan na iya zama da wahala ga waษanda ba su saba da coding ba, saboda akwai matakai da yawa da ke tattare da hakan kuma yana buฦatar ilimin haษin gwiwar HTML. Bugu da ฦari, wasu masu bincike ba za su iya gane favicon ษin ba idan ba a aiwatar da shi da kyau ba.
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
1. Wannan layin code yana haifar da hanyar haษi zuwa fayil na waje da ake kira "favicon.ico".
2. Ana ba da hanyar haษin yanar gizon sifa "rel" tare da darajar "Gunjerun gunkin", wanda ke nuna cewa wannan gunkin gajeriyar hanya ce ta gidan yanar gizon.
3. Halin href yana ba da hanya zuwa fayil ษin favicon, wanda a cikin wannan yanayin shine kawai "favicon.ico".
4. Nau'in sifa yana nuna cewa wannan fayil ษin hoton nau'in x-icon ne, wanda shine nau'in hoto na musamman da ake amfani da shi don gumaka da tambarin gidan yanar gizo.
Menene favicon
Favicon ฦaramin gunki ne mai alaฦa da gidan yanar gizo ko shafin yanar gizo. Yawanci ana nuna shi a mashigin adireshi na mashigar bincike, kusa da URL na rukunin yanar gizon. Hakanan za'a iya amfani dashi don gano alamun shafi a cikin masu binciken gidan yanar gizo da azaman alamar gajerun hanyoyi akan kwamfutoci da na'urorin hannu. Favicons yawanci girman pixels 16 ร 16 kuma ana ajiye su azaman fayilolin .ico.
Yadda Ake ฦara Favicon zuwa Gidan Yanar Gizonku
ฦara favicon zuwa gidan yanar gizonku hanya ce mai kyau don ฦara ฦarin alamar alama da ainihi zuwa rukunin yanar gizonku. Favicons ฦananan gumaka ne waษanda ke bayyana a cikin shafin burauza kusa da taken gidan yanar gizon ku. Hakanan ana iya amfani da su azaman gajerun hanyoyi akan na'urorin tafi-da-gidanka, suna sauฦaฦa wa masu amfani don ganowa da shiga rukunin yanar gizon ku.
Don ฦara favicon zuwa gidan yanar gizon ku a cikin HTML, kuna buฦatar fayil ษin hoto tare da tsawo na .ico. Wannan hoton ya kamata ya zama 16 ร 16 pixels ko 32 ร 32 a girman. Da zarar kun ฦirฦiri ko samo wannan fayil ษin hoton, zaku iya loda shi zuwa tushen tushen gidan yanar gizon ku.
Da zarar an ษora ku, za ku buฦaci ฦara abin haษin yanar gizo a cikin ษangaren kai na kowane shafi akan rukunin yanar gizonku wanda ke nuna wannan fayil ษin hoton:
Wannan mahaษin yana gaya wa masu bincike inda za su sami favicon ษin gidan yanar gizon ku don a iya nunawa da kyau lokacin da wani ya ziyarci ษaya daga cikin shafukansa.
A ฦarshe, idan kuna son masu bincike kamar Chrome da Firefox su nuna babban sigar favicon (pixels 192 ร 192), to kuna buฦatar ฦirฦirar wani sigar gunkin kuma ku loda shi cikin tushen directory kuma:
Da zarar duk waษannan matakan sun cika, baฦi ya kamata yanzu su ga favicon na al'ada lokacin da suka ziyarci kowane shafi akan gidan yanar gizon ku!