Learning something new

“What excites you about coding? How do you think it can change the world?”

Coding is an art. A developer can take their creative ideas and build something that people around the globe can have access to. This is what excites me about coding. I can take my own creative ideas, and turn them into something tangible that anyone, anywhere can use. I believe coding has already and continues to change the world. Coding solves some of the world’s greatest challenges everyday.

“What does doctype do at the top of your html file? Why does this need to be specified?”

Doctype, or document type declaration, tells the browser which type of document and version of HTML is being used. This allows the browser to identify how to render the document. If the doctype is not declared, then the browser will use quirks mode to render the document.

“Explain how a browser determines what HTML elements match a CSS selector?”

Browsers use key selectors to match the HTML elements with their respective CSS selectors. Browsers use right to left parsing to match CSS selectors with the appropriate HTML elements. This is more efficient than matching from left to right.

“What’s the difference between an HTML element and and HTML tag?”

An element is made up of an opening tag, any attributes or values, the content between the opening and closing tag, and a closing tag. A tag is simply the opening or closing tag used to indicate the start or end of an element.

“In your own words, explain the cascade of CSS?”

The order of your source code matters. If you assign an element a property and value twice or more times in your stylesheet, it will only look at the latest declaration and apply that rule to your element. Another factor that affects the cascade is specificity. A class, for example, is more specific than an element. A class selector will always take precedence over an element selector. Further yet, ID selectors are more specific than class selectors and will always take precedence over class and element selectors.

“Explain, to someone you know, the 3 ways to link/use CSS in an HTML file to style a web page.”

In your HTML document, in the <head> section, you want to add a link tag. Within this link tag there is some information needed to be able to link the CSS stylesheet to the HTML document: <link rel=”” href=””>. First, you need to specify the relationship or rel of this document being linked. Simply insert the value “stylesheet”. Next and final step is providing the href attribute with the location of your CSS stylesheet. Here you would type in the name of your stylesheet followed by .css. An example could look like: “styles.css”.

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Case Study: Industry Use Case of OpenShift

Puzzle #5: Tic Tac Toe

I am glad to share that I have successfully completed the Web development internship as a part of…

My First “Real” Magic Leap Project: Part 1

How to Put a Legacy Application in Git

Drone Controls with the New Input System in Unity 2021

Getting started with Lean PlanDo — the most advanced app for lean construction

Github Actions 101 and the Checkout Action

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Priscilla Martinez

Priscilla Martinez

More from Medium

Developer Mentality and Soft Skills to Succeed

Learning to swim again.

Rolling waves at Bac My An Beach with the Son Tra Mountain in the background. Da Nang, Viet Nam.

How to become a master of your code

Medical School to Coding Bootcamp