As we have previously discovered, all the elements of a web page are enclosed in so-called tags. Comments, not being a visible element, are an exception.
To enter a comment you will need to type . Remember that comments are only visible to webmasters or those who view the source of the page and are not visible to ordinary users.
To insert an image we must use the (image) tag which has the following attributes:
- alt: textual label to show in case of image loading problems. It is also used by software for blind people to help them understand what the image represents.
- src: contains the URL or the source path of the image, it can also be found on other sites and / or servers, not necessarily yours
- height: height of the image in pixels
- width: width of the image in pixels
We will see other attributes such as maps later as they are particularly complex.
Now let’s create our web page with an image and a comment, remembering what we learned previously.
As in the previous episodes of this column, all the resources you find here can be downloaded and used for free, but remember to mention us and to mention the author, Andrea Zanin in your project. Remember to use the same Creative Commons licenses as iCrewPlay Tech. You can download images.html on andrezan.com from this link.