-
Notifications
You must be signed in to change notification settings - Fork 58
/
AddingHTMLtoVisualforce
26 lines (26 loc) · 1.02 KB
/
AddingHTMLtoVisualforce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<apex:page standardController="Account">
<style>
html,body,p {font-family:sans-serif;}
</style>
<apex:form>
<h1> {!Account.Name}</h1><br/>
<h2>Account Details</h2><br/>
<div id="theAccForm">
<div>
<apex:outputLabel for="name" value="Account Name"/>
<apex:inputField id="name" value="{!Account.Name}"/>
</div> <br/>
<div>
<apex:outputLabel for="emp" value="Number Of Employees"/>
<apex:inputField id="emp" value="{!Account.NumberOfEmployees}"/>
</div>
<div> <br/>
<apex:outputLabel for="desc" value="Description: "/>
<apex:inputField id="desc" value="{!Account.Description}"/>
</div>
<div id="formControl">
<apex:commandButton action="{!Save}" value="Save"/>
</div>
</div>
</apex:form>
</apex:page>