Add HTML snippet and CodePen link (#28507)

* Add HTML snippet and CodePen link

* fix: removed codepen link
pull/26026/head
Akhil Pillai 2018-12-15 01:01:04 +05:30 committed by Randell Dawson
parent 56ded4174c
commit 0164c919fd
1 changed files with 5 additions and 0 deletions

View File

@ -11,5 +11,10 @@ The main attributes of an img tag are src and alt:
Attributes are key value pairs inserted into the tag. The syntax is `<tag key1="value1" key2="value2"> </tag>` or, in case of self-closing tags, `<tag key1="value1" key2="value2" />` - notice that the pairs are separated by a space character, not by a comma.
```html
<img src="insert URL of the image" alt="Cute dog smiling">
```
### Resources
- [HTML attributes](https://guide.freecodecamp.org/html/attributes)