In how many ways you can display HTML elements?
Answer / nashiinformaticssolutions
1. inline: Using this we can display any block-level element as an inline element. The height and width attribute values of the element will not affect.
2. block: using this, we can display any inline element as a block-level element.
3. inline-block: This property is similar to inline, except by using the display as inline-block, we can actually format the element using height and width values.
4. flex: It displays the container and element as a flexible structure. It follows flexbox property.
5. inline-flex: It displays the flex container as an inline element while its content follows the flexbox properties.
6. grid: It displays the HTML elements as a grid container.
7. none: Using this property we can hide the HTML element.
Below are some of the display types which are rarely used:
1. table
2. inline-table
3. table-cell
4. table-column
5. table-row
6. inline-grid
7. list-item
8. inherit
9. initial
10. table-caption
| Is This Answer Correct ? | 0 Yes | 0 No |
What is dhtml?
What are the various tags provided for better structuring in HTML5?
Why doctype is used in html?
Is it better to use iframe?
What is <iframe> and why we can use this?
How to create sub sub navigation with html5 css3.
What is dhtml and its features?
Do you need to close br tag?
Is it possible to list elements straight in an html file?
What is the xhtml?
Why we use 'clear' in html?
In html5, onblur and onfocus are?