How to change the font colour in html/rmarkdown?

Viewed 57

I have some chunks in my rmarkdown with titles and comments. I wonder if it's possible to change the font colour of these texts in HTML output??

### Title
```{r}

````
comment
1 Answers

You can use CSS/HTML styling to colour. Here is an example:

---
title: "test"
ouput: html_document
---

### Title
```{r}

````
comment

Here is some text, <p style="color:yellow">this part of which is yellow!</p>

Output:

enter image description here

Related