Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you create a web page for reader mode?

Tags:

html

css

What do I do to take advantage of Reader Mode in browsers to present a simplified, cleaner version of a web page?

I've used Google looking for information on how a page is coded or otherwise set up for reader mode and I have not found anything. Is there a document or web page somewhere that explains reader mode and how to set up a page which can take advantage of it?

like image 922
SimonT Avatar asked Dec 14 '17 21:12

SimonT


2 Answers

There are no standards for how reading mode works, and it works quite different from browser to browser. You can help ensure reading mode works well with your sites by sticking to conventions for your document title, and providing certain metadata elements. I’ve documented this in detail here.

like image 109
Daniel Avatar answered Nov 15 '22 08:11

Daniel


In theory: Do nothing.

Site authors generally don't like Reader mode - it hides their adverts, and throws away the design. It is designed to work in spite of sites and not require specific effort on their parts.

That said, it is more likely to work well when given high quality, well-structured markup.

Write valid HTML. Make use of semantic elements such as <main>, <nav>, <header>, <footer>, <h1-6> and so on.

like image 38
Quentin Avatar answered Nov 15 '22 08:11

Quentin