Search

Reinhart Previano K.

Do you love to Ctrl-K, Ctrl-/, or / ? Now you can do three of them (>_ )!

No results so far...

Contact Information

Blog posts from Q&A (qa)


Q&A: What is the most visited website in the world that makes no use of JavaScript?

Even though current popular websites are mostly using JavaScript, the first webpage in the world on http://info.cern.ch/hypertext/WWW/TheProject.html is just containing a simple HTML text with links. There are no CSS and JavaScript scripts, no images, no HTML5, no Java Applets/Flash and Silverlight Objects, and even no PHP at all. The webpage is "ugly" due to no styling on text, headers and hyperlinks (unlike Google websites). Even though the site is "ugly", but it's a good example of a popular site without any JavaScript.

Q&A: How do you get plain text from HTML?

You can view the plain text from any of HTML tags: <p>, <h1>, <h2>, <h3> <h4>, <h5>, <h6>, <td> (inside a <tr> in a <table>), <th> (inside a <tr> in a <table>) and all text inside a tag are texts. Some of the text may disappear from the webpage. This is done by CSS, JS and other scripts. Some of the text may changed by a script (such as JavaScript). You can see the final results in the web inspector. Some of the texts are images. This cannot be converted unless the image is converted by some kind of OCRs and Online OCRs. Some of the texts may be hidden due to another object blocking it. For example, a text is located inside the <div> tag but blocked by other elements inside the tag. Another example is when the text inside the HTML5 <video> tag is hidden because the tag shows content in a video format. Some images have hidden text, too. This can be located by the attribute alt="..." inside the <img> tag. Texts that are inside of an applet/object that requires plugins (such as Java, Flash and Silverlight) may not be copied completely as text. Meanwhile, you can still obtain the plain text from HTML via Reading View feature that is available on some browsers such as Android Stock browser, Firefox and Safari. There may be extensions available for Chrome and other browser's users.

Q&A: What is the best HTML5 eReader around?

Firefox's PDF.JS on http://mozilla.github.io/pdf.js/ is a good HTML5 eReader. It supports .pdf reading and can be installed without git. If you know how to edit the CSS codes there you can style your viewer. The disadvantage here is that there's a problem when copying text from documents and not all older and mobile browsers are supported. Edit March 22, 2017: The select and copy problem mentioned earlier has being improved recently. Google Chrome's pdfium on https://code.google.com/p/pdfium/ is a HTML5 eReader that has simple user interface and can read and copy .pdf document. The disadvantage here is that to install you need to use git to install.



Reinhart Previano Koentjoro
Reinhart Previano Koentjoro
Citra Manggala Dirgantara
Citra Manggala Dirgantara

A Reinhart company

Products

Company