+ 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.
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.
+ 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.
+ 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>
0
Thx I will take a look.
0
Thanks I will practice a little bit.