Rubutun HTML da Sakin layi: Jagora da Misalai

Rubutun kan layi da sakin layi a cikin HTML suna ba ku damar tsarawa da tsara abun ciki akan shafin yanar gizon ku. Anan akwai alamun da aka saba amfani da su a cikin HTML don tsara taken da sakin layi:

Taken Tags

Akwai matakai shida na kanun labarai daga h1 zuwa h6. Alamar h1 tana wakiltar matakin mafi girman kai, yayin da alamar h6 tana wakiltar matakin mafi ƙanƙanta. 

<h1>This is a Heading 1</h1>  
<h2>This is a Heading 2</h2>  
<h3>This is a Heading 3</h3>  

Sakin layi Tag

Ana amfani da alamar p don ƙirƙirar sakin layi na rubutu. 

<p>This is a paragraph.</p>

Tsarin Rubutu

Akwai alamomi da yawa da ake amfani da su don tsara rubutu, gami da:

- Ƙarfin alamar: Don jaddada wani yanki na rubutu. Misali: `<strong>Wannan rubutu yana da mahimmanci</strong>'.
- Alamar em: Don rubuta wani yanki na rubutu. Misali: `<em>An jaddada wannan rubutu</em>`.
- Alamar b: Don sanya sashin rubutu mai ƙarfi. Misali: `<b>Wannan rubutu yana da ƙarfi</b>`.
- The i tag: Don yin wani yanki na rubutun rubutun. Misali: `<i>Wannan rubutun rubutun ne</i>`.

Karamin kanun labarai

Kuna iya amfani da alamomi daban-daban kamar hgroup, hgroup, da hgroup don ƙirƙirar ƙananan taken shafin yanar gizonku.

<hgroup>  
  <h1>Main Heading</h1>  
  <h2>Subheading 1</h2>  
  <h3>Subheading 2</h3>  
</hgroup>  

Waɗannan alamun suna ba ku damar tsarawa da tsara abubuwan da ke cikin shafin yanar gizon ku a daidai kuma daidai gwargwado. Yi amfani da su yadda ya kamata don ƙirƙirar ƙwararriyar shafin yanar gizo mai jan hankali.