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:
- Add new user in Ubuntu Linux using Terminal Command - Ubuntu
- Fix Maven: Could not find artifact in central - Java
- Drop table using Java JDBC Template - Java
- Android : Execute some code after back button is pressed - Android
- Javascript convert text case from uppercase to lowercase - JavaScript
- Search text in Eclipse Console logs - Eclipse
- Locate Notepad++ unsaved files backup location - NotepadPlusPlus
- How to add Conda Environment To Jupyter Notebook - Python