This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HTML and CSS: Design and Build Websites | |
## Chapter 1 & 2: | |
1. On a website, what is the purpose of HTML code? | |
-The purpose of HTML code is to bring structure to a webpage. | |
2.What is the difference between an element and a tag? | |
-An HTML Element are the characters inside angle brackets, for example: <h1></h1>. h1 would be the Element. | |
-A tag generally consists of an opening tag and a closing tag, for example: <p></p>. The angle brackets are refered to as a tag; The tag with the forward slash in it is refered to as the closing tag. | |
-The difference between an element and a tag is that an element is nested in a tag. | |
3. Why do we use attributes in an element? |