Skip to content

Instantly share code, notes, and snippets.

View sanlouise's full-sized avatar

Sandra Hallie sanlouise

View GitHub Profile

Day 1

  1. On a website, what is the purpose of HTML code? HTML is the standard for describing the structure and presentation of information on the Internet. HTML keywords and tags are used to format and display the content of pages on the web.
  2. What is the difference between an element and a tag? An HTML 'tag' is just the opening or closing entity, whereas an 'element' also includes its contents.
  3. Why do we use attributes in HTML elements? Attributes changes the default functionality of an element type.
  4. Describe the purpose of the head, title, and body HTML elements. The head contains metadata, including the title, style elements, meta tags, external links and scripts. The title is what is displayed in the active browser tab. The body contains all the contents of the HTML document.