About script and scoped

Posted in: Newspaper
Post count: 1

please tell me
1, <script type = “text / javascript”> to <script>.
2, Is <style scoped> safe?

It seems that it can not be used with the specification of html5?

Post count: 20688

Hi,

Javascript code can be entered in the theme panel directly if that is what you want to do. There is a dedicated section for that
https://www.screencast.com/t/CafU3HxUxq
The code can should be entered without script tags. They will be added by the theme.

From what I can find online the scoped attribute is obsolete and should not be used, also not supported by all browsers
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
You can search for more about this online if needed.

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.