June 2025
Beginner
817 pages
31h 30m
English
You’ve used the CSS feature display many times in the examples, so we’ll dedicate a few more paragraphs to it for a brief description. As you’ve seen several times by now, you can use the CSS feature display to change the behavior of an HTML element when it displays in the web browser. For each HTML element, a box is specified that describes the behavior of the element. Even simple HTML elements inside a text line such as <em> or <a> are boxes, and you can change their default behavior via display. This has already been described in greater detail.
You can change the behavior of an HTML element such as <p> by using display: inline; which will no longer executes a line break or paragraph ...
Read now
Unlock full access