html code -> non-compliance with W3C
-
Recently, I wanted to see in the W3C validator how my blog code looks like in terms of compliance of the html code with the W3C guidelines.
Unfortunately, WordPress and many plugins generate a lot of warnings and errors in this regard. Also Jetpack has a lot to fix here.
How can this be disabled from the code generated in the jetpack-carousel.php file:
data-image-meta=”{“aperture”:”0″,”credit”:””,”camera”:””,”caption”:””,”created_timestamp”:”0″,”copyright”:””,”focal_length”:”0″,”iso”:”0″,”shutter_speed”:”0″,”title”:””,”orientation”:”0″}” The W3C validator displays errors for this section – Please check e.g. the website: https://blog.tripsoverpoland.pl/2023/07/26/malbork-15-06-2023-zmiany-wokol-zamku-i-w-panoramie-zza-nogatu/
Error: Attribute
aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}"
not allowed on elementimg
at this point.From line 36, column 9638; to line 38, column 212
age/webp"><img width="1280" height="674" src="https://blog.tripsoverpoland.pl/wp-content/uploads/2023/07/23_Ma…ation":"0"}" data-image-title="Malbork 15.06.2023" data-image-description="<p>Malbork 15.06.2023</p>?" data-image-caption="<p>Malbork 15.06.2023</p>?" data-medium-file="https://blog.tripsoverpoland.pl/wp-content/uploads/2023/07/23_Malbork_003-650x34…large-file="https://blog.tripsoverpoland.pl/wp-content/uploads/2023/07/23_Malbork_003-1000x527.jpg"></pict
in source code:<picture><source srcset="https://blog.tripsoverpoland.pl/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2023/07/23_Malbork_003.jpg.webp 1280w, https://blog.tripsoverpoland.pl/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2023/07/23_Malbork_003-650x342.jpg.webp 650w, https://blog.tripsoverpoland.pl/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2023/07/23_Malbork_003-1000x527.jpg.webp 1000w, https://blog.tripsoverpoland.pl/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2023/07/23_Malbork_003-150x79.jpg.webp 150w, https://blog.tripsoverpoland.pl/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2023/07/23_Malbork_003-768x404.jpg.webp 768w" sizes="(max-width: 1280px) 100vw, 1280px" type="image/webp"><img width="1280" height="674" src="https://blog.tripsoverpoland.pl/wp-content/uploads/2023/07/23_Malbork_003.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image webpexpress-processed" alt="Malbork 15.06.2023" decoding="async" style="object-fit:cover;" fetchpriority="high" srcset="https://blog.tripsoverpoland.pl/wp-content/uploads/2023/07/23_Malbork_003.jpg 1280w, https://blog.tripsoverpoland.pl/wp-content/uploads/2023/07/23_Malbork_003-650x342.jpg 650w, https://blog.tripsoverpoland.pl/wp-content/uploads/2023/07/23_Malbork_003-1000x527.jpg 1000w, https://blog.tripsoverpoland.pl/wp-content/uploads/2023/07/23_Malbork_003-150x79.jpg 150w, https://blog.tripsoverpoland.pl/wp-content/uploads/2023/07/23_Malbork_003-768x404.jpg 768w" sizes="(max-width: 1280px) 100vw, 1280px" data-attachment-id="337183" data-permalink="https://blog.tripsoverpoland.pl/23_malbork_003/" data-orig-file="https://blog.tripsoverpoland.pl/wp-content/uploads/2023/07/23_Malbork_003.jpg" data-orig-size="1280,674" data-comments-opened="1" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}" data-image-title="Malbork 15.06.2023" data-image-description="<p>Malbork 15.06.2023</p>
?
" data-image-caption="<p>Malbork 15.06.2023</p>
?
" data-medium-file="https://blog.tripsoverpoland.pl/wp-content/uploads/2023/07/23_Malbork_003-650x342.jpg" data-large-file="https://blog.tripsoverpoland.pl/wp-content/uploads/2023/07/23_Malbork_003-1000x527.jpg"></picture>
The page I need help with: [log in to see the link]
- The topic ‘html code -> non-compliance with W3C’ is closed to new replies.