I have spent the last two hours trying to figure out whether the following code is valid HTML syntax or not. But at least using Google und co didn't help to get a decent answer. Here is the code:
<p style="font-family: 'Segoe UI Adjusted';">Aloha from Hawaii</p>
Please notice the '
which is the HTML code for the apostrophe '
.
Although this example seems to get rendered correctly, the next logical step would assume to being able to replace other syntax characters as well, like the brackets, which would lead to the following code:
<p style="font-family: 'Segoe UI Adjusted';">Beloha from Hawaii</p>
Well, this definitely breaks the code. So I'm a little bit confused, whether the first example where just the apostrophes are replaced is valid HTML syntax or not - and if, why?
Aloha from Hawaii
` and not for an actual paragraph – mousetail Jul 20 '23 at 06:36