+ 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

19th Apr 2017, 7:15 PM
Alex Snaidars
Alex Snaidars - avatar
24 Antworten
+ 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
19th Apr 2017, 7:17 PM
Maz
Maz - avatar
+ 10
@Alexander, alt attribute in your code, works well with me.
19th Apr 2017, 7:19 PM
Maz
Maz - avatar
+ 9
@Alexander Yeah! I'm sure, i can see correctly all text.
19th Apr 2017, 7:26 PM
Maz
Maz - avatar
+ 9
@Andrey If i remove the resize, i can see it... https://ibb.co/deQTWQ
19th Apr 2017, 7:35 PM
Maz
Maz - avatar
+ 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 ~_~
19th Apr 2017, 7:43 PM
Maz
Maz - avatar
+ 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).
19th Apr 2017, 7:49 PM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
+ 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.
19th Apr 2017, 7:41 PM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
+ 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)
19th Apr 2017, 7:17 PM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
+ 3
То что в скобках - оно у тебя в "голове", а там только "title" ну и всякие линки и меты должны быть :)
19th Apr 2017, 7:21 PM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
+ 3
I can not see it too.
19th Apr 2017, 7:23 PM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
+ 3
Give that image a size. It's zero x zero now. Hmm... still no text...
19th Apr 2017, 7:25 PM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
+ 3
@Maz alt = "Tried to load an image from phone storage. Died trying."
19th Apr 2017, 7:25 PM
Alex Snaidars
Alex Snaidars - avatar
+ 3
@Maz can you upload screenshot somewhere and post a link to it here?
19th Apr 2017, 7:29 PM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
19th Apr 2017, 7:35 PM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
+ 3
I haven't seen a text when there were no size attributes too...
19th Apr 2017, 7:37 PM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
+ 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?
19th Apr 2017, 7:45 PM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
+ 2
Ок спс, я-то думал че это оно отображается у меня, обычно же сперва лист пустой по дефолту здесь но название страницы есть
19th Apr 2017, 7:24 PM
Alex Snaidars
Alex Snaidars - avatar
+ 1
@Maz Im wondering why alt doesnt work.
19th Apr 2017, 7:18 PM
Alex Snaidars
Alex Snaidars - avatar
+ 1
@Andrey I followed the tutorial. Img is in the body there.
19th Apr 2017, 7:20 PM
Alex Snaidars
Alex Snaidars - avatar
+ 1
@Maz That's curious. Are you sure that exactly the same as in the alt sentence is displayed? I cannot see it...
19th Apr 2017, 7:22 PM
Alex Snaidars
Alex Snaidars - avatar