In how many ways you can display HTML elements?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is html antiforgerytoken ()?

664


tell me do you know new input type attribute in html5

573


How can you make a numbered list?

613


I am trying to include a html document in another document. Is there a way to do this?

581


What is the difference between nav and div?

710


Why is html not a programming language?

595


What will happen if you overlap sets of tags?

833


What is tag?

617


Can you have multiple body tags in html?

620


Explain posting copy and paste html?

678


What xhtml means?

616


If the user's operating system does not support the needed character, how can the symbol be represented?

695


Does html5 require closing tags?

631


Can I use any html in the box?

635


What are tags and attributes?

608