Skip to content
Related Articles

Related Articles

Improve Article

HTML | <ul> type Attribute

  • Last Updated : 10 May, 2021
Geek Week

The HTML <ul> type Attribute is used to specifies that which kind of marker used in the list.
Note: The ul type attributes are not supported by HTML 5.
Syntax:

<ul type="disc | circle | square">

Attribute Values:

  • disc: Default. A filled circle.
  • circle: An unfilled circle
  • square A filled square.

Example 1: 

html




<!DOCTYPE html>
<html>
 
<head>
    <title>HTML ul type attribute</title>
</head>
 
<body>
    <h1>GeeksforGeeks</h1>
     
    <h2>HTML ul type attribute</h2>
     
     
<p>GeeksforGeeks courses List:</p>
  
    <ul>
        <li>Geeks</li>
        <li>Sudo</li>
        <li>Gfg</li>
        <li>Gate</li>
        <li>Placement</li>
    </ul>
</body>
 
</html>                    

Output:



Example 2: 

html




<!DOCTYPE html>
<html>
 
<head>
    <title>HTML ul type attribute</title>
</head>
 
<body>
    <h1>GeeksforGeeks</h1>
     
    <h2>HTML ul type attribute</h2>
     
     
<p>GeeksforGeeks courses List:</p>
  
    <ul type="square">
        <li>Geeks</li>
        <li>Sudo</li>
        <li>Gfg</li>
        <li>Gate</li>
        <li>Placement</li>
    </ul>
</body>
 
</html>                    

Output:

Supported Browsers: The browser supported by HTML <ul> Type attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera

 

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.




My Personal Notes arrow_drop_up
Recommended Articles
Page :