Why can't I search for.html files in attachments?

Since the indexing uses the <title> tag of the html attachment, you can only search for words present in the body of the attachment or by the <title> tag.