To add the words to your dictionary, right-click the red dotted word, it gives you the option to "Add to Dictionary". This will remove the line from the word moving forward:
Step 1: Right-click the dotted word
Step 2: Click 'Add to Dictionary'
Step 3: Reload your page and all the other dotted lines for the same word are removed