An warware: alamar cirewa html

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 --

Shafi posts:

Leave a Comment