Day 1
- On a website, what is the purpose of HTML code?
- HTML allows us to describe both the structure and content of a web page. It gives us the ability to take non-formatted text and re-format for the web in the most basic ways.
- What is the difference between an element and a tag?
- HTML uses elements to describe the structure of a page, while a tag tells you about the content or information inside each element. Elements use both an opening and closing tag to tell the web page when an element begins and ends.
- Why do we use attributes in HTML elements?
- Attributes allow us to provide more information about the content of an element. The attribute also allows us to be more specific when selecting elements to style in a CSS stylesheet. They usually are placed in the opening tag and contain a name and a value.