It can be online, a physical book, etc. To some extent, it depends on the media you create for, and/or the job you’re looking for. Do you have any friends who are graphic designers? they might show you. Conversely, if you’re attending school for this, they’ll probably go over how to put one together. this article goes over some of the basics and gives some examples.