html ... /html syntax
Syntax html
- start tag optional: <html>
- end tag optional : <⁄html>
Both html tags may be omitted if the first thing inside the element is not a comment, or if the element is not followed by a comment.
Examples html syntax
Valid Syntaxes: 1, 2, 3, 4
1 2 3 4 5 6 7 8 9 | <!doctype html> <> <> <⁄> <> <⁄> <⁄> |
1 2 3 4 5 6 7 8 9 | <!doctype html> <> <> <⁄> <> <⁄> |
1 2 3 4 5 6 7 8 9 | <!doctype html> <> <⁄> <> <⁄> <⁄> |
1 2 3 4 5 6 7 8 9 | <!doctype html> <> <⁄> <> <⁄> |
Video demonstration html element, syntax
HTML5 html syntax, Tutorial
min | video details |
---|---|
00:10 | syntax1 ok: <html>..<⁄html> |
00:14 | syntax2 ok: <html>.. |
00:19 | syntax3 ok: .. |