/    Sign up×
Community /Pin to ProfileBookmark

Weird bug for img tag in VS Code

I have those weird[upl-image-preview url=https://www.webdeveloper.com/assets/files/2019-08-06/1565113438-965996-rtgfrbfr.png]
“bugs” on img tag in HTML. I did not have them just 1h before they also don’t do anything bad. Everything works normal but it’s red everywhere.
What’s going on?

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@VITSUSAAug 07.2019 — Please check syntax error :)
Copy linkTweet thisAlerts:
@AppsmavenAug 08.2019 — Maybe this error is coming because of extension error
Copy linkTweet thisAlerts:
@SempervivumAug 08.2019 — Does VS code show a description when hovering? For an img tag the alt attribute is mandatory:
Error: An img element must have an alt attribute[/quote]
I'm fairly shure that this is what VS code is complaining about.

I'm using VS code either but it doesn't show this error. Maybe you have a different extension for validating.
Copy linkTweet thisAlerts:
@codyhillauthorAug 08.2019 — @Sempervivum#1607326 I have the latest version and the error is telling me that the alt attribute is mandatory and also space is invalid. But I did not have the alt and I also had imgs with space in the name and that wasn't a problem. But errors appeared only from 2 days ago and I am working on this project for like a week.
Copy linkTweet thisAlerts:
@SempervivumAug 08.2019 — @RaulRogojan#1607327 errors appeared only from 2 days ago and I am working on this project for like a week.[/quote]VS code updates automatically. Maybe the behaviour of the validation has changed due to an update.
Copy linkTweet thisAlerts:
@codyhillauthorAug 08.2019 — @Sempervivum#1607329 Probably but I updated VS code a week ago. But maybe it also had a small update
×

Success!

Help @codyhill spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...