loading assets in ionic react 1

loading assets in ionic react

loading assets in ionic react 2

Here is what the above code is Doing:
1. We’re using the tag to display an image.
2. The src attribute is used to specify the path to the image.
3. The alt attribute is used to specify an alternate text for an image, if the image for some reason cannot be displayed.
4. The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).
5. It is good practice to specify the alt attribute for each image.
6. The alt attribute can be empty, but it is better if you specify a useful text.

Similar Posts