Why does the document type invalidate the css style?

header declaration

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >

Why do some css styles fail?

after changing to html5 returned to normal.

Oct.26,2021

some styles do not conform to the DTD XHTML 1.0 Strict standard
Menu