HTML and CSS: Design and Build Websites: Chapters 1 & 2
- On a website, what is the purpose of HTML code? HTML code describes the structure of a webpage.
- What is the difference between an element and a tag? Elements are the characters within two HTML tags. Elements tell the browser something about the information between (usually two) tags. Tags are used to further define the element.
- Why do we use attributes in HTML elements? Attributes are used to further define the information of an element, e.g. language.
- Describe the purpose of the head, title, and body HTML elements. The head of an HTML document contains information about the page and is not shown on a browser window. The title element will show on the top title of a browser, or within the title of the tab of the page you are viewing. The body is what is displayed on the web page to the user.