- HTML Tutorial
- HTML - Home
- HTML - History and Evolution
- HTML - Overview
- HTML - Editors
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Headings
- HTML - Paragraphs
- HTML - Quotations
- HTML - Comments
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Style Sheet
- HTML - CSS Classes
- HTML - CSS IDs
- HTML - Images
- HTML - Image Map
- HTML Tables
- HTML - Tables
- HTML - Headers & Caption
- HTML - Table Styling
- HTML - Table Colgroup
- HTML - Nested Tables
- HTML Lists
- HTML - Lists
- HTML - Unordered Lists
- HTML - Ordered Lists
- HTML - Definition Lists
- HTML Links
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Iframes
- HTML - Blocks
- HTML Backgrounds
- HTML - Backgrounds
- HTML Colors
- HTML - Colors
- HTML - RGB
- HTML - HEX
- HTML - HSL
- HTML Forms
- HTML - Forms
- HTML - Form Attributes
- HTML - Form Control
- HTML - Input Attributes
- HTML Media
- HTML - Video Element
- HTML - Audio Element
- HTML - Embed Multimedia
- HTML Header
- HTML - Head Element
- HTML - Adding Favicon
- HTML - Javascript
- HTML Layouts
- HTML - Layouts
- HTML - Layout Elements
- HTML - Layout using CSS
- HTML - Responsiveness
- HTML - Symbols
- HTML - Emojis
- HTML - Style Guide
- HTML Graphics
- HTML - SVG
- HTML - Canvas
- HTML APIs
- HTML - Geolocation API
- HTML - Drag & Drop API
- HTML - Web Workers API
- HTML - WebSocket
- HTML - Web Storage
- HTML - Server Sent Events
- HTML Miscellaneous
- HTML - MathML
- HTML - Microdata
- HTML - IndexedDB
- HTML - Web Messaging
- HTML - Web CORS
- HTML - Web RTC
- HTML Demo
- HTML - Audio Player
- HTML - Video Player
- HTML - Web slide Desk
- HTML Tools
- HTML - Velocity Draw
- HTML - QR Code
- HTML - Modernizer
- HTML - Validation
- HTML - Color Code Builder
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
- HTML Resources
- HTML - Quick Guide
- HTML - Useful Resources
- HTML - Color Code Builder
- HTML - Online Editor
HTML - low Attribute
The HTML low attribute indicates the upper limit of the lower range. It is also used to specify the range where the fractional value (or the value of the gauge) is considered to be a low value.
It is the upper numerical limit of the lower end of the measured range. The value of the lower attribute must be greater than the minimum value (that is, the min attribute) and less than the higher value and the maximum value (that is, high attribute, max attribute).
If it is not used within the <meter> tag or less than the minimum value, then the low attribute value will be equal to the minimum value.
Syntax
Following is the syntax of low attribute −
<meter low= "value"></meter>
Example
In the following example, we are using the low attribute with the meter tag.
<!DOCTYPE html> <html lang="en"> <head> <title>HTML 'low' attribute </title> </head> <body> <!--HTML 'low' attribute--> <p>Example of the HTML 'low' attribute</p> <label for="">Rahul makrs in English</label> <br> <meter low="70" max="100" high="90" value="78"></meter> <br> <label for="">Rahul makrs in Math</label> <br> <meter low="80" max="100" high="90" value="80"></meter> <br> <label for="">Rahul marks in Computer</label> <br> <meter low="60" max="100" high="80" value="62"></meter> </body> </html>
On running the above code, the output window will pop up displaying the meter reading on the webpage.
Example
Considering the another scenario, where we are going to run the script along with the low attribute.
<!DOCTYPE html> <html lang="en"> <head> <title>HTML 'low' attribute </title> </head> <body> <!--HTML 'low' attribute--> <p>Example of the HTML 'low' attribute</p> <label for="">Aman old marks</label> <br> <meter high="80" low="65" min="0" max="100" value="70" id='aman'></meter> <br> <br> <span id='demo'></span> <br> <br> <button onclick="Rectify()">Update marks</button> <br> <p>Click on the above button to rectify the old marks.</p> <script> function Rectify() { var l = document.getElementById('aman'); var low = l.low; l.low = 70; var res = document.getElementById('demo'); res.innerHTML = "Aman marks has been updated from " + low + " to " + l.low; } </script> </body> </html>
When we execute the above script, it will generate an output consisting of the meter reading along with a click button on the webpage. when the user clicks the button the event gets triggered and changes the meter reading.
To Continue Learning Please Login
Login with Google