Word wrap cannot be indented when editing HTML files in vim

  question, vim

Vim can’t automatically indent line breaks when editing HTML files. I have to indent myself manually every time I wrap a line. I have been searching the internet for a long time and can’t find the answer. So I came to you for help.
Added to vimrc:

filetype plugin indent on
 set autoindent
 set smartindent

In other types of files (for example, PHP and JS can automatically indent and line feed indent), but it will become invalid in HTML files. Is there anyone who has the same problem as me? Solving. . .

filetypeIs it set?

filetype plugin indent on