






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A comprehensive overview of various web development concepts, including html, css, javascript, php, and xml. It covers topics such as html forms and attributes, css selectors and properties, css flexbox and grid, javascript variables and operators, event handling, callback functions, and closures. It also introduces popular web development frameworks and libraries like bootstrap and jquery, as well as server-side scripting with php and xml data representation. The document aims to equip readers with a solid understanding of the fundamental building blocks of modern web development, enabling them to create dynamic and responsive web applications.
Typology: Cheat Sheet
1 / 10
This page cannot be seen from the preview
Don't miss anything!
<html>
tag followed by <head>
and <body>
secƟons.<head>
and <body>
tags in HTML. Answer: The <head>
tag contains meta-informaƟon about the HTML document, such as the Ɵtle, links to external resources (CSS, JavaScript), and metadata. The <body>
tag contains the content of the web page, including text, images, links, and other elements visible to users.<a>
(anchor) tag with the href
aƩribute. For example: <a href="hƩps://www.example.com">Visit Example</a>
.<meta>
tag in HTML? Answer: The <meta>
tag provides meta-informaƟon about the HTML document, such as character set encoding, viewport seƫngs, author informaƟon, and keywords for search engines.<!-- -->
syntax. Anything between <!--
and -->
is treated as a comment and is not displayed in the browser.DOCTYPE
declaraƟon in HTML. Answer: The DOCTYPE
declaraƟon specifies the version of HTML used in the document and ensures that the browser renders the page correctly. It must be the first line in an HTML document.<form>
tag, and input fields such as text boxes, radio buƩons, checkboxes, and buƩons are added within the form.acƟon
and method
aƩributes in an HTML form. Answer: The acƟon
aƩribute specifies the URL where the form data is submiƩed, and the method
aƩribute defines the HTTP method used to send the form data (e.g., GET or POST).<input>
tag with the type="text"
aƩribute. For example: <input type="text" name="username">
.Answer: HTML5 introduced several new input types, including email, password, number, date, color, and range. These input types provide built-in validaƟon and input control.
<select>
tag with <opƟon>
tags nested inside it. Each <opƟon>
tag represents an item in the drop-down list.required
aƩribute in HTML input fields. Answer: The required
aƩribute specifies that an input field must be filled out before submiƫng the form. If the field is empty, the form submission will be blocked, and the user will be prompted to fill in the required field..
) and can be applied to mulƟple elements, while ID selectors are prefixed with a hash (#
) and should be unique within the document. IDs are typically used for styling specific elements.;
). For example: color: red; font-size: 16px;
.display
property in CSS? Answer: The display
property specifies the type of box used for an HTML element. It determines how an element is rendered in the document flow , such as inline, block, inline-block, none, etc.margin-leŌ
and margin-right
to auto
and specifying a width. VerƟcal centering is more complex and oŌen requires using flexbox or absolute posiƟoning with top: 50%; transform: translateY(-50%);
.Answer: FuncƟons in JavaScript can be declared using the funcƟon
keyword followed by a name and a pair of parentheses. FuncƟon parameters are specified inside the parentheses, and the funcƟon body is enclosed in curly braces.
document.getElementById()
, document.querySelector()
, and document.querySelectorAll()
. Once selected, you can manipulate their properƟes, aƩributes, and content using JavaScript.submit
event on the form element. You can aƩach an event listener to the form's submit
event and prevent the default form submission behavior using event.preventDefault()
. Then, you can access and validate form data before submiƫng it asynchronously using AJAX or the Fetch API.Array.prototype.map()
and Array.prototype.filter()
., even aŌer the outer funcƟon has finished execuƟng. They "remember" their lexical environment and can access variables from it, even when called from a different scope.
<head>
secƟon of the document. AlternaƟvely, you can use a CDN (Content Delivery Network) to include Bootstrap files hosted by third-party providers.<?php ... ?>
). Anything within the PHP tags is treated as PHP code and executed on the server before sending the HTML response to the client.$_GET
and $_POST
superglobal variables. Answer: Form data in PHP can be accessed using the $_GET
and $_POST
superglobal variables, depending on the HTTP method used to submit the form. $_GET
is used for retrieving form data submiƩed via the GET method (e.g., query parameters in the URL), while $_POST
is used for data submiƩed via the POST method (e.g., form fields in the request body).isset()
and empty()
funcƟons in PHP? Answer: The isset()
funcƟon checks whether a variable is set and not null, while the empty()
funcƟon checks whether a variable is empty (i.e., null, false, 0, empty string, empty array). These funcƟons are commonly used for form validaƟon and error handling in PHP .xmlns
aƩribute in the root element or individual elements. They provide a way to avoid naming conflicts and organize elements andres/layout
directory of the project. XML elements represent UI components such as buƩons, text views, image views, and layouts such as linear layout, relaƟve layout, and constraint layout.