Advertisement
Hadi1989

Untitled

Jan 21st, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.28 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7.     <title>Document</title>
  8.     <link rel="stylesheet" href="style.css">
  9. </head>
  10. <body>
  11.     <h1>Pure CSS Tabs</h1>
  12. <div class="container">
  13.  
  14.   <input id="tab-1" type="radio" name="tabs" checked>
  15.   <label for="tab-1">Tab-1</label>
  16.  
  17.   <input id="tab-2" type="radio" name="tabs">
  18.   <label for="tab-2">Tab-2</label>
  19.  
  20.   <input id="tab-3" type="radio" name="tabs">
  21.   <label for="tab-3">Tab-3</label>
  22.  
  23.   <div class="content">
  24.     <div id="content-1">
  25.       <h2>Tab-1</h2>
  26.       <p>
  27.         Lorem ipsum dolor, sit amet consectetur adipisicing elit. Optio aspernatur adipisci quas nostrum possimus?
  28.       </p>
  29.     </div>
  30.  
  31.     <div id="content-2">
  32.       <h2>Tab-2</h2>
  33.       <p>
  34.         Lorem ipsum dolor, sit amet consectetur adipisicing elit. Optio aspernatur adipisci quas nostrum possimus?
  35.       </p>
  36.     </div>
  37.  
  38.     <div id="content-3">
  39.       <h2>Tab-3</h2>
  40.       <p>
  41.         Lorem ipsum dolor, sit amet consectetur adipisicing elit. Optio aspernatur adipisci quas nostrum possimus?
  42.       </p>
  43.     </div>
  44.   </div>
  45.  
  46. </div>
  47. <small>/kurakuracoding</small>
  48. </body>
  49. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement