anasazhar

div_span_id

Nov 3rd, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.58 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>THIS USING ID DIVISION</title>
  5.     <style type="text/css">
  6.         #top {
  7.             font-size: 36px;
  8.             color:  red;
  9.         }
  10.         #middle {
  11.             font-size: 24px;
  12.         }
  13.         #bottom {
  14.             font-size: 12px;
  15.         }
  16.         .title {
  17.             font-weight: bold;
  18.             color: blue;
  19.         }
  20.     </style>
  21. </head>
  22. <body>
  23.     <div id="top" class="title">This is the <span class="title">top</span> of the page</div>
  24.     <div id="middle">This is <span class="title">the middle</span> of the page </div>
  25.     <div id="bottom">This is <span class="title">the bottom</span> of the page</div>
  26. </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment