Table of Contents | ||||
---|---|---|---|---|
|
...
A list of system or web-safe fonts (fonts supported on most devices) can be found here.
Infonote |
---|
Alternatively, with a bit more work you can also use a wide range of fonts made available by Google. To make that work, you will need to add a link to a Google font in the page header. An example of what that should look like for the Sofia font can be found here. For more on how to add the required HTML code to the header, you should read the section below on how to create a webpageIn our project, the head of the webpage (containing metadata) is fixed and cannot be changed. It therefore is not possible, for example, to link to other online fonts. |
The span tag has other uses too. We have used it, for example, to set the value of a button in the template we used for defining the button/4
predicate.
...
By means of these and generate with the rule. The HTML code is represented in Bootstrap format, which is also clearly illustrated by examples below or on Bootstrap's documentation website (Bootstrap Documentation).
Note |
---|
Prolog Advice: To manipulate strings and atoms in Prolog it is useful to look at documentation of the following built-in functions: atomic_list_concat, atom_concat, string_concat, append, and maplist here: https://www.swi-prolog.org/. The predicate applyTemplate is a defined predicate that will be explained below. |
...