سؤال

HI I want to ask if I create a custom template phtml file. inside the coding do I need to include below 2 tags?

<html></html> and <body></body>
هل كانت مفيدة؟

المحلول

You don't need to this tags are add

you can start <div> or else any <section> or rest elements

نصائح أخرى

No, you don't really need that tags in your custom phtml.

As phtml will be called in container and container is already placed in <body> tag.

You can use <div> if you want to add html in phtml file.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top