Advertisement
rezamalik15

CSS - Display

Mar 21st, 2023
727
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.35 KB | None | 0 0
  1. <html lang="en">
  2. <head>
  3.     <meta charset="UTF-8">
  4.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  5.     <title>Display</title>
  6.     <style type="text/css">
  7.         p{
  8.             padding: 10px;
  9.             line-height: 50px;
  10.         }
  11.  
  12.         .p1{
  13.             display:none;
  14.             background-color: black;
  15.         }
  16.  
  17.         .p2{
  18.             display:inline;
  19.             background-color: yellow;
  20.         }
  21.  
  22.         .p3{
  23.             display:block;
  24.             background-color: pink;
  25.         }
  26.  
  27.         .p4{
  28.             display: inline-block;
  29.             color: cyan;
  30.             background-color: black;
  31.         }
  32.     </style>
  33. </head>
  34. <body>
  35.     <p class="p1">
  36.         HTML, or Hypertext Markup Language, is the standard markup language used for creating web pages and applications. It provides a set of tags and attributes that can be used to define the structure and content of a web page.
  37.     </p>
  38.     <p class="p3">
  39.         HTML documents are typically created using a text editor or integrated development environment (IDE), and can be viewed in a web browser. <p class="p2">HTML</p> is an important language for anyone interested in web development, as it forms the foundation for creating websites and web applications.
  40.        
  41.     </p>
  42.     <p class="p3">
  43.         It is also a useful skill for anyone who wants to understand how web pages work and how they are created. With the right tools and resources, learning <p class="p4">HTML</p> can be a straightforward and rewarding journey.
  44.     </p>
  45. </body>
  46. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement