0
Why is the tag href=" " empty
<a href=" "></a>
4 Respuestas
+ 4
When the href is empty it takes you nowhere ...
the href attribute determines what you want to display, after hyperlinking with the <a> ... e.g
<a href = "https://www.sololearn.com/html /> Sololearn </a>
This example takes you to Soolearn web, and html page in it..
+ 3
ᴛʜᴇ ᴀʟᴛ = "ᴅᴏɢ ᴘʜᴏᴛᴏ" ᴘʀᴏᴠɪᴅᴇs ʙᴇᴛᴛᴇʀ ɪɴғᴏʀᴍᴀᴛɪᴏɴ ғᴏʀ sᴄʀᴇᴇɴ ʀᴇᴀᴅᴇʀs ᴀɴᴅ sᴇᴀʀᴄʜ ᴇɴɢɪɴᴇs..
ғᴏʀ ᴇxᴀᴍᴘʟᴇ, ɴᴏᴛ ᴇᴠᴇʀʏᴏɴᴇ ᴇɴᴀʙʟᴇs ɪᴍᴀɢᴇs ᴏɴ ᴛʜᴇɪʀ ᴄᴏᴍᴘᴜᴛᴇʀs, sᴏ ɪғ ᴛʜᴀᴛ ɪᴍᴀɢᴇ ғᴀɪʟs ᴛᴏ ʟᴏᴀᴅ, ᴛʜᴇ ᴛᴇxᴛ ɪɴsɪᴅᴇ ᴛʜᴇ ᴀʟᴛ ="ᴅᴏɢ ᴘʜᴏᴛᴏ" ᴛᴇʟʟs ᴛʜᴇ ᴜsᴇʀ ᴛʜᴀᴛ ᴛʜᴇʀᴇ ɪs ᴀ ᴅᴏɢ ᴘʜᴏᴛᴏ ᴛʜᴇʀᴇ ᴇᴠᴇɴ ɪғ ɪᴛ ғᴀɪʟs ᴛᴏ ʟᴏᴀᴅ...
ʙᴇsᴛ ᴘʀᴀᴄᴛɪᴄᴇs, ᴀʟᴡᴀʏs ᴍᴀᴋᴇ ᴜsᴇ ᴏғ ᴛʜᴇ ᴀʟᴛᴇʀɴᴀᴛᴇ
+ 2
It is empty because you haven't referenced (hyperlinked) it yet
0
what about alt=""