📜  HTML<legend>标签

📅  最后修改于: 2021-11-08 06:28:59             🧑  作者: Mango

图例标签用于定义子内容的标题。图例元素是父元素。此标签用于定义

元素的标题。

句法

 Text 

示例 1:

html


    
    
    
        

GeeksforGeeks

        HTML Legend Tag         
            
                                 STUDENT::                                                   

                                                  

                                                  

                                                  

                                              
        
    


html


    
        
    
    
        
GeeksforGeeks
        

HTML Legend Tag

        
            
                                 STUDENT:                                                   
                                                  
                                                  
                                                  
                                              
        
    


输出:

示例 2:使用 CSS 属性设计图例标签样式。

html



    
        
    
    
        
GeeksforGeeks
        

HTML Legend Tag

        
            
                                 STUDENT:                                                   
                                                  
                                                  
                                                  
                                              
        
    

输出:

支持的浏览器:

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