~こと (rules)
State a written rule about what to do or avoid
You’ll be able to end written instructions with a dictionary-form or ない-form verb + こと and distinguish this directive from ~ことだ giving advice.

自然を守るため、森のきれいな花を取らないこと。
shizen o mamoru tame, mori no kirei na hana o toranai koto.
What do you think this sentence means?
To protect nature, do not pick the beautiful flowers in the forest.
State written rules and official instructions
Verb dictionary form + こと at sentence end states an official rule, regulation, or instruction on signs, notices, and manuals ("must do...", "are to...").
名前はペンで書くこと。
namae wa pen de kaku koto.
Write your name in pen.
図書館の中で食べないこと。
toshokan no naka de tabenai koto.
Do not eat inside the library.
End written rules with こと
Attach こと directly to a verb in dictionary form (for mandatory instructions) or ない-form (for prohibitions). It is used on written notices, contracts, and guidelines.
試験中は携帯電話の電源を切ること。
shikenchuu wa keitai denwa no dengen o kiru koto.
During the exam, you must turn off the power to your mobile phone.
~ことだ vs ~こと
They differ only by だ. ~ことだ is spoken advice to someone about the best thing to do. ~こと with no だ is a written rule on a sign, notice or handout.
~ことだ, the best thing is to
毎日少しずつ復習することだ。
mainichi sukoshi zutsu fukushuu suru koto da.
The best thing is to review a little every day.
Advice from one person to another.
~こと, rule: do …
毎日少しずつ復習すること。
mainichi sukoshi zutsu fukushuu suru koto.
Review a little every day.
A written instruction, e.g. on a class handout.
使ったタオルは、入り口の箱に入れること。
tsukatta taoru wa, iriguchi no hako ni ireru koto.
Put used towels in the box by the entrance.
台所を出る前に、ガスの火を消したか必ず確認すること。
daidokoro o deru mae ni, gasu no hi o keshita ka kanarazu kakunin suru koto.
Before leaving the kitchen, always check that the gas is turned off.
会議室を使ったら、机といすを元の場所に戻すこと。
kaigishitsu o tsukattara, tsukue to isu o moto no basho ni modosu koto.
After using the meeting room, return the desks and chairs to their original places.
7 more examples in the grammar path — free for a limited time.