Breakdown of Escreve o nome na primeira linha.
o nome
the name
na
in the / on the / at the (f.sg)
escrever
to write
a linha
the line
Questions & Answers about Escreve o nome na primeira linha.
Why is the verb form escreve and not escreves or escreva?
This is a command (the imperative mood) telling someone what to do. Escreve is the informal tu form of the command. If you were speaking formally to someone using você, you would use escreva. (Note that escreves is the regular present tense "you write", not a command).
The translation says "your name", but the Portuguese just says o nome (the name). Where is the word for "your"?
In Portuguese, when it is completely obvious from the context who something belongs to, we often just use the definite article (o or a) instead of a possessive word like o teu. Since you are being instructed to fill out a line, it is naturally assumed you are writing your own name.
Why does primeira come before linha? I thought adjectives usually go after the noun.
You are right that most descriptive adjectives go after the noun in Portuguese. However, ordinal numbers like primeira (first), segunda (second), and so on, are exceptions. They almost always come before the noun they describe.
Why do we use na here to mean "on the"?