+ 3
[Kind of ANSWERED]Img crashed html
alt doesnt work in the img section i have copied the syntax from the tutorial... https://code.sololearn.com/WfALl5Xy6b5f/?ref=app
24 Réponses
+ 10
Because the path of src attribute is local, try to paste remote path like this:
http://www.italianosveglia.com/images/listing_photos/91641_cane_1.jpg
+ 10
@Alexander, alt attribute in your code, works well with me.
+ 9
@Alexander Yeah! I'm sure, i can see correctly all text.
+ 9
@Andrey
If i remove the resize, i can see it... https://ibb.co/deQTWQ
+ 9
@Alexander, you can't comment inside a tag for removing the attributes.
@Andrey, this is strange, maybe you are right.
My version of Android is 4.4.2 ~_~
+ 5
Yep! Tried to open that playground code in other browser and it showed me that alternative text. So it depends on browser, and somehow it's different for different devices. Luckily most desktop users use Chrome or Firefox mainly and IE/Edge or Opera sometimes... And there are still problems because of differences. (It's a hedache for every front-end designer/developer ☺) But mobile devices are...Zoo with different animals (a lot of different screens, browsers).
+ 4
So... I see only one reason here. Sololearn app uses "browser" (browser components) of Android. And what we see depends on Android version. Our browsers can not show "alt"... :-( Need to check with other users.
+ 3
1. You shouldn't place any content inside "head". :-) ("<h5><i>*Learning HTML*</i>")
2. ... wait a minute :-)
(Maz, he wants to show alt now)
+ 3
То что в скобках - оно у тебя в "голове", а там только "title" ну и всякие линки и меты должны быть :)
+ 3
I can not see it too.
+ 3
Give that image a size. It's zero x zero now. Hmm... still no text...
+ 3
@Maz
alt = "Tried to load an image from phone storage. Died trying."
+ 3
@Maz can you upload screenshot somewhere and post a link to it here?
+ 3
I haven't seen a text when there were no size attributes too...
+ 3
@Alexander Same here. But I think it can depend on (minor) versions too.I heard Samsung changes some parts of Android system. Maz of what brand is your device?
+ 2
Ок спс, я-то думал че это оно отображается у меня, обычно же сперва лист пустой по дефолту здесь но название страницы есть
+ 1
@Maz
Im wondering why alt doesnt work.
+ 1
@Andrey
I followed the tutorial. Img is in the body there.
+ 1
@Maz
That's curious. Are you sure that exactly the same as in the alt sentence is displayed? I cannot see it...