+ 2

inline and block elements

I don't understand the inline and blocks. Why <h1> is a block element this is for heading. I don't understand the <div> to.

21st May 2017, 12:24 AM
Tomas Garfield
Tomas Garfield - avatar
5 Réponses
+ 5
Take the time to go through the Fundamentals, if you have then visit for a second time...you surely gonna get it.
21st May 2017, 1:35 AM
Benneth Yankey
Benneth Yankey - avatar
+ 5
The difference between inline and block is that block elements take up their own space on a new line whereas inline elements can be positioned side by side. If you want a block level element to behave as inline you can just use css for that. Practice a little bit with these elements and set some css styles to them to understand what I'm talking about.
21st May 2017, 11:23 AM
Mike
Mike - avatar
+ 1
Block Level Elements in HTML (Centering Supported) Division Tag <div> Heading Tag <h1>...<h6> Paragraph Tag <p> Horizontal Rule Tag <hr> Unordered Tag <ul> Ordered Tag <ol> List Tag <li> ----------------------------------------------- Inline Elements in HTML (Centering Not Supported) Link Tag or anchor tag <a> Image Tag <Img> Video Tag <video> Bold Tag <b> Break Tag <br> Italic Tag <i> Span Tag <span> Button Tag <button> Emphasis Tag <em>
12th Dec 2024, 4:27 AM
‎hassan
‎hassan - avatar
0
Thx I will take a look.
21st May 2017, 1:51 AM
Tomas Garfield
Tomas Garfield - avatar
0
Thanks I will practice a little bit.
21st May 2017, 12:38 PM
Tomas Garfield
Tomas Garfield - avatar