Block-level elements : Inline Elements « Style Basics « HTML / CSS






Block-level elements

 
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Block and Inline Elements</title>
  </head>
  <body>
    <h1>Block-Level Elements</h1>
      <p><strong>Block-level elements</strong> The
      <code>&lt;h1&gt;</code> and <code>&lt;p&gt;</code>.</p>
  </body>
</html>

 








Related examples in the same category

1.CSS provides the following properties for styling inline boxes:
2.Inline Elements list
3.Inline Box
4.Shrinkwrapped inline block by setting both width and height to auto
5.On an inline-block element, a positive value in margin-top expands the height of the line and a negative value shrinks it.
6.inline element is floated
7.float inline block becomes block of multiline inline box
8.float inline with block inline padding
9.float inline elements becomes block
10.Middle Offset INLINE
11.Shrinkwrapped Absolute right aligned
12.Stretched Absolute in relative positioned parent
13.Middle Aligned INLINE