Change language

HTML | & lt; li & gt; Value attribute

Syntax:
  • list items
  • Attribute value: This attribute contains a single numbervalue that is used to indicate the value of the list items.Example 1:This example uses the value attribute
  •  to create a list of elements. < html > < head > < title > HTML list item value Attribute < / title > < / head > < body > < center > < h1 style = "color: green;" > GeeksforGeeks < / h1 > < h2 > HTML list item value Attribute < / h2 > < p > Sorting Algorithms < / p > < / center > < ol style = "margin-left: 42%" > < li value = "50" > Merge sort < / li > < li > Quick sort < / li > < li > Insertion sort < / li > < / ol > < / body > < / html > Output: Example 2:This example uses the value attribute
  •  to create a list of elements. < html > < head > < title > HTML li value Attribute < / title > < / head > < body > < h1 style = "color: green;" > GeeksforGeeks < / h1 > < h2 > HTML li value Attribute < / h2 > < p > Sorting Algorithms < / p > < ol type = "A" > < li value = "6" > Merge sort < / li > < li > Quick sort < / li > < li > Insertion sort < / li > < / ol > < / body > < / html > Output: Supported browsers:the browser supported by the
  • value attribute are listed below:
    • Apple Safari
    • Google Chrome
    • Fire Fox
    • Opera
    • Internet Explorer
  • Shop

    Best laptop for Sims 4

    $

    Best laptop for Zoom

    $499

    Best laptop for Minecraft

    $590

    Best laptop for engineering student

    $

    Best laptop for development

    $

    Best laptop for Cricut Maker

    $

    Best laptop for hacking

    $890

    Best laptop for Machine Learning

    $950

    Latest questions

    NUMPYNUMPY

    psycopg2: insert multiple rows with one query

    12 answers

    NUMPYNUMPY

    How to convert Nonetype to int or string?

    12 answers

    NUMPYNUMPY

    How to specify multiple return types using type-hints

    12 answers

    NUMPYNUMPY

    Javascript Error: IPython is not defined in JupyterLab

    12 answers

    News

    Wiki

    Python OpenCV | cv2.putText () method

    numpy.arctan2 () in Python

    Python | os.path.realpath () method

    Python OpenCV | cv2.circle () method

    Python OpenCV cv2.cvtColor () method

    Python - Move item to the end of the list

    time.perf_counter () function in Python

    Check if one list is a subset of another in Python

    Python os.path.join () method