C#.NET Google Microsoft VB.NET Visual Studio W3C Windows 7 Windows 8 / 8.1 Windows Server 2008 Windows Server 2012 Windows Vista Windows XP

W3C validator – “there is no attribute “AutoComplete””

This post contains the steps how to fix the error “there is no attribute “AutoComplete””

When you try to validate your page with W3C Markup Validation Service at the line when you have a TextBox with AutoComplete attribute like this:

<asp:TextBox ID="myTextBox" runat="server" AutoComplete="Off" />

show the following error message:

there is no attribute “AutoComplete”


<asp:TextBox ID="myTextBox" runat="server" AutoCompleteType="None" />

Did my solution solve your problem? Leave a reply.

5 replies on “W3C validator – “there is no attribute “AutoComplete”””

nopes…. it now shows there is no attribute “AutoCompleteType”
But i found this :


Autocomplete is not XHTML compliant. Autocomplete feature is platform and browser dependent. If attribute is missing then browser behavior will be as defined in the client OS. According to Autocomplete is Microsoft extension to HTML. Therefore, it is impossible to generate XHTML compiant file with this attribute. If you want XHTML compliant output avoid setting attribute to ON or OFF and rely on default OS behavior. Most browsers support the attribute (including Mozilla) but it does not make attribute XHTML compliant.

Hi, thank you for your comment. I verified and the webpage where I have applied my solution using “W3C Markup Validation Service” is Valid “XHTML 1.0 Transitional”.

oh is it??? I don’t really know why its showing the same error this time for “AutoCompleteType” 😐

I have also tried creating a dummy page in my local with the same content and then uploading it to check.. the same error is being shown 🙁

Try this sample. Create a Test.aspx page with the following lines:

[sourcecode lang=”asp”]
<%@ Language=C# %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " ">

<html xmlns=" ">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form id="MyForm" runat="server">
<asp:TextBox ID="myTextBox" runat="server" AutoCompleteType="None" />

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.