What is block & inline element? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is block & inline element?

what does block and inline elements mean?

26th Feb 2018, 9:58 AM
Swapnil-SoloHTML
Swapnil-SoloHTML - avatar
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..
27th Feb 2018, 6:41 PM
Tanim Ahmed
+ 18
<div> & <p> both are block elements... check out the list 👇 https://www.sololearn.com/learn/HTML/1034/?ref=app
26th Feb 2018, 10:29 AM
🌛DT🌜
🌛DT🌜 - avatar
+ 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
26th Feb 2018, 12:29 PM
Jaydeep Khatri
Jaydeep Khatri - avatar
0
div and p tags are inline or block?
26th Feb 2018, 10:00 AM
Swapnil-SoloHTML
Swapnil-SoloHTML - avatar