When you train the neural network, you give it several screenshots with matching HTML. It learns by predicting all the matching HTML markup tags one by one. When it predicts the next markup tag, it ...