This course introduces the theory and practice of text encoding using the Guidelines of the Text Encoding Initiative.