I wrote the following code
.bluecolor{background-color : skyblue;}
canvas{width: 100pt;margin:0px;border: 5px solid;}
h1{margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;}
<html>
<head>
<title>Hello World</title>
</head>
<body>
<h1>Hello</h1>
<canvas id = "canvas1" class = "bluecolor"></canvas>
</body>
</html>
Why is there Still Space Between Hello And Canvas , when i have already made every padding and margin zero for each element?I am confused about this thing.
And i have came to know about inline and block elements and i used them but no avail , they deleted the space between two canvas element when i made them block , but i had not clue how are they working ?
If you see something wrong in this question please comment , and i will correct it, i am still learning ways of this site.
Update As People are pointing that it is line height , Can you include example in your answer and explain what does it mean?