DOIs and PMIDs are unique identifiers that are assigned to articles, and they are used to locate articles online.
DOI stands for Document Object Identifier. This is a unique identifier that is assigned to an online journal article, online book or online book chapter. Most publishers assign these to their online content. You can usually find DOIs on the first page of an online article, on a PubMed record, or on the publisher's website.
PMID is a unique identifier that is used by PubMed. Each article in PubMed gets assigned its own PMID. You can find a PMID underneath the article title and author list in PubMed.
This image shows where to find a PMID and DOI in PubMed.