HTML | DOM Ol type Property Last Updated : 11 Jan, 2022 Comments Improve Suggest changes Like Article Like Report The DOM Ol type Property is used to set or return the type attribute in an ordered list. This attribute defines which type(1, A, a, I and i) of order you want in your list numeric, alphabetic or roman numbers. Syntax: It is used to return the type property. olObject.type It is used to set the type property. olObject.type = "1|a|A|i|I" Property Values: 1: This is the default value. It defines the list items in decimal number.(1, 2, 3, 4 .). a: It defines the list items in alphabetically ordered lowercase letters .(a, b, c, d ...) A: It defines the list items in alphabetically ordered uppercase letters.(A, B, C, D ..) i: It defines the list items in lowercase roman number order.(i, ii, iii, iv, v, vi ...) I: It defines the list items in uppercase roman number order.(I, II, III, IV, V, VI ..) Return Value: It returns a string value which represents the kind of marker used in the ordered list. Example-1: HTML Program that illustrate how to set the type Property. html <!DOCTYPE html> <html> <head> <title>dom ol type Property</title> </head> <body> <h1 style ="color:green;">GeeksforGeeks</h1> <h2 style="color:green;">DOM ol type Property</h2> <p>List of all computer Subjects are</p> <ol id="GFG"> <li>Data Structures</li> <li>Operating System</li> <li>Python programming</li> <li>DBMS</LI> <li>Computer Network</li> </ol> <button onclick="myGeeks()">Submit</button> <!-- Script to set the type of list --> <script> function myGeeks() { var x = document.getElementById("GFG").type = "a"; } </script> </body> </html> Output: Before clicking on the button : After clicking on the button : Example-2 : HTML Program that illustrate how to return the type Property. html <!DOCTYPE html> <html> <head> <title>Dom ol type Property</title> </head> <body> <h1 style ="color:green;">GeeksforGeeks</h1> <h2 style="color:green;">DOM ol type Property</h2> <p>List of all computer Subjects are</p> <ol id="GFG" type="I"> <li>Data Structures</li> <li>Operating System</li> <li>python programming</li> <li>DBMS</li> <li>Computer Network</li> </ol> <button onclick="myGeeks()">Submit</button> <p id="sudo" style="font-size:25px;color:green;"></p> <!-- Script to get the type of list --> <script> function myGeeks() { var x = document.getElementById("GFG").type; document.getElementById("sudo").innerHTML = "The type of Ordered list:" + x; } </script> </body> </html> Output: Before clicking on the button: After clicking on the button: Supported Browsers: The browser supported by DOM ol type Property are listed below: Google Chrome Internet Explorer Firefox Opera Safari Comment More infoAdvertise with us Next Article HTML DOM InputEvent data Property M manaschhabra2 Follow Improve Article Tags : Misc Web Technologies HTML HTML-DOM Practice Tags : Misc Similar Reads HTML | DOM form method Property The DOM Form method Property is used to set or returnthe value of the method attribute in the form. The method attribute is used to specify the HTTP method used to send data while submitting the form. There are two kinds of HTTP Methods, which are GET and POST. Syntax: It is used to return the metho 3 min read HTML | DOM Form name Property The DOM Form name Property is used to set or return the value of the name attribute in a form. The name attribute is required for each input field. If the name attribute is not specified in an input field then the data of that field would not be sent at all. Syntax: It is used to return the name pro 2 min read HTML | DOM Style alignSelf Property The DOM Style alignSelf property is used to set or return the alignment for a selected item inside a flexible container. Syntax: To get the alignSelf Propertyobject.style.alignSelfTo set the alignSelf Propertyobject.style.alignSelf = "auto | stretch | center | flex-start | flex-end | baseline | init 6 min read HTML DOM Input Date Object HTML Input Date object represents an <input> element with type="date", enabling users to input dates conveniently via a built-in calendar interface on web forms. Syntax: For creating a <input> element with the type ="date":var gfg = document.createElement("input") gfg.setAttribute("type 3 min read HTML DOM InputEvent data Property The InputEvent data property is used to return the character that was inserted using the event. The InputEvent data property is a read-only property and it returns a string representing the character that was inserted. Syntax:event.dataReturn Value: It returns the input data from a text field. Below 1 min read HTML | DOM Style columnSpan Property The DOM style columnspan property is used to specify how many columns an element should span across. Syntax: It return the columnSpan property:object.style.columnSpanIt set the columnSpan property:object.style.columnSpan = "1|all|initial|inherit" Property Values: 1: Default value of the element. Use 3 min read HTML | DOM Input DatetimeLocal Object The Input DatetimeLocal object is used for representing an HTML <input> element of the type="datetime-local". The Input DatetimeLocal Object is a new object in HTML5. Syntax: For creating a <input> element with the type ="datetime-local":gfg = document.createElement("input") gfg.setAttri 3 min read HTML | DOM Style transformOrigin Property Every HTML element has some position on the screen. This position is described using co-ordinate geometry using x-axis and y-axis. The HTML DOM Style transformOrigin Property used to change the position of an HTML div. It helps in both 2D and 3D transformation.Syntax: To set the transformOrigin prop 2 min read HTML DOM Input Search Object The Input Search object is used for representing an HTML <input> element of the type="search". The Input Search Object is new in HTML5. Syntax: For creating a <input> element with the type ="search":let input_field = document.createElement("input");input_field.setAttribute("type", "sear 2 min read HTML | DOM Style borderSpacing Property The DOM Style borderSpacing Property is used to set or return the spacing between the cells in a table. Syntax: To get the borderSpacing propertyobject.style.borderSpacingTo set the borderSpacing propertyobject.style.borderSpacing = "length | initial | inherit" Return Values: It returns a string val 3 min read Like