In many articles imported from my development channel on Facebook Instant Articles, I get the error message "HTML element does not contain text: avoid including empty HTML elements." This appears to be related to images in drawings without other content. Can someone tell me what he is complaining about? My markup seems to fit Facebook's own example of a simple image inside a picture tag, so what's the problem?
, Facebook <p>, , . , Facebook, <p></p>:
<p>
<p></p>
, . . . ( , , <p>.) :
FB .
, , <p><img src="..."></p>. FB , <p> .
<p><img src="..."></p>
, <img >:
<img >
<figure> <img src="https://test.files.wordpress.com/2015/07/selleck1.jpg?quality=60&strip=all /> </figure>
, Facebook XML (!), .
- <img> ( XHTML, HTML5).
<img>
PIA for wordpress sites, all this content happens between tags
and it ultimately generates one <p> empty <\p>. To do this, you need to go through your content and remove all these empty tags.
<p> empty <\p>
Just open the warning tagged article in edit and update mode. This will be fixed.
Source: https://habr.com/ru/post/1620168/More articles:mux klv data from h264 to mpegtsmux - gstreamerF # в непосредственном окне - debuggingHow to show and hide a block of code in AngularJS - javascriptJAXB does not create enumeration for enumeration - javaMicroservices: db graph-based application decomposition - graph-databasesEfficient way to store and retrieve custom CSS for personalized page visuals - htmlThe property of invoking an EE object for a csv file changes without spaces to have spaces - powershellHow to pass dynamic variable to authorize attribute class in asp.net mvc? - c #SQL - selection of values of several keywords from one field - sql-serverDelete leading zeros in CSV file only from int values - powershellAll Articles