Line an 8×8 inch square baking pan with parchment paper, leaving a slight overhang on the sides to make removal easy. Grease the parchment lightly with a bit of butter. Measure out all your ingredients before starting, as the temperature moves quickly once the sugar begins to boil.
In a heavy bottomed large saucepan, whisk together the sugar, cocoa powder, and salt until there are no large cocoa lumps. Gradually stir in the milk until the mixture is smooth. Place the pan over medium heat and stir constantly until the mixture comes to a rolling boil.
Once the mixture is boiling, stop stirring immediately. Attach a candy thermometer to the side of the pan, making sure it does not touch the bottom. Continue to cook without stirring until the thermometer reaches 234 degrees Fahrenheit, which is known as the soft ball stage. This usually takes about 10 to 15 minutes.
Remove the pan from the heat immediately. Add the butter and the alcohol-free vanilla extract to the top of the mixture, but do not stir them in. Let the pan sit undisturbed until the temperature drops to 110 degrees Fahrenheit. This cooling period is vital for a smooth texture.
Using a sturdy wooden spoon, beat the mixture vigorously by hand. Continue beating until the fudge loses its glossy sheen and starts to look matte and thick. If you are using walnuts, fold them in quickly at this point. Pour the mixture into the prepared pan and spread it evenly.
Allow the fudge to cool completely at room temperature for at least two hours until it is firm. Use the parchment paper to lift the block of fudge out of the pan. Use a sharp, warm knife to cut the fudge into small one inch squares for serving.