Skip to content

Instantly share code, notes, and snippets.

View Xerolyfe's full-sized avatar

Alexander Schwebke Xerolyfe

  • Denver, Colorado
View GitHub Profile
@Xerolyfe
Xerolyfe / gist:c1a9a9415bcf4f81ab9e350b649f4762
Last active April 17, 2017 18:26
AlexSchwebke_PreWork.md
# 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?