- On a website, what is the purpose of HTML code?
HTML describes the structure of a page.
- What is the difference between an element and a tag?
An Element is the structure of the site between the opening and closing tags. Example elements are p, h1, and table. The show what will go in that section. An element is wrapped by an opening and closing tag indicating where an element starts and stops.
- Why do we use attributes in HTML elements?
It supplies additional information about an element, lang is an example attribute and the value is indicated between a ="" in this case fr, en-us, or etc.
4. Describe the purpose of the head, title, and body HTML elements.
These indicate how things are interpreted and displayed by the browser. Head the top of the pages header. Title the title of the page (outside of the browser window), and HTML everything in these tags is HTML unless otherwise specified (scripts).