Babban matsalar da ke da alaฦa da alamar cire HTML ita ce ana iya fassara ta daban dangane da mahallin. A wasu lokuta, ana iya fassara shi azaman jita-jita ko dash, yayin da a wasu lokuta ana iya fassara shi azaman ma'aikacin ragi. Wannan na iya haifar da rudani da sakamakon da ba daidai ba idan ba a yi amfani da shi daidai ba. Bugu da ฦari, wasu masu bincike na ฦila ba za su sanya alamar cirewa daidai ba, yana haifar da halayen da ba a zata ba.
−
1. bari x = 5;
- Wannan layin code yana bayyana maษalli mai suna 'x' kuma yana sanya masa ฦimar 5.
2. bari y = 3;
- Wannan layin code yana bayyana maษalli mai suna 'y' kuma yana sanya masa ฦimar 3.
3. bari z = x + y;
- Wannan layin lambar yana bayyana maษalli mai suna 'z' kuma ya sanya masa ฦimar jimlar x da y (a wannan yanayin, 8).
UTF-8
Unicode UTF-8 rufaffiyar haruffa ce da ake amfani da ita don wakiltar rubutu a cikin takaddun HTML. Yana goyan bayan nau'ikan haruffa, gami da duk manyan harsunan duniya. Shi ne mafi yawan amfani da rufaffiyar haruffa akan gidan yanar gizo kuma ana samun goyan bayan duk masu binciken gidan yanar gizo na zamani. Unicode UTF-8 yana ba da damar ingantacciyar ajiya da watsa bayanan rubutu, yana mai da shi kyakkyawan zaษi don shafukan yanar gizo da aikace-aikace na duniya. A cikin HTML, ana iya ฦayyade Unicode UTF-8 ta amfani da tag tare da charset = "utf-8" sifa. Wannan yana tabbatar da cewa duk haruffa suna nuna daidai ba tare da la'akari da yare ko dandamali ba.
Menene alamar Ragewa
Alamar cirewa (-) wani hali ne na musamman a cikin HTML wanda ake amfani dashi don ฦirฦirar layi a kwance. Ana yawan amfani da shi don raba sassan rubutu, kamar a jeri ko sakin layi. Hakanan za'a iya amfani da alamar cirewa don ฦirฦirar ฦa'idar kwance, wanda shine layin da ke raba sassan abun ciki daban-daban akan shafin yanar gizon.
Yadda ake ฦara alamar cirewa a HTML
Don ฦara alamar cirewa a cikin HTML, zaku iya amfani da lambar mahaษin HTML don alamar ragi, wanda shine -. Hakanan zaka iya amfani da bayanin halayen HTML -. Don nuna alamar ragi a shafin yanar gizon, zaku yi amfani da lambar mai zuwa:
- ko --