As you maybe guessing CSS lets you apply borders to most HTML elements. To make a border all you need is to use border tag. First you need to specify…