0
Can we insert javascript coding into an inline element with display:block ?
4 ответов
+ 1
Why didn't you try before asking? Anyway you can insert any block element inside another one.
Look at this code: https://code.sololearn.com/WMQ32i1Yyr60/?ref=app
The difference between inline and block is that the former displays two siblings on the same line, whereas the latter displays them on two different lines.
0
What do you mean? You can insert the script tags anywhere.
0
Because, the theory says that within an inline element in CSS with display property as "block" we cannot instert other block element and I am wondering if a <script></script> coding is considered as a block level element.
0
Asking is another option. Thank you very much!