An warware: html babba

Babban matsala tare da babban haruffa HTML shine cewa yana iya zama da wahala a karanta.

<!DOCTYPE html>
<html>
<body>

<h2>HTML uppercase</h2>
<p id="demo"></p>

<script>
var x = document.getElementById("demo");  // Find the element with id="demo"
x.innerHTML = x.innerHTML.toUpperCase();   // Convert the content to uppercase
</script> 

 </body>

Layukan farko guda biyu suna ฦ™irฦ™irar takaddar HTML. Sanarwar ta ayyana wannan takarda ta zama HTML5. Abun shine tushen tushen shafin HTML. Abun yana ฦ™unshe da abun cikin shafi da ake gani.

Layukan biyu na gaba suna ฦ™irฦ™irar taken da sakin layi:

The

kashi yana ma'anar taken.
The

kashi yana bayyana sakin layi.
Siffar id tana ฦ™ayyadad da keษ“antaccen id don abin HTML (ฦ™imar dole ne ta zama na musamman a cikin takaddar HTML).
Kayan cikin HTML yana samun ko saita abun cikin HTML (innerHTML) na wani kashi.
A cikin wannan misali, muna amfani da kayan cikin HTML don musanya abun ciki na

kashi zuwa manyan haruffa:

Yadda ake nuna babban rubutu

Don nuna babban rubutu a cikin HTML, yi amfani da Tag. Misali:

Hello

Wannan zai nuna "Hello".

CSS rubutu-canza dukiya

Ana iya amfani da kayan canza rubutu don canza tsarin rubutu na wani kashi. Ana iya amfani da wannan kadarar don canza font, girman, da launi na rubutun.

Shafi posts:

Leave a Comment