From 14da3e0b3671960ebf688e0a40f5c47cfb402283 Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 31 Aug 2021 14:40:16 -0400 Subject: [PATCH 1/4] upload --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 902b96d..0bd7d57 100644 --- a/LICENSE +++ b/LICENSE @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE.... From 5ab8ed0c2b2cc60095e5b0ec7bbe633738dfa64e Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 31 Aug 2021 16:06:18 -0400 Subject: [PATCH 2/4] first push --- DMBurgess | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 DMBurgess diff --git a/DMBurgess b/DMBurgess new file mode 100644 index 0000000..360129c --- /dev/null +++ b/DMBurgess @@ -0,0 +1,85 @@ +1. What is Semantic HTML? + Hyper Text Markup Language that are specific. + It is HTML that gives meaning to our markup. + 2. What is HTML used for? + To structure sites on the internet. + 3. What is an attribute and where do we put it? + Provide additional information about elements and are located in the start tag. + 4. What is the h1 tag used for? How many times should I use it on a page? + Main Heading of the stie and should only be used once. + 5. Name two tags that have required attributes + and img + 6. What do we put in the head of our HTML document? + Top Navigation, meta tags, Title, Restes + 7. What is an id? + specifies a unique id for an HTML element and should only be used one time. + 8. What elements can I add an id to? + any but you can only add one. + 9. How many times can I use the same id on a page? + once + 10. What is a class? + An HTML attribute that can be used as many times as needed. + 11. What elements can I add a class to? + Any + 12. How many times can I use the same class on a page? + As many times as needed + 13. How do I get my link to open in a new tab? + target="_blank" + 14. What is the alt attribute in the image tag used for? + For screen reders and to display a discription of the image if the image dose not load. + 15. How do I reference an id? + # + 16. What is the difference between a section and a div + A section is large and simantic, a div is just an elememt. + 17. What is CSS used for? + Styling websites + 18. How to we select an element? Example - every h2 on the page + h2{} + 19. What is the difference between a class and an id? - Give me an example of when I might use each one + ID applies style to a single elememt, a class can style multipule elements. + 20. How do we select classes in CSS? + . + 21. How do we select a p element with a single class of "human""? + p.human + 22. What is a parent child selector? When would this be useful? + Child Selector is used to match all the elements which are child of a specified element. You can apply style to the child by applying style to the parent. + 23. How do you select all links within a div with the class of sidebar? + div.sidebar a {} + 24. What is a pseudo selector? + It defines the state of an element + 25. What do we use the change the spacing between lines? +
, change padding, change line height + 26. What do we use to change the spacing between letters? + letter-spacing + 27. What do we use to to change everything to CAPITALS? lowercase? Capitalize? + text-transform: uppercase text-transform: lowercase; text-transform: capitalize + 28. How do I add a 1px border around my div that is dotted and black? + div{ + border: 1px dotted black; + } + 29. How do I select everything on the page? + * + 30. How do I write a comment in CSS? + /*comments*/ + 31. How do I find out what file I am in, when I am using the command line? + pwd + 32. Using the command line - how do I see a list of files/folders in my current folder? + ls + 33. How do I remove a file via the command line? Why do I have to be careful with this? + rm (filename) Once you delete it you can't get it back. + 34. Why should I use version control? + so you can go back to a prefious version. + 35. How often should I commit to github? + evwery 20 minutes or when there is a breadthrough + 36. What is the command we would use to push our repo up to github? + git push -u origin "dennis-matthew-burgess" + 37. Walk me through Lambda's git flow. + Fork the repo, clone repo using git clone, in terminal cd into file, git clone , cd into new cloned repo,check out with , git commit -m "add comment", git push oringin -u "dennis-matthew-burgess", finally submit a pull request in github. + +Stretch Questions + + 1. What is the difference between an inline element and a block element? + 2. What happens when an element is positioned absolutely? + 3. How do I make an element take up only the amount of space it needs but also have the ability to give it a width? + 4. Name 3 elements that are diplay block by default, 2 elements that are display inline by default and 1 element that is display inline-block by default + 5. In your own words, explain the box model. What is the "fix" for the box model, in other words, how do we make all elements respect the width we've given them? From ec72c9e62cc9b3d425c59ded195491c24847fa22 Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 31 Aug 2021 16:11:46 -0400 Subject: [PATCH 3/4] changed format to txt --- DMBurgess => DMBurgess.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename DMBurgess => DMBurgess.txt (100%) diff --git a/DMBurgess b/DMBurgess.txt similarity index 100% rename from DMBurgess rename to DMBurgess.txt From ac8d9c97d199b8f1faa56f2882756cc8b52d2190 Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 31 Aug 2021 16:36:25 -0400 Subject: [PATCH 4/4] completed strech questions --- DMBurgess.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/DMBurgess.txt b/DMBurgess.txt index 360129c..1afaee9 100644 --- a/DMBurgess.txt +++ b/DMBurgess.txt @@ -79,7 +79,12 @@ Stretch Questions 1. What is the difference between an inline element and a block element? + block elements always start a new line, always take up the full width, and has a top and bottom margin where as a inline element dose not start a new line and can only takes up as much with as necessary. 2. What happens when an element is positioned absolutely? - 3. How do I make an element take up only the amount of space it needs but also have the ability to give it a width? + It sits on it's own layer. + *** 3. How do I make an element take up only the amount of space it needs but also have the ability to give it a width? + width: max-content 4. Name 3 elements that are diplay block by default, 2 elements that are display inline by default and 1 element that is display inline-block by default + Block
INline Inline-block