Tag attributes¶
Attributes of <quran-madina-html>. Changing one after the page loads re-renders the tag.
Each is also a property: tag.aya = 256 sets aya="256" (from 2.1.2).
| Attribute | Value | Default | Description |
|---|---|---|---|
page |
1–604 (IndoPak 1–610) | A full Mushaf page. Takes priority over sura/aya. Guide |
|
sura |
1–114 | The sura, with aya. |
|
aya |
255 or 8-10 |
A verse or a range of verses. Guide | |
words |
5, 3-10 or 3:10 |
Show only these words, counted from the start of aya. Ignored with page. Guide |
|
highlight |
a word range | Mark words soft yellow. Works with page too. Guide |
|
error |
a word range | Mark words soft red. Wins over highlight. Guide |
|
letters |
"1:3, 4:3-5 emerald blink" |
Colour single letters inside words. Guide | |
headless |
true |
off | Drop the header (sura name, copy and translate). |
notitle |
true |
off | With words: hide the name of a sura the selection crosses into, keeping its frame. |
quotes |
no |
quote marks | Drop the quote marks around an inline render. |
inline |
no |
auto |
Force the multiline layout even when the selection fits on one line. |
actions |
copy bookmark or none |
all | The verse actions a click on a verse offers, by id. none: plain text, no header icons. As a property it also takes an array ([] = none). From 2.2. |
Word ranges are 1-based and include both ends. A malformed words value is ignored and the
verse renders whole; a malformed or out-of-range highlight, error or letters value is
ignored on its own. Each logs a console message.