What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Can I change a font color for part of my form?

    Asked by pnwc on January 04, 2016 at 01:52 PM

    I want part of my heading to be in a different font color.  How can I do this?

     

    font color font
  • Profile Image

    Answered by Ben on January 04, 2016 at 04:37 PM

    If I understood you correctly, you would like to have not the heading font in different color, but instead, you are looking to color the part of the heading text.

    To do that you can simply add the HTML code with the color, class or ID.

    For example, if the text is:
    "This text is same as other, while this one is colored"

    where we want "this one" to be of red color, we could do it by adding the following to the header

    This text is same as other, while <span style="color:red;">this one</span> is colored

    or

    This text is same as other, while <span class="someClass">this one</span> is colored

    or

    This text is same as other, while <span id="someID">this one</span> is colored

    The benefits of class and ID is that you can style the elements through Form Designer as well, while the first option requires that you are familiar with the HTML, however inline style would offer a faster way to do it.

    One note should be given. If you ever click on the label of that element to change it, the HTML will get removed from the same, so you would need to add the same back.

    Do let us know how it goes :)