CODING IS FOR EVERYONE
- What excites you about coding? How do you think it can change the world?
Coding is exciting to me because I can put my creative brain into work. Also, I have the ability to provide a solution to the problem. At the end you’re proud of the solution and outcome. We use websites everyday and with coding we can change the world at our fingertips. Almost every business has an website to promote their business. From restaurants to construction companies; websites has a unique to connect with customers. I know with my coding skills I would love to help companies to develop software or design websites.
2. What does doctype
do at the top of your html file? Why does this need to be specified?
It’s a declaration to instruct the web browser what version of the markup language is written in. It specifies the rules of the markup language. This way the web browser can have right structure for the content correctly.
3. Explain how a browser determines what HTML elements match a CSS selector?
A browser read CSS selectors from right to left. This is why the browser filter out key selectors, and each element can match up to the HTML element. “class selectors” let you CSS styles to a specific HTML element.
4. What’s the difference between an HTML element and and HTML tag?
HTML tags has open and close entity. Example: <p> and </p>. HTML element has content inside of the the open and close tag. Example: <p> My name is Meng </p>
5. In your own words, explain the cascade of CSS?
When we set rules to cascade, that means we control how CSS is applied to HTML. Cascade Style Sheet will allow us to set designs and specificity. If you don’t use cascade to style your website, the page can be very plain and simple. You can add styles, colors and fonts etc. to spice up the page.
6. Explain, to someone you know, the 3 ways to link/use CSS in an HTML file to style a web page.
a.) External- The <link> element can be used in an HTML document to tell the browser where to find the CSS file used to style the page.
b.) Internal- You can also include CSS rules within an HTML page by placing them inside a <style> element. which usually sits inside the <head> element of the page.
c.) Inline- An inline style may be used to apply a unique style for a single element. You can add the style attribute to the relevant element. The style attribute can contain any CSS property.