+ 1
What is block & inline element?
what does block and inline elements mean?
4 Answers
+ 1
HTML block level element:
1. HTML block level elements can appear in the body of an HTML page.
2. It can contain another block level as well as inline elements.
3. By default, block-level elements begin on new lines.
4. block level elements create larger structures (than inline elements).
List of block level elementsph1, h2, h3, h4, h5, h6,ol, ul,pre,address,blockquote,dl,div fieldset,form,hr,noscript,table etc..
on the other hand..
HTML inline elements
1. HTML inline level elements can appear in the body of an HTML page.
2. It can contain data and otherinline elements.
3. By default, inline elements do not begin on new lines.
4. inline elements create shorter structures (than block level elements).
List of some inline elements
b, big, i, small, ttabbr, acronym, cite, code, dfn, em, kbd, strong, samp, vara, bdo, br, img, map, object, q, script, span, sub, sup etc..
+ 18
<div> & <p> both are block elements...
check out the list đ
https://www.sololearn.com/learn/HTML/1034/?ref=app
+ 7
they both are block elemets as they start from a new line..
block - element that start from a new line
inline - element that start from same line.. & take only space allowed to them
https://www.w3schools.com/html/html_blocks.asp
0
div and p tags are inline or block?