elements that are direct children of an element immediately following any elements that follow an */
General Sibling Selector: Targets elements that share the same parent and appear after a specific element.
h2 ~ p
/* Selects all
and share the same parent, not just the immediate sibling */
You can combine these hierarchical selectors with other selectors (e.g., by ID, class) to create more specific and complex queries.
Web Development Bootcamp Flashcards
Rule for coding #1: Trick Your Brain
with the 20 minute
Rule
What strategy can be used to harness inertia and form a consistent coding habit?
Upon transitioning (e.g., arriving home), start with a 20-minute coding goal to overcome task-switching resistance. Mark each successful day on a calendar, aiming to keep a continuous line unbroken to build a month-long habit.
What is the Internet essentially composed of?
The Internet is a network of wires connecting different computers worldwide.
What is the role of servers and clients in the context of the Internet?
Servers store and serve data/files for websites and are online 24/7. Clients, like personal computers, access this data via the Internet.
How does a DNS server function in the process of accessing a website?
A DNS (Domain Name System) server translates a website’s domain name (like Google.com) into its IP address, allowing the browser to request the website’s data directly from its server.
What is the significance of an IP address?
Every computer connected to the Internet has an IP address, which acts like a unique postal code, facilitating the sending and receiving of files/data.
How do continents remain interconnected on the Internet?
Continents are connected by massive undersea cables composed of fiber optic fibers, transmitting data using lasers at speeds up to 400 gigabytes per second.
Describe the basic flow of communication when accessing a website via a URL.
Upon entering a URL, the browser sends a request to the ISP (Internet Service Provider). The ISP queries a DNS server to get the IP address of the website. The DNS server responds with the IP address. The browser then directly requests the website’s data from the respective server using the IP address. The server sends back the necessary files and data to display the website, which the browser then renders for the user.
What are the three primary types of files that browsers use to render websites?
The three main file types are HTML, CSS, and JavaScript.
What is the purpose of the HTML code file in a website?
The HTML code file determines the content of a website, such as text, images, buttons, and links. It can be likened to the bricks of a house.
How does the CSS file contribute to the design of a website?
CSS files style the website by determining its appearance, such as colors, shapes, and fonts. It applies these styles to the content created using HTML.
The painting of a house, style.
What role does JavaScript play in a website?
JavaScript adds functionality to a website, turning it from a static page into an interactive platform. It allows users to perform actions like sending emails or making posts.
Electricity and gas and services.
How do the browser and the files from a server collaborate to display the Google homepage?
The browser uses the HTML from the server to display the content (e.g., logo, buttons, text box). The CSS files then style these components. Finally, the JavaScript provides the website’s functionality, such as searching.
What is the Chrome developer tools, and why is it useful?
The Chrome developer tools are a suite of web developer utilities integrated into the Chrome browser. They allow users to inspect and modify elements on a web page, aiding in debugging and website design.
Which browser dominated the 90s?
Netscape Navigator dominated the 90s.
Who was one of the principal makers of Netscape Navigator?
Marc Andreessen was one of the principal makers of Netscape Navigator.
Briefly summarize the history of web browsers.
Before modern browsers like Chrome, Firefox, or Safari, there was Mosaic. Marc Andreessen worked on Mosaic in university and later began work on Netscape. Netscape Navigator once held over 80% of the market share but lost the browser war to Internet Explorer. Its technology was later incorporated into Firefox.
What did websites in 1995 lack and how did they function?
In 1995, websites lacked dynamic, real-time functionality. If a website needed some action, the request was sent to the data server where computations occurred, and then a new page with the result was returned.
Who was contracted to create a new scripting language for web dynamics and interactivity?
Brendan Eich was contracted to create a new scripting language that became Javascript.
What is the impact of disabling Javascript in a browser?
Without Javascript, many websites will not load or function properly. For instance, Twitter will have a different design and YouTube or Netflix won’t load. Disabling Javascript can also lead to an ad-free browsing experience.
What was Javascript originally called and why did its name change?
Javascript was originally called Livescript. The name changed due to the popularity of the term “Java” in the 90s.
What is ECMAscript and its relevance to Javascript?
ECMAscript (European Computer Manufacturers Association Script) is a standardized version of Javascript. It is commonly referred to as ES followed by a version number (e.g., ES6, ES7).
Why is Javascript referred to as a scripting language and how does it relate to web development?
Just as scripts in plays instruct actors, scripting languages direct website elements. In web development, Javascript scripts instruct HTML elements, determining webpage behaviors and interactions.
How is Javascript different from Java?
Javascript and Java are fundamentally different. Javascript is an interpreted programming language while Java is a compiled language. They are as related as car is to carpet.
How is modern Javascript utilized and its significance in the web development world?
Modern Javascript is versatile and used in various frameworks from front end to back end. It’s the one language supported by all major browsers and powers the web, evidenced by its popularity in 2018 as a top programming language.
elements in the document. ## Footnote Note: The returned collection is live, meaning it will update if new elements with the specified tag are added to the document.
elements */ By Attribute: Use square brackets and the attribute name, optionally with a value. [data-attribute] /* Selects all elements with the "data-attribute" attribute */ [data-attribute="value"] /* Selects elements with a "data-attribute" of "value" */ You can combine selectors to create more specific queries: div.myClass#myId[data-attribute="value"] /* Selects a
elements inside an