img syntax
Syntax img
- start tag required: <img>
- has no end tag, it's a void element
Examples img syntax
1 2 3 4 5 6 7 8 9 10 11 | <!doctype html> <> <> <>...</> </> <> <> </> </> |
Video demonstration img element, syntax
HTML5 img element, syntax Tutorial
min | video details |
---|---|
00:05 | img element: syntax |
00:15 | the img element has: a start tag only: <img> no content it's a void (empty) element |