Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Post History
My corporation has a discussion forum that uses HTML. I'm uncertain if this is HTML5, and if it also uses CSS. <font color="red">Color this red.</font> failed, probably because "The ...
Question
html
#4: Post edited
How do I color, merely some but NOT all, text in a sentence in HTML5?
- How do I color — some but NOT all — text in a sentence, in HTML5?
My corporation has a discussion forum that uses HTML and/or CSS. I'm uncertain if this forum uses HTML5.- `<font color="red">Color this red.</font>` failed, probably because ["The <font> color attribute is not supported by HTML5"](https://www.geeksforgeeks.org/html-font-color-attribute/).
I'm NOT asking about `<p style="color:red;">Red paragraph text</p>` because I want just some but NOT ALL text, in a sentence, coloured. I don't want the whole para. colored!
- My corporation has a discussion forum that uses HTML. I'm uncertain if this is HTML5, and if it also uses CSS.
- `<font color="red">Color this red.</font>` failed, probably because ["The <font> color attribute is not supported by HTML5"](https://www.geeksforgeeks.org/html-font-color-attribute/).
- `<p style="color:red;">Red paragraph text</p>` _**worked**_. **But this code DOESN'T answer my question** — because I want just some but NOT ALL text, in a sentence, coloured. I don't want the whole para. colored!
#3: Post edited
My company has an internal discussion forum that uses HTML and CSS. I don't know if this is HTML4.- `<font color="red">Color this red.</font>` failed, probably because ["The <font> color attribute is not supported by HTML5"](https://www.geeksforgeeks.org/html-font-color-attribute/).
- I'm NOT asking about `<p style="color:red;">Red paragraph text</p>` because I want just some but NOT ALL text, in a sentence, coloured. I don't want the whole para. colored!
- My corporation has a discussion forum that uses HTML and/or CSS. I'm uncertain if this forum uses HTML5.
- `<font color="red">Color this red.</font>` failed, probably because ["The <font> color attribute is not supported by HTML5"](https://www.geeksforgeeks.org/html-font-color-attribute/).
- I'm NOT asking about `<p style="color:red;">Red paragraph text</p>` because I want just some but NOT ALL text, in a sentence, coloured. I don't want the whole para. colored!
#2: Post edited
My company has an internal discussion forum that uses HTML and CSS. I do not know if this is HTML4.`<font color="red">Color this red.</font>` didn't work, probably because ["The <font> color attribute is not supported by HTML5"](https://www.geeksforgeeks.org/html-font-color-attribute/).I am NOT asking about `<p style="color:red;">Red paragraph text</p>` because I want just some but NOT ALL text, in a sentence, coloured. I don't want the whole para. colored!
- My company has an internal discussion forum that uses HTML and CSS. I don't know if this is HTML4.
- `<font color="red">Color this red.</font>` failed, probably because ["The <font> color attribute is not supported by HTML5"](https://www.geeksforgeeks.org/html-font-color-attribute/).
- I'm NOT asking about `<p style="color:red;">Red paragraph text</p>` because I want just some but NOT ALL text, in a sentence, coloured. I don't want the whole para. colored!
#1: Initial revision
How do I color, merely some but NOT all, text in a sentence in HTML5?
My company has an internal discussion forum that uses HTML and CSS. I do not know if this is HTML4. `<font color="red">Color this red.</font>` didn't work, probably because ["The <font> color attribute is not supported by HTML5"](https://www.geeksforgeeks.org/html-font-color-attribute/). I am NOT asking about `<p style="color:red;">Red paragraph text</p>` because I want just some but NOT ALL text, in a sentence, coloured. I don't want the whole para. colored!