This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:create:functions:html [24.12.2014 18:26] – [Tips] alexander.ritter | en:create:functions:html [09.03.2022 15:48] (current) – [Example] admin | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ===== Example ===== | ===== Example ===== | ||
| + | |||
| + | **Note:** It is usually better to create a //Text// in the **List of Questions** to store any longer HTML code. This text is than dragged into the questionnaire page like a question ([[: | ||
| <code php> | <code php> | ||
| html('< | html('< | ||
| html(' | html(' | ||
| - | < | + | < |
| - | | + | |
| '); | '); | ||
| </ | </ | ||
| + | |||
| + | ===== HTML-Code and other elements ===== | ||
| + | |||
| + | Other elements -- especially questions and text elements -- also generate HTML code. You can use '' | ||
| + | |||
| + | The following PHP code displays the question AB01 centered in a block with a maximum width of 600 pixels. | ||
| + | |||
| + | <code php> | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | |||
| + | You can find an application within the instructions for [[: | ||
| + | |||
| ===== Tips ===== | ===== Tips ===== | ||