开发者

how to find img element who not have alt attribute in Visual studio

开发者 https://www.devze.com 2023-01-27 14:14 出处:网络
i want to find al开发者_JAVA技巧l image element who not have alt attribute means not have alt=\"\"

i want to find al开发者_JAVA技巧l image element who not have alt attribute means not have alt="" if not then how i can replace them with

Find

Replace with

i want to replace if image not have alt attribute because it is big so how i can do this in visual studio


Since alt is required attribute for img under modern schemas, visual studio should be reporting the missing ones if your doctype is set. Tested this with XHTML 1.0 Transitional, got a warning of:

Warning 5 Validation (XHTML 1.0 Transitional): Element 'img' is missing required attribute 'alt'.

0

精彩评论

暂无评论...
验证码 换一张
取 消