Saturday, July 25, 2015

12. HTML Lists

 HTML Tutorial

HTML offers web authors three ways for specifying lists of information. All lists must contain one or more list elements. Lists may contain:
    • - An unordered list. This will list items using plain bullets.
      1. - An ordered list. This will use different schemes of numbers to list your items.
      2. - A definition list. This arranges your items in the same way as they are arranged in a dictionary.

      HTML Unordered Lists

      An unordered list is a collection of related items that have no special order or sequence. This list is created by using HTML
        tag. Each item in the list is marked with a bullet.

        Example

        
        
        
        </span><span class="pln">HTML Unordered List</span><span class="tag">
        


        • Beetroot
        • Ginger
        • Potato
        • Radish This will produce following result:
          • Beetroot
          • Ginger
          • Potato
          • Radish

          The type Attribute

          You can use type attribute for
            tag to specify the type of bullet you like. By default it is a disc. Following are the possible options:

            type="square">
              type="disc">
                type="circle">

          Example

          Following is an example where we used

            
            
            
            </span><span class="pln">HTML Unordered List</span><span class="tag">
            

              type="square">
            • Beetroot

          • Ginger
          • Potato
          • Radish This will produce following result:
            • Beetroot
            • Ginger
            • Potato
            • Radish

            Example

            Following is an example where we used
              :

            
            
            
            </span><span class="pln">HTML Unordered List</span><span class="tag">
            

              type="disc">
            • Beetroot

          • Ginger
          • Potato
          • Radish This will produce following result:
            • Beetroot
            • Ginger
            • Potato
            • Radish

            Example

            Following is an example where we used
              :

            
            
            
            </span><span class="pln">HTML Unordered List</span><span class="tag">
            

              type="circle">
            • Beetroot

          • Ginger
          • Potato
          • Radish This will produce following result:
            • Beetroot
            • Ginger
            • Potato
            • Radish

            HTML Ordered Lists

            If you are required to put your items in a numbered list instead of bulleted then HTML ordered list will be used. This list is created by using
              tag. The numbering starts at one and is incremented by one for each successive ordered list element tagged with
            1. .

            2. Example

              
              
              
              </span><span class="pln">HTML Ordered List</span><span class="tag">
              


              1. Beetroot
              2. Ginger
              3. Potato
              4. Radish This will produce following result:
                1. Beetroot
                2. Ginger
                3. Potato
                4. Radish

                The type Attribute

                You can use type attribute for
                  tag to specify the type of numbering you like. By default it is a number. Following are the possible options:

                  type="1"> - Default-Case Numerals.
                    type="I"> - Upper-Case Numerals.
                      type="i"> - Lower-Case Numerals.
                        type="a"> - Lower-Case Letters.
                          type="A"> - Upper-Case Letters.

                Example

                Following is an example where we used

                  
                  
                  
                  </span><span class="pln">HTML Ordered List</span><span class="tag">
                  

                    type="1">
                  1. Beetroot

                1. Ginger
                2. Potato
                3. Radish This will produce following result:
                  1. Beetroot
                  2. Ginger
                  3. Potato
                  4. Radish

                  Example

                  Following is an example where we used

                    
                    
                    
                    </span><span class="pln">HTML Ordered List</span><span class="tag">
                    

                      type="I">
                    1. Beetroot

                  1. Ginger
                  2. Potato
                  3. Radish This will produce following result:
                    1. Beetroot
                    2. Ginger
                    3. Potato
                    4. Radish

                    Example

                    Following is an example where we used

                      
                      
                      
                      </span><span class="pln">HTML Ordered List</span><span class="tag">
                      

                        type="i">
                      1. Beetroot

                    1. Ginger
                    2. Potato
                    3. Radish This will produce following result:
                      1. Beetroot
                      2. Ginger
                      3. Potato
                      4. Radish

                      Example

                      Following is an example where we used

                        
                        
                        
                        </span><span class="pln">HTML Ordered List</span><span class="tag">
                        

                          type="A">
                        1. Beetroot

                      1. Ginger
                      2. Potato
                      3. Radish This will produce following result:
                        1. Beetroot
                        2. Ginger
                        3. Potato
                        4. Radish

                        Example

                        Following is an example where we used

                          
                          
                          
                          </span><span class="pln">HTML Ordered List</span><span class="tag">
                          

                            type="a">
                          1. Beetroot

                        1. Ginger
                        2. Potato
                        3. Radish This will produce following result:
                          1. Beetroot
                          2. Ginger
                          3. Potato
                          4. Radish

                          The start Attribute

                          You can use start attribute for
                            tag to specify the starting point of numbering you need. Following are the possible options:

                            type="1" start="4"> - Numerals starts with 4.
                              type="I" start="4"> - Numerals starts with IV.
                                type="i" start="4"> - Numerals starts with iv.
                                  type="a" start="4"> - Letters starts with d.
                                    type="A" start="4"> - Letters starts with D.

                          Example

                          Following is an example where we used

                            
                            
                            
                            </span><span class="pln">HTML Ordered List</span><span class="tag">
                            

                              type="i" start="4">
                            1. Beetroot

                          1. Ginger
                          2. Potato
                          3. Radish This will produce following result:
                            1. Beetroot
                            2. Ginger
                            3. Potato
                            4. Radish

                            HTML Definition Lists

                            HTML and XHTML support a list style which is called definition lists where entries are listed like in a dictionary or encyclopedia. The definition list is the ideal way to present a glossary, list of terms, or other name/value list.
                            Definition List makes use of following three tags.
                            • - Defines the start of the list
                            • - A term
                            • - Term definition
                            - Defines the end of the list

                            Example

                            
                            
                            
                            </span><span class="pln">HTML Definition List</span><span class="tag">
                            


                            HTML
                            This stands for Hyper Text Markup Language
                            HTTP
                            This stands for Hyper Text Transfer Protocol This will produce following result:
                            HTML
                            This stands for Hyper Text Markup Language
                            HTTP
                            This stands for Hyper Text Transfer Protocol

                            0 comments:

                            Post a Comment

                             
                            Designed by Kakada Akkarak Surakkiat
                            Technology: របៀប​ដំឡើង Windows 10 នៅ​លើ​កុំព្យូទ័រ!: អ្នកត្រូវដឹងឲ្យ ច្បាស់ពី Windows ដែលអ្នកយក ទៅដំឡើង ដោយសារមាន Windows ខ្លះមានការ crack រួច ឬខ្លះត្រូវការ Product key ភ្លាម និងខ្លះទៀត អាចត្រូវ skip កន្លែងវាយលេខ Product key បាន តែត្រូវ Activate តាមក្រោយ ទើបប្រើប្រាស់បាន។ Technology: ដំណោះ​ស្រាយ Error 80240020 នៅ​ពេល​តម្លើង Windows 10 Free តាម​រយៈ​ការ Upgrade : មាន បញ្ហាមួយចំនួន ទាក់ទងនឹង ការតម្លើង Windows 10 នេះផងដែរ ប៉ុន្តែបញ្ហានោះ កើតឡើង ទៅលើតែកុំព្យូទ័រ មួយចំនួនប៉ុណ្ណោះ គឺខណៈពេល ដែលអ្នក ប្រើប្រាស់ បានទាញយក Windows 10 ចប់ហើយ វាបាន បង្ហាញនូវ ផ្ទាំង error មួយ ដែលមានលេខ សំគាល់ error នោះគឺ 80240020។ ដូចនេះដើម្បី ដោះស្រាយ នូវបញ្ហា មួយនេះ សូមលោកអ្នក តាមដានអាន ជាមួយយើងខ្ញុំ ទាំងអស់គ្នា !!