Care Plan HTML and CSS usage
- 1 1. Allowed Tags Overview
- 2 2. Allowed CSS Properties
- 3 3. Usage Rules
- 4 Appendix: Working Examples
- 5 1. Section Divider
- 6 2. Separator
- 7 3. Textarea
- 8 4. Text Input
- 9 5. Date Input
- 10 6. Time Input
- 11 7. Number Input
- 12 8. Checkbox
- 13 9. Radio Buttons
- 14 10. Professional Lock Sections
- 15 11. Collapsible Section
- 16 12. Dropdowns
- 17 Notes
Please note that all HTML submitted to the system must be contained within a clean div tag.
<div>
Care plan code here
</div>All special characters must be submitted as ASCI HTML numbers, eg. &=&
1. Allowed Tags Overview
Patients Know Best’s care plans accept HTML and CSS for rich multimedia displays of information to the patient. For security purposes, PKB cannot accept all tags in the medical record. This guide shows what care tags work and how they work within a care plan.
1.0 Global Tag Attributes
We allow the following attributes on all the following tags except
base,head,html,meta,param,script,style, andtitle. Allowed attributes:id,style,title,class,lang
1.1 Structural Tags
<div>: General block container.<span>: General inline container.
1.2 Text Formatting Tags
<p>,<h1>–<h6>,<b>,<i>,<u>,<strong>,<em>,<small>,<sub>,<sup>,<blockquote>,<code>,<pre>,<cite>,<samp>,<s>,<ins>,<del>,<caption>,<q>.
1.3 Input Tag
<input>:Allowed attributes:
accesskey,alt,autocomplete,checked,disabled,maxlength,name,placeholder,readonly,size,src,type,usemap,valueThe
typeattribute can have the following values:hidden,text,radio,checkbox,submit,button,image,file,reset,range,number,date,time,textarea
1.4 List Tags
<ul>,<ol>,<li>.
1.5 Table Tags
<table>,<thead>,<tbody>,<tfoot>,<tr>,<th>,<td>,colgroup,col.Allowed attributes:
align,char,charoff,valign,height,width.
1.6 Dictionary Tags
<dd>,<dl>,<dt>.
1.7 Image Tag
<img>:Allowed attributes:
src,alt,width,height,name,border,align,hspace,vspace.
1.8 Anchor Tag
<a>:Allowed attributes:
href,target="_blank",onFocus,onBlur,nohref,rel,name,alt.
1.9 Iframe Tag
<iframe>:Allowed attributes:
src,allowfullscreen,frameborder,height,mozallowfullscreen,webkitallowfullscreen,width.
1.10 Label Tag
<label>:Allowed attributes:
for.
1.11 Button Tag
<button>:Allowed attributes:
name,value,disabled,accesskey.The
typeattribute can have the following values:submit,reset,button.
1.12 Select Tag
<select>:Allowed attributes:
name,multiple,disabled,size.The
onchangeattribute can have one specific value, which updates the colour of the select field based on the answer that was chosen:this.className = ‘form-control ' + this.options[this.selectedIndex].className;. Everything other value in theonchangeis filtered out. This feature works with three colours at the moment, which need to be added to the option tags’ class inside the select, these are the following:light-yellow-faded,light-blue-faded,light-green-faded.