Back to notes
What are the primary functions of the HTTP methods GET and POST?
Press to flip
GET requests data from a server, typically used for retrieving and displaying information, while POST sends data to a server, commonly used for submitting form data or uploading files.
Describe the difference between inline styles, style tags, and external stylesheets in CSS.
Inline styles are applied directly within an HTML tag using the 'style' attribute. Style tags are used to include CSS within the head of the HTML document. External stylesheets are separate .css files linked to the HTML document, keeping style and content separate.
Describe the purpose and mechanism of Dynamic Host Configuration Protocol (DHCP).
DHCP automatically configures devices on a network with IP addresses, DNS servers, and routers. It facilitates the dynamic addition of devices to a network, ensuring they have the necessary network settings to communicate effectively.
What is the significance of sequence numbers in TCP?
Sequence numbers in TCP are used to order the packets within a data stream correctly. They ensure reliable data transmission by enabling the detection and reordering of packets that might arrive out of sequence.
What is the purpose of JavaScript's 'querySelector' function?
The 'querySelector' function in JavaScript is used to select the first element that matches a specified CSS selector in the document, enabling DOM manipulation and interaction with the selected element.
How does the HTML <form> element enhance user interactivity on web pages?
The HTML <form> element is used to create user input fields, allowing users to submit various types of data (such as search queries, or contact information) to be processed by a server.
How do event listeners in JavaScript enhance user interactions?
Event listeners in JavaScript allow developers to execute code in response to user actions, such as clicks, form submissions, or key presses, making the web page interactive and responsive to user input.
Explain how data travels across the internet.
Data travels through the internet via routers which route data geographically from point A to point B. The data is broken into packets that may travel through multiple routers, around downed or overwhelmed servers, leveraging dynamic routing for efficiency.
How do HTTP and HTTPS differ?
HTTP (Hypertext Transfer Protocol) is used for transmitting data over the web, while HTTPS (Hypertext Transfer Protocol Secure) adds a layer of encryption using SSL/TLS to ensure secure communications between the client and server.
Explain the difference between HTML tag attributes 'class' and 'id'.
The 'class' attribute is used to apply styles to multiple elements that share the same class name, while the 'id' attribute is used to apply a unique identifier to a single element, allowing specific styling or targeting in scripts.
What are the benefits of using a CSS framework like Bootstrap?
Using a CSS framework such as Bootstrap simplifies web design by providing pre-defined classes and properties that create responsive, visually appealing layouts quickly and consistently, without needing to write extensive custom CSS.
What is the difference between IPv4 and IPv6?
IPv4 addresses are 32-bit numbers allowing for about 4.3 billion unique addresses, while IPv6 addresses are 128-bit numbers, drastically increasing the number of available IP addresses to accommodate for the growing number of internet-enabled devices.
What does the HTML tag <img src=""> do?
The <img> tag is used to embed images in an HTML document. The 'src' attribute specifies the path to the image file to be displayed.
What was the ARPANET project and who initiated it?
The ARPANET project was initiated by the US Department of Defense in the late '60s and '70s, aimed at developing a method for internetworking computers using packets of information.
What role does the Domain Name System (DNS) play in the internet?
DNS translates domain names into IP addresses. It functions as a distributed dictionary for domain names and their corresponding IP addresses, enabling users to access websites using easy-to-remember names rather than numerical IP addresses.
Previous
Next