1. What excites or interests you about coding?

I’ve had quite a few jobs over the years where the idea was just to get the thing done. You just needed to do it how it had always been done and don’t question it. To say the least, I’ve never been good at not questioning things. That’s what excites me about coding, questioning things is good, trying to find a better way to get something done is better. I love the idea of being handed a puzzle and being asked to solve it. I love that there is a community out there that will enable me to ask questions when I come up against a wall and I am having a hard time with something. I love that I will be expected to continue to learn. I want to be part of an environment that encourages this type of mind set. I love how I get so wrapped up in it I don’t even realize how much time has passed. Maybe the last one is a little dangerous at times, but I’ve always felt that was a sign of going in the right direction.

2. What does doctype do at the top of your html file do?

It’s a declaration that instructs the web browser and tells it which version of HTML it is currently using.

3. Explain how a browser determines what elements match a CSS selector.

It is based on the tags used in the HTML; as well as; a class or ID tags used within those tags, which should then be known as selectors. As long as the formatting of the requested selector matches that which is given to our HTML, it will know which elements should be matched to the attributes within the line of code. If there is no conflict within the cascade, then it will be assigned, assuming the two documents are linked.

4. What’s the difference between element and tag?

A tag is the individuals instruction in HTML, like <p>, <h1>, <body>, all with pre-set instructions.

The element is both the tag with it’s completed content. such as:

<p class=”edit”>your content will go here </p>.

5. What do you think the “Cascade” is? How do you explain it?

In CSS placement is what matters most of the time. Cascade is the process and order in which CSS is read, it is CSS’s own order of operations/an algorithm. The instructions of CSS will be read and an order will be determined based off of specific rules. Some elements will have priority over others based on their rules or placement within the CSS document or inline coding within your HTML document, or if the !important instruction is used. Or if there are conflicting or multiple rules to be applied to a single element cascade rules will determine which of these rules it will apply to that element.

While I did find this article very informative for the basics of what cascade is, I felt like I got better examples and visuals of how it functions here. Be aware, though there does seem to be some contradicting information on each, I feel the second article is better since it does give examples of what its it talking about and used code pen so you can see exactly what they are talking about. The first article does give more information how how external factors, such a the user and user preferences may also effect how cascade reads the code.

6. Explain the 3 ways to use CSS to style an html file.

You can use the tag title to select the section you want to work on, this can be known as a selector.

There are also two other method at are placed inside the open tag of an element so it can be assigned, these are class and id. Class and id are very similar as far as CSS is concerned, but to apply changes to those areas that use class or id, you have have the right formatting in front of them.

If you are to use class selector in CSS, there must be a period in front of the name attribute name in order to apply it.

If you are to id selector in CSS, there must be a hash in front of the attribute name.

Class will allow you to target groups of elements, while id allows for only singular items to be targeted.

To read more about the difference between class and id, I would recommend this article.

You use CSS coding in HTML using the <style> tag is used and you create your CSS coding, but you can also use style within a tag, such as

<p style = margin 5px></p>

and your CSS is within the tag itself.

7. How would you explain the way CSS works out loud to someone?

HTML tells you what goes onto a webpage, CSS tells the webpage how that content should look. In other words, CSS makes HTML look pretty.

8. How do you choose the correct CSS selector?

First consult your HTML document. You have to know which element you want to work on first within the HTML document. If it is located by itself, say a <h1>, then you would just use the h1 selector to apply those changes. If you want to change say a specific nested selection/element, you may want to apply a class or id to that nested section to make it easier to locate that element for alternation.

A Full Stack Developer passionate about learning. I love puzzles, problem solving & hang out with my dog. https://highermay.dev/