0
in the following coding why the output is not aligned to centre?when i use <b> tag in the place of <h>, it is aligned..
<html> <head> <title>first page</title> </head> <body> <p align="center"><h1>This is a paragraph.</h1></p> <p>This is another paragraph. </p> </body> </html> why the output is not aligned to center?
2 Respuestas
+ 14
<b> : inline
<h> : block
<style>
h1,b{background:red;text-align:center;}
</style>
<b>centered but not full-width</b>
<h1>centered</h1>
+ 1
thank you