| Online Bible - Creating your own links |
|
If you do not wish to use our automated reference tagger, with minimal HTML skill it is easy to create links that take your website visitors to the Online Bible when clicked. So that if you reference Psalm 23, for instance, then readers can click through to read the actual text of Scripture. This is achieved using an <a> tag around the text you wish to be clickable, like this: <p>So that if you reference <a href="https://www.tbsonlinebible.com/#en_PSA_23" target="oba">Psalm 23</a>, for instance, then readers can click through to read the actual text of Scripture.</p> <a> tag formathref= attributeInside the double quote marks of the href attribute put the web address of the Online Bible. Perhaps the easiest way to get the required address for the href is to open the Online Bible, navigate to the Bible and reference required, and copy the URL from your browser's navigation bar and paste into your web code. Online Bible URLs take the following form:
These are always lowercase and comprise of 2 or 3 letters (e.g. en = English). To see which languages are supported in the Online Bible, take a look at the Bible selector. The language codes are displayed before each Bible name. The special code "xx" can be used to choose the language best suited to each user (as determined by the browser language settings) - see example below.
This will be one to three digits (i.e. 1 - 150) indicating the chapter number. Note: In books without chapters as such (e.g Jude), you cannot skip this number, instead you must use "1". This will be one to three digits (i.e. 1 - 176) indicating the verse number. Note: The titles of some chapters, most notably in the Psalms, are give the reference "0". Please be aware that the numbering of verses (and in some cases, chapters too) can differ between languages. These links to the Online Bible use the numbering of the English Authorised (King James) version, even if you are referencing a Bible in another language. Adding a single comma or a comma plus further verse numbers, forces the verses to be selected when the user arrives at the Online Bible. The normal behaviour, without this addition, is for the verse to be focused but not selected. target= attributeThe optional target attribute determines whether the link to the Online Bible is opened in a separate browser tab or not. If you omit the target attribute altogether then the link will open in the current browser tab, the user will see your site replaced with the Online Bible. By using the code target="oba" in your <a> tag, you instruct the browser to open the link in a new tab (named "oba"). By using the same name ("oba") on each link, you will ensure that however many links to the Online Bible are clicked by your users they will only ever have one tab opened to the Online Bible. (If you wanted every click to open a separate new tab, use target="_blank".) Examples<a href="https://www.tbsonlinebible.com/">Go to the Bible</a> <a href="https://www.tbsonlinebible.com/#es" target="oba">Go to the Spanish Bible</a> <a href="https://www.tbsonlinebible.com/#xx_PSA_23" target="oba">Read Psalm 23</a> |