📜  如何使用 HTML 添加元素的描述列表?

📅  最后修改于: 2021-10-31 05:28:40             🧑  作者: Mango

要定义元素的描述,使用

标签。此标签与
标签一起使用。在 HTML4.1 中,它定义了定义列表,而在 HTML5 中,它定义了描述列表。

句法:

Contents...

示例 1:



  

    
        How to add description list
        of an element using HTML?
    
  
    

  

    

GeeksforGeeks

       

        How to define a description/value         of a term in a description list     

       
        
GeeksforGeeks
        
A Computer Science Portal For Geeks
    
           
        
C++
        
A Object oriented language.
        
JavaScript
        
A client side scripting language.
    
  

输出:

示例 2:



  

    
        How to add description list
        of an element using HTML?
    
  
    

  

    

GeeksforGeeks

    
        

            How to define a description/value             of a term in a description list         

    
       
        
Geeks Classes
        
            It is an extensive classroom programme             for enhancing DS and Algo concepts.         
        
           
Fork Python
        
            It is a course designed for              beginners in python.         
           
        
Interview Preparation
        
            It is a course designed for              preparation of interviews in              top product based companies.         
    
  

输出:

支持的浏览器:

  • 谷歌浏览器
  • IE浏览器
  • 火狐
  • 歌剧
  • 苹果浏览器