<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
On 07.01.2024 13:02, William_J_G Overington via Unicode wrote:<br>
<blockquote type="cite"
cite="mid:57750939.68c9.18ce3cdf158.Webtop.95@btinternet.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="auto-created-dir-div" dir="auto"
style="unicode-bidi: embed;">
<style>p{margin:0}</style>[...]
<p><br>
</p>
<p>"Well, the text is</p>
<p><br>
</p>
<p>It was printed by Gutenberg in Mainz.</p>
<p><br>
</p>
<p>and most of it is in green yet the name Gutenberg is in
yellow. How can I code that?"</p>
<p><br>
</p>
[...]</div>
</blockquote>
<br>
<p>Alright, let's solve this example problem:</p>
<p><br>
</p>
<p><p>It was printed by <i>Gutenberg</i> in
Mainz.</p></p>
<p><br>
</p>
<p>That would be the HTML to structure the text as needed. Any kind
of styles, included all possible RGBA colors, can then easily be
applied using CSS. This is also possible inline in cases where
it's important to have only one file:</p>
<p><br>
</p>
<p><p style="color: green">It was printed by <i
style="color: yellow; font-style:normal">Gutenberg</i> in
Mainz.</p><br>
</p>
<p>(I added font-style:normal because <i> is shown in Italic
by default.)<br>
</p>
<p><br>
</p>
<p>Other possibilities would be BBCode, RichText, ... or any own
format you can define.</p>
<p><br>
</p>
<p>Kind regards,<br>
Alexander Lange</p>
</body>
</html>