Code means computer language.
HTML,
CSS,
JavaScript,
How does each work?

First, different look:

The HTML has “tag”, every sentence always starts with a start tag and end with a end tag.
Tag is "<>"
Using words such as:"p"(paragraph),"div"(division blocks),"h1"(headline 1)...

The CSS, also called style,
normally it’s written in "style" tag, and then for each css it need curly "{}"
Using words "margin","color"...

The JavaScript also called script,
using logical words like “if” “for” in the sentence.



Second, where is the location of each?

HTML is normally in the "body" tag,
CSS and JavaScript are normally in the "head" tag.
Like a person, website has head and body.



Third, function of each language:

The HTML is the base, a website with only HTML can work alone.

The CSS makes it beautiful

The JavaScript brings more smart actions. (Try yourself: choose a website, and deactivate JavaScript)

To learn each language, you need vocabulary and grammar.
Free tutorial: w3schools