A piece of HTML code that tells a web browser how to render an element on a web page. Tags are the workhorses of HTML and provide structure to this otherwise plain-text programming language. In the early days of the web, tags were used for layout purposes, but modern web design relies on CSS to keep content and layout separate. HTML tags and hashtags are unrelated.