Regarding link element

Is it ok to not to include “type” attrribute in “link” element?

It’s good practise to include the type attribute, but it isn’t obligatory.

If you omit the type attribute, the browser will make an educated guess at the content type by looking at the rel attribute instead. So it will assume the type is text/css where the rel attribute is stylesheet , for example.

In most cases, you can safely omit type without any negative consequences, but it’s a good idea to specify it to avoid problems in the future.

Read more: https://html.com/attributes/link-type/#ixzz6LlkKqIEa

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.