I am talking about this feature in Firefox:

enter image description here

Is there any html tag for this, or can you give a block some class to designate the "main" text on the page?

The problem is that on some pages of my site the browser allows you to view the article in reading mode, but on some not.

To take the same Habr, in this article the button appears, and in this not.

    1 answer 1

    The answer is simple - observe the semantics in the HTML markup. I recommend reading about HTML5 tags. According to its standards, the main text on the page should be placed in the article tag. How this is implemented, you can see the example of my last work . The semantic markup is implemented there and the site is perfectly readable on a mobile Safari. On Windows did not check, but most likely there the principle of operation is identical.

    • article or is it still main ? - Qwertiy
    • main is the main content, and in article the article itself. - Vadizar