As a web developer while designing pages, you may want to disable autocomplete in input fields, especially of HTML form elements. To turn of autocomplete in HTML field by adding autocomplete=off as an attribute,
<input type="text" id="myField" autocomplete="off" />
If you want to turn off autocomplete for all the elements in the form you can add autocomplete off option on the form element itself as shown in below example,
HTML Code Example:<!DOCTYPE html>
<html>
<body>
<form action="/loginpage.php" autocomplete="off">
<label for="uname">Username</label>
<input type="text" id="uname"><br><br>
<label for="pass">Password:</label>
<input type="text" id="pass"><br><br><br>
<input type="submit">
</form>
</body>
</html>
Comments:
- Further comments disabled!
More Posts related to Html,
- How to remove old 404 pages ulrs from Google crawler
- W3 HTML validator warning Unable to Determine Parse Mode
- Comprehensive 256 Ascii code table with Html Hex IBM Microsoft Key
- Align html element at the center of page vertically and horizontally
- HTML Images - Attributes and Formats
- 9 Border to DIV Element in HTML Examples
- Create HTML button that looks like a href hyperlink
- What is the doctype for HTML5?
- Simple Crossword Puzzle example using Pure HTML, CSS and JavaScript
- How to make a div tag clickable
- The author stylesheet specified in tag script is too long - document contains 21759 bytes whereas the limit is 10000 bytes
- W3 : character data is not allowed here html validation error
- How to set background color in HTML page?
- Auto Refresh Webpage after every x Second or Minute using Meta Tag?
- Default speed of Marquee tag : SCROLLAMOUNT
- Get HTML table td, tr or th inner content value with id or name attribute
- How to add multiple spaces between html page text
- Chessboard with pieces using pure HTML and CSS
- How to turn off autocomplete in input fields in HTML Form
- remove div vertical scroll
- Fibonacci series from 1 to 500 table
- Remove Html head and body tags from ckeditor source
- reCaptcha Verification expired. Check the checkbox again
- HTML5 CSS3 Color Codes List
- All directional arrows codes for HTML
More Posts:
- [macOS Sonoma] Python3 - xcode-select: note: No developer tools were found requesting install - Python
- How to Check for Not None in Python Programming - Python
- How to view App Licenses Assigned to You on Windows 365 Account - Windows
- Mac: Change Screenshot Location - MacOS
- SharePoint Designer Workflow error - Coercion Failed: Input cannot be null for this coercion - SharePoint
- [Java] Error: Unmappable character for encoding UTF-8. Save could not be completed. - Java
- Git Commit - Author identity unknown, Please tell me who you are email - Git
- How to take a screenshot on a Mac - updated for Ventura 13 [updated 2023] - MacOS