Why isn't doctype declared in my liquid.themes files?

In my liquid.themes files its been there as shown below. Why isn’t it declared?

-----‐-----------

{% render ‘breadcrumbs’ %}
{% capture content %}

Where are you seeing this warning? Check what’s getting output in view-source HTML.

https://prnt.sc/126twcu

And its from SEM Rush report

So SEMrush audit/report only looks at static content. View-source & inspect element are different in Chrome. First is static content, second is rendered DOM.

^screenshot is of view-source.

It looks like you have two tags:

I’m guessing that SEMrush is just flagging (2). Ideally you would only have a single opening tag so not sure what’s happening there, but try cleaning that up.

Also not related but somehow there is some JSON-LD which has been added outside of the tag. More correct to place this within the head or body.

Ok ill put those script under the doctype.

For the 2nd html, that was added after the seo report. I thought you were supposed to have it as this https://www.w3schools.com/tags/tag_doctype.asp

Just trying to guess what is tripping up SEMrush because their docs are not super clear:

But it looks like you have doctype dec correct anyway, so I wouldn’t worry too much about what SEMrush is saying there. Maybe try reach out to SEMrush support out of curiosity if you wanna find out how they are parsing it and flagging a warning.