W3.css - Tutorial Pdf

<h2>1. What is W3.CSS?</h2> <p>W3.CSS is a modern, responsive, mobile-first CSS framework from the World Wide Web Consortium (W3C). It's free, lightweight (only ~20KB minified), and does not require JavaScript.</p>

<h2>7. Common Components</h2> <h3>Buttons</h3> <pre><a class="w3-button w3-blue w3-round-large">Button</a></pre> w3.css tutorial pdf

<h2>2. Getting Started</h2> <p>Add this to your HTML <code><head></code>:</p> <pre><link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"></pre> &lt;h2&gt;1

<h3>Modal</h3> <pre><div id="modal" class="w3-modal"> <div class="w3-modal-content"> <span class="w3-button w3-display-topright">×</span> <p>Modal content</p> </div> </div></pre> – hide on mobile&lt

<h2>9. Complete Page Template</h2> <pre><!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body class="w3-container"> <h1 class="w3-center w3-blue w3-padding">My W3.CSS Site</h1> <p>Responsive and modern!</p> </body> </html></pre>

<h2>6. Responsive Utilities</h2> <ul> <li><code>w3-hide-small</code> – hide on mobile</li> <li><code>w3-hide-medium</code> – hide on tablet</li> <li><code>w3-hide-large</code> – hide on desktop</li> <li><code>w3-mobile</code> – make block element full width on mobile</li> </ul>

<h2>8. Animations</h2> <p>W3.CSS includes CSS animations:</p> <pre><div class="w3-animate-fading">Fades in/out</div> <div class="w3-animate-zoom">Zooms in</div> <div class="w3-animate-left">Slides from left</div></pre>