1.preparefront-endcode,metacontent-typecannotbeignored!astothexhr,statusshouldbe3<!doctypehtml></html><he…