Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

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

66%
+2 −0
Q&A How do I color — some but NOT all — text in a sentence, in HTML5?

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 ...

1 answer  ·  posted 2y ago by TextKit‭  ·  edited 2y ago by TextKit‭

Question html
#4: Post edited by user avatar TextKit‭ · 2021-12-05T22:54:39Z (over 2 years ago)
  • 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 by user avatar TextKit‭ · 2021-12-05T22:52:40Z (over 2 years ago)
  • 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 by user avatar TextKit‭ · 2021-12-05T19:50:56Z (over 2 years ago)
  • 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 by user avatar TextKit‭ · 2021-12-05T19:47:15Z (over 2 years ago)
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!