Read Chapters 1 and 2 from Structure and Text
- On a website, what is the purpose of HTML code?
HTML code is the language that describes the structure of web pages. It defines items such as headings, sub-headings, paragraphs, and body of texts. - What is the difference between an element and a tag?
Elements are the characters that are inside angled brackets. Elements are usually made up of two tags - an opening tag and a closing tag. The closing tag has an extra forward slash in it. Each element tells the browser something about the information that sits between its opening and closing tags. The terms are often used interchangeably; however, an element comprises the opening tag and the closing tag and any content tha tlies between them. - Why do we use attributes in HTML elements?
Attributes tell more about elements and provide additional information about the content of an element.