How to add a category to a page?

User blog

I have looked into the source for some pages with it but I can't find it and I want to add one to my userpage.

EDIT: I MEANT A TABLE OF CONTENTS

Community content is available under CC-BY-SA unless otherwise noted.