Well, the input automatically gets an id which is the name of the
field prefixed by 'id_', so you can use that, or you can add a class
value when you declare the field:
def MyForm(forms.Form):
myfield = forms.CharField(widget=forms.TextInput(attrs=
{'class':'myclass'}))
--
DR.