The code that browsers understand and transform into visible sites, is HTML, a very easy markup language using tags to define the text that is contained: <markupTag>text</markupTag>.
A site is in fact nothing more than the site text stuffed with tags. Or better, a site is the content chopped into pieces, by tags containing content or other tags. Actually giving structure to the content by defining the different parts.
A text like this:
would become a website, once tagged:
The used tagnames are predefined: the HTML language only allows certain names, e.g. H1 for the biggest title of a document, H2 for the second biggest title, P for paragraphs, LI for list items...
To identify a certain element, we use the 'id' attribute. The 'class' attribute is used to group elements of the same category.
To see the nested structure of tags of this site:
By the way, HTML or XHTML is a sub-language of the XML language (or better SGML), where it is allowed to use every tagname and attribute. XML is ideal for storing data, and in combination with the XML Styling Language (XSL), it can be transformed to XHTML code, visible as a site inside the browser.