script ... /script syntax
Syntax script
- start tag required: <script>
- end tag required: <⁄script>
Examples script syntax
Syntax1: Valid adding script statements in page (INLINE script)
Syntax2: Valid linking to an external script file (IMPORTED script)
1 2 3 4 5 6 7 8 9 10 11 12 | <!doctype html> <> <> <>...</> <> </> </> <> </> </> |
1 2 3 4 5 6 7 8 9 10 | <!doctype html> <> <> <>...</> <></> </> <> </> </> |
Video demonstration script element, syntax
HTML5 script syntax, Tutorial
min | video details |
---|---|
00:05 | script element syntax |
00:14 | script element has: |
00:14 | - a start tag |
00:16 | - and an end tag |
00:19 | both required |