- <!DOCTYPE html>
- <html>
- <title>W3.CSS</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
- <body>
- <div class="w3-container">
- <h2>w3-section</h2>
- <p>The w3-section adds a 16px top and bottom margin to an element.</p>
- <p>This makes an element behave like a paragraph:</p>
- <div class="w3-container w3-green">
- <p>Tokyo is the center of the Greater Tokyo Area,
- and the most populous metropolitan area in the world.</p>
- </div>
- <div class="w3-container w3-red">
- <p>Tokyo is the center of the Greater Tokyo Area,
- and the most populous metropolitan area in the world.</p>
- </div>
- <div class="w3-container w3-section w3-green">
- <p>Tokyo is the center of the Greater Tokyo Area,
- and the most populous metropolitan area in the world.</p>
- </div>
- <div class="w3-container w3-section w3-red">
- <p>Tokyo is the center of the Greater Tokyo Area,
- and the most populous metropolitan area in the world.</p>
- </div>
- </div>
- </body>
- </html>