Wht is block element in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Wht is block element in html

14th Mar 2017, 6:59 PM
nikhil panwar
3 Answers
+ 3
@William, note that people are commenting here when they see code in the tutorials. many are just staying out and yes people can just "Google it" but I think it's fair to ask questions as you go and get answers here. it's part of what this discussion forum is for. it's also handy reference for them and to add can be easier on a mobile if they are using this app. others may find the comments and questions useful to.
14th Mar 2017, 9:54 PM
Elric Hindy
Elric Hindy - avatar
0
lol that answer reminds me of the standard forum answer 'Google it, noob' wow Anyways block elements are container objects in html to contain 'blocks' of the page, examples would be div, a, p, img. this is opposed to inline elements, which would be 'inline' of the page, mostly inside block elements. without further code, two block elements cannot be on the same line displayed on the browser, whereas as many inline elements that can fit will go on the same line. you can place inline elements in block elements, but not the other way around
14th Mar 2017, 9:42 PM
William La Flamme
William La Flamme - avatar
0
@elric if you notice, my statement said answer, not question, apparently the poster of the statement i was referring to deleted post and ran lol it stated "why don't you just go and finish the tutorial" hence my response, so actually i agree with you, and as you see also put an answer :) dam ninja trolls obv
15th Mar 2017, 2:55 AM
William La Flamme
William La Flamme - avatar