Advertisement
Patrikrizek

lesson-5-index

Jun 8th, 2022
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.55 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Emmet, Forms</title>
  5.     <!-- Internal CSS -->
  6.     <style>
  7.         input {
  8.             margin-bottom: 20px;
  9.         }
  10.  
  11.         span {
  12.             display: block;
  13.             margin-top: 50px;
  14.             font-weight: bold;
  15.         }
  16.  
  17.         div, .author {
  18.             background-color: lightcyan;
  19.             padding: 5px;
  20.         }
  21.  
  22.     </style>
  23. </head>
  24. <body>
  25.     <!-- Emmet -->
  26.     <h1>Emmet</h1>
  27.     <a href="https://emmet.io/">Emmet documentation</a>
  28.     <p>F2 - change both tags</p>
  29.     <p>Ctrl + Shift + p - Wrap Emmet</p>
  30.    
  31.     <!-- To use Emmet simply start to typing the emmet shortcuts (see the examples bellow) and then hit the enter. -->
  32.  
  33.     <!-- Create div with ID named "example". -->
  34.     <span style="margin-top: 50px;">div#example</span>
  35.     <div id="example"></div>
  36.  
  37.     <!-- Create div with class named "book". -->
  38.     <span>div.book</span>
  39.     <div class="book"></div>
  40.  
  41.     <!-- Create paragraph with class named "author". -->
  42.     <span>p.author</span>
  43.     <p class="author"></p>
  44.  
  45.     <!-- Create paragraph with inserted text "dummy text". -->
  46.     <span>p{dummy text}</span>
  47.     <p>dummy text</p>
  48.  
  49.     <!-- Create parent "ul" with five children "li", and child "a" with text "Item". -->
  50.     <span>ul>li*5>a{Item}</span>
  51.     <ul>
  52.         <li><a href="">Item</a></li>
  53.         <li><a href="">Item</a></li>
  54.         <li><a href="">Item</a></li>
  55.         <li><a href="">Item</a></li>
  56.         <li><a href="">Item</a></li>
  57.     </ul>
  58.  
  59.     <!-- Create parent "ul" with two children "li", and child "a" with text "Item" and number starting from 1. -->
  60.     <span>ul>li*2>a{Item$}</span>
  61.     <ul>
  62.         <li><a href="">Item1</a></li>
  63.         <li><a href="">Item2</a></li>
  64.     </ul>
  65.  
  66.     <!-- Create a div with ID named "navigation" and parent "ul" with two children "li", and child "a" with text "Item" and number starting from 1. -->
  67.     <span>div#navigation>ul>li*2>a{Item$}</span>
  68.     <div id="navigation">
  69.         <ul>
  70.             <li><a href="">Item1</a></li>
  71.             <li><a href="">Item2</a></li>
  72.         </ul>
  73.     </div>
  74.  
  75.     <br>
  76.     <hr>
  77.     <br>
  78.  
  79.     <!-- Forms -->
  80.     <h1>Form</h1>
  81.     <!-- HTML form is used to collect user input. -->
  82.     <!-- User input is most often sent to a server for processing. -->
  83.     <form>
  84.         <label for="example">This is a label</label><br>
  85.         <!-- This is a input field of type of text. -->
  86.         <!-- The label and input are connected together by "for" and "name". -->
  87.         <input type="text" name="example" placeholder="This is a input filed."><br>
  88.  
  89.         <!-- Examples of input types. -->
  90.         <label for="">Button</label><br>
  91.         <input type="button" value="Button"><br>
  92.  
  93.         <label for="">Checkbox</label><br>
  94.         <input type="checkbox" name="" id=""><br>
  95.  
  96.         <label for="">Date</label><br>
  97.         <input type="date" name="" id=""><br>
  98.  
  99.         <label for="">Date Time</label><br>
  100.         <input type="datetime-local" name="" id=""><br>
  101.  
  102.         <label for="">Email</label><br>
  103.         <input type="email" name="" id=""><br>
  104.  
  105.         <label for="">File</label><br>
  106.         <input type="file" name="" id=""><br>
  107.  
  108.         <label for="">Hidden</label><br>
  109.         <input type="hidden" name="" id=""><br>
  110.  
  111.         <label for="">Image</label><br>
  112.         <input type="image" name="" id=""><br>
  113.  
  114.         <label for="">Month</label><br>
  115.         <input type="month" name="" id=""><br>
  116.  
  117.         <label for="">Number</label><br>
  118.         <input type="number" name="" id=""><br>
  119.  
  120.         <label for="">Password</label><br>
  121.         <input type="password" name="" id=""><br>
  122.        
  123.         <label for="">Radio</label><br>
  124.         <input type="radio" name="" id=""><br>
  125.  
  126.         <label for="">Range</label><br>
  127.         <input type="range" name="" id=""><br>
  128.  
  129.         <label for="">Reset</label><br>
  130.         <input type="reset" name="" id=""><br>
  131.  
  132.         <label for="">Search</label><br>
  133.         <input type="search" name="" id=""><br>
  134.  
  135.         <label for="">Submit</label><br>
  136.         <input type="submit" name="" id=""><br>
  137.  
  138.         <label for="">Telephone</label><br>
  139.         <input type="tel" name="" id=""><br>
  140.  
  141.         <label for="">Text</label><br>
  142.         <input type="text" name="" id=""><br>
  143.  
  144.         <label for="">Time</label><br>
  145.         <input type="time" name="" id=""><br>
  146.  
  147.         <label for="">URL</label><br>
  148.         <input type="url" name="" id=""><br>
  149.  
  150.         <label for="">Week</label><br>
  151.         <input type="week" name="" id=""><br>
  152. </body>
  153. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement