HTML files
HTML files

HTML (Hypertext Markup Language) is the usual markup for web documents. HTML has evolved; the files provided are in validated XHTML 1.1 with CSS 2.3 format. HTML files are available in a wide range of user-selected formats. They have been pretty-printed for ease of editing and include the Documentary Hypothesis markings.

HTML files can be obtained in one of 3 ways:

  1. When viewing biblical text press the "HTML" button at the bottom of a text page. The file will be displayed by the browser in a separate window and can be saved via the browser's "Save Page as ..." command. The HTML file will have the Layout, Content, font information, and Documentary Hypothesis markings of the original text.
  2. HTML files for entire biblical books can be obtained by clicking on the book name on the Home page. The middle row of the resulting page offers a table of available formats. Click on the "HTML" item to view the entire book in HTML format.
  3. HTML files can also be obtained from the Server.html by entering a query URL into a browser address bar. Many parameters beyond those selectable in the browser display are possible as shown below. See the Servers page for more information about using the Server.html server.

User-selected formatting with the Server.html server:

The Server.html accepts many (22) text formatting parameters following the citation and separated by ampersands (&). No blanks are permitted between an & and a parameter name or between a parameter name and around the '=' sign. Blanks are permitted only in the title values. For example,
https://tanach.us/Server.html?Deut26:5-9&content=Vowels&font=24&Brief=1&t1=Title with blanks&trailinglabel=1& lineheight=200
brings up HTML text with vowels in 24 point font in a compact format with a text label, a trailing citation label, and double line spacing. Be alert in writing HTML documents that the ampersand must be written as & to avoid confusion with HTML constants. A complete list of HTMLServerParameters is available. Once a satisfactory set of URL parameters is found, the URL can be bookmarked; other citations can by obtained by editing the citation element of bookmarked URL in the browser's address window.

An easy way to set Server.html parameters:

A lot of parameters are available. Here's an easy way to get started in setting them.

Display some Hebrew text with the Tanach.us site and adjust the pulldown lists to your favorite settings. Press the button labelled "HTML" at the bottom center of the page. An HTML page of the text from the Server will appear in a separate window with Brief=0 set automatically. The text will have the same settings as you specified in the pulldown lists. Edit the URL in the address bar of your browser to add or change formatting, i.e. add "&height=300" for triple line spacing. Set Brief=1 to eliminate the usual header.

Creating HTML documents for local, standalone purposes.

As HTML documents, the Server.html results can be saved locally from a browser, then edited with a text editor or viewed without the internet. For the Firefox browser, the command "Save Page As ..." requires that you select " Save As: Web Page, HTML only" from the pulldown list. The resulting local file can be viewed without an internet connection. Alternatively, the page source can be viewed with the browser's "View:Page Source" menu item. The file contains comments locating the Hebrew text. The style "span.hebrewtext" in the HTML file can be modified locally to achieve any text format.

Local files do not have access to the site components indicated by url(..) markers. These include the web font @font-face src: url(..)s and the body background-image: url(..). Adding a full http://tanach.us/.. path to these urls does not circumvent the problem due to the modern CORS, "Cross-Origin Resource Sharing", browser restrictions. If these markers are not changed the displayed font will be replaced by a local font and no background image will appear.

  27.3