Home > Net >  Cant use margin command in HTML
Cant use margin command in HTML

Time:09-29

I want to use margin in html but when im writing margin it doesn't auto complete and It doesn't work even if I type here is my code;

<html lang="tr">
 <head>
    <meta charset="utf-8">
    <title>GAMEBLOG</title>
</head> 
<body>
    
    <hr   align="left" color="Red" size="60"width="1475"> 
   <center><font  face="papyrus" size="12" color="maroon">   <span><b>Gameblog News</b></span></font></center> 
   <p>
<center><h1><font face="Arial">En hızlı büyüyen kara delik bulundu: <br>
     'Her saniye Dünya büyüklüğünde kütle yutuyor'</font> </h1></center>
   </p>
   <hr color="Lightgray" width="500"size="3">
 <center><img src="C:\Users\Samet\Desktop/kara.png"  width="400" height="400">   
 </center>  

 <b>Avustralyalı astronomların liderliğini yaptığı bilim insanlarından oluşan bir ekip, son dokuz milyar yılın en hızlı büyüyen kara deliğini keşfettiklerini açıkladı.</b>


   
</body>
</html>

CodePudding user response:

You have to put style a HTML tag. For exemple, if you want to put margin on the body, you have to do this :

<body style="margin:30px;">
// Your code
</body>
  • Related