- On a website, what is the purpose of HTML code?
- HTML code is the building block of a website. This is where the programmer inputs the content that is going to be displayed.
- What is the difference between an element and a tag?
- An HTML element is made up of two tags. For example, a is an element made up of the tags
and
. An element is something such as a paragraph or header.
- Why do we use attributes in HTML elements?
- We use attributes to give more information about the contents of an element.
- Describe the purpose of the head, title, and body HTML elements.
- Head, title, and body HTML elements are used to dilineate how the content is displayed on the web page. The Head contains the information about the page (including the title which appears in the top bar). The body is the content shown within the browser.