vs code html代码没报错能运行,但是代码显示红色,怎么改回去呀

img

我点开很久之前的html文件,就显示红色了,看着很不舒服,百度了也没啥解决方法,代码肯定是没错的
就来csdn上面问问大家

Do not use this attribute, as it has been deprecated. The

element should be styled using CSS. Set margin-left and margin-right to auto or margin to 0 auto to achieve an effect that is similar to the align attribute.
Prior to Firefox 4, Firefox also supported the middle, absmiddle, and abscenter values as synonyms of center, in quirks mode only.

原因是它被弃用了

这应该是软件的问题,我刚才试了一下,和你的一样

应该是属性建议写在style里面,所以才报红