Skip to end of banner
Go to start of banner

Basic HTML Formatting in REDCap

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

Styles of Fonts with HTML

You can style your fonts in three basic ways:

Bold face font, Italics font, and bold&italics font together. 

Bold Face

To make a format bold you will have to use this HTML code:

The HTML Code Bold
<strong>This text is bold.</strong>

 

When you use the HTML code, <strong>Insert text here.</strong> , this will be produced. 

Browser Results Bold

Italics Font 

To make a format italics you will use this HTML code:

HTML Code Italics
<em>Do this and your text will be in italics style.</em>

 

When you use the HTML Code, <em>Insert text here.</em>, this will be produced.

Browser Results Italics

 

Bold and Italics 

To make a format italics and bold, you will use the HTML code:

HTML Code Bold and Italic
<strong><em>To get your text italics and bold, do this.</em></strong>

 

When you use the HTML Code, <strong><em>Insert text here.</em></strong>, this will be produced. 

Browser Results Italics&Bold

Font Colors and Sizes with HTML

Another couple of different simple formatting options you can do in REDCap surveys or forms is having different font colors and font sizes.

Getting the font color and font size is simple.

All you have to do is use/copy these HTML Codes: 

Font Colors 

To make a words in REDCap have font colors, use this HTML code:

HTML Code Font Color
<font color="red">This color will be red.</font>
<font color="purple">This color will be purple.</font>
<font color="green">This color will be green.</font>
<font color="blue">This color will be blue.</font>

 

When you use the HTML code <font color="any color">Insert text here.</font>, you can get any color you want with the font. 

Browser Results Font Color

 

Font Sizes

For different font sizes, use this HTML code: 

HTML Code Font Sizes
<div style="font-size: 10pt">This is how you change the size of the font.</div>
<div style="font-size: 14pt">This is how you change the size of the font.</div>
<div style="font-size: 20pt">This is how you change the size of the font.</div>
<div style="font-size: 22pt">This is how you change the size of the font.</div> 

 

When you use the HTML code <font size="any number">Insert text here.</font>, you can get any 

Browser Results Font Sizes

 

 

 

 

 

 

 

 

Font Color & Sizes

For combining both font color & sizes, use this HTML code: 

HTML Code Font Sizes
<p style="font-weight:normal;">Here is a selection of text styles:</p> 

<p style="color:red; font-size:75%;">small and red</p> 

<p style="color:green; font-weight:bold; font-size:150%;">bold, large and green</p> 

<p style="color:blue; font-family: monospace;">blue monospace</p> 

<p style="display:block; padding:5px; border:1px black</p> 



Combining Color and Size

 

 

 

 

 

 

 

 

 

 

 

this is plain text

 

  • No labels