Style. Visibility and style. display can both hide pages. However, visibility occupies domain space while display does not.
- Set the element display attribute to block, and wrap the line after the element.
- Setting the element display attribute to inline eliminates line breaks.
- Set the display attribute of the element to none to hide the content of the element without occupying the space of the domain.
- Sets the element visibility attribute to Den den to hide the content of the element, but occupies the space of the domain.
- Set the element visibility attribute to visible to display the element content.
<P> welcome <span style = "display: inline"> You </span> to my blog </P>
Effect: WelcomeYouGo to my blog
<P> welcome <span style = "display: Block"> You </span> to my blog </P>
Effect: WelcomeYouGo to my blog
<P> welcome <span style = "display: none"> You </span> to my blog </P>
Effect: Welcome to my blog
<P> welcome <span style = "visibility: hidden"> You </span> to my blog </P>
Effect: Welcome to my blog
<P> welcome <span style = "display: visible"> You </span> to my blog </P>
Effect: WelcomeYouGo to my blog