When you learn German, you discover that German nouns have gender, number, and case. So the word for "the" that you use with a noun has to agree with it in those three things. You just gotta know what German word for "the" to use.
Der Tisch = The table.
Die Tasse = The cup.
Das Buch = The book.
Now there's a website that's tailor-made to help you.
You'll like it.