




























































































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Prepara i tuoi esami
Studia grazie alle numerose risorse presenti su Docsity
Prepara i tuoi esami con i documenti condivisi da studenti come te su Docsity
Trova i documenti specifici per gli esami della tua università
Preparati con lezioni e prove svolte basate sui programmi universitari!
Rispondi a reali domande d’esame e scopri la tua preparazione
Riassumi i tuoi documenti, fagli domande, convertili in quiz e mappe concettuali
Studia con prove svolte, tesine e consigli utili
Togliti ogni dubbio leggendo le risposte alle domande fatte da altri studenti come te
Esplora i documenti più scaricati per gli argomenti di studio più popolari
Ottieni i punti per scaricare
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Documento scritto da me in inglese su linguaggi di programmazione Web. Da HTML a CSS, Bootstrap, JavaScript, NodeJS, Database, React. Sono affrontati temi sia del frontend che del backend. Ogni argomento è corredato di esercizi svolti e spiegazioni tecniche per comprendere meglio gli argomenti con rappresentazioni chiare. Questo documento è adatto per ogni università che effettui un esame di programmazione web/chiunque voglia studiare l'argomento.
Tipologia: Dispense
1 / 162
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!





























































































We will see that web applications (application that runs on the network) will be composed of two main blocks:
Different set-up exists to start with Web development. I personally suggest to start with Visual Studio Code, a powerful IDE that makes possible to create different files, with an integrated terminal, offering a single place where to write your code and see the result.
Ordered list use the tag :
Milk Eggs Flour
The number of the items will depend on the order you put the elements into the list. Lists can also be nested to each other simply by adding one list inside a list item element:
Item of outer list
Item of inner list
Item of inner inner list
Other inner item
Other outer item
Some tags need the specification of attributes, that are additional pieces of information used to customize the functionality of our tag. The general pattern is: < _TAG ATTRIBUTE="VALUE" ATTRIBUTE="VALUE" ... > CONTENT _ Anchor = allows to create hypertext connection between different pages, that can be another link or another .html file. We use the tag with the "href" attribute that specify in quotation marks the link or the .html file where we want to go after clicking on it. This is a link If no href is specified, the anchor is "not active", thus it's not clickable and will appear as normal text: This is a not active link Also, we can make the anchor tag draggable with the pointer of the computer using the attribute draggable and set it to true or false. This is a draggable link
Break rule = create a new line in the text.
It is used to break our text without creating a new paragraph.
This is a pragraph
Also this is a pragraph
It is used to visually divide the text in our code:
This is a pragraph
Also this is a pragraph
Images = add images to our page by specifying as attribute the url of the image with "src". Also, the alternative description of the image can be added with the attribute "alt", used by tools for people with visual impairments. Finally, the image dimensions can be adjusted with "width" and "height" specifying or the percentage proportion respect to the original size, or the exact number of desired pixels.... : contains all the content of our webpage. ... : contains all the general information related to our page. A simple starting head section contains this tags:
My CV John Doe Contact Information <br /> <br /> Profile <p>A dedicated and enthusiastic professional with experience in web development and project management. Passionate about learning new technologies and improving coding skills.
Work Experience Front-End Developer <p>ABC Company - January 2020 to Present</p> <p>Responsibilities:</p> Developed and maintained the front-end of the company’s website. Collaborated with designers to create user-friendly interfaces. Optimized web pages for maximum speed and scalability. Web Developer Intern <p>XYZ Agency - June 2019 to December 2019 </p> <p>Responsibilities:</p> Assisted in the development of client websites. Maintained and updated content on existing websites. Tested websites for cross-browser compatibility. Let's visualize the page structure: index.html contact.html GitHub site External site example projects.html
CSS stands for CascadeStyleSheet and it is a markup language used to set the style of our HTML elements. In the early days of HTML, all the webpages had a very boring aestethics and due to the lack of customization, they look the same. With the introduction of HTML 3 in 1997 a lot of new tags where introduced to style a little bit the text with , , etc. Today all the tags and attributes introduced in these days are deprecated (they are no longer recommended). HTML should be used only for the content, and not for the styling. This was the thought of Håkon Wium Lie, the father of CSS. The CSS informations are stored insto a .css file, which have to be linked to the .html we want to customize. There are three ways of adding a CSS to our HTML:
This method is not recommended because in case of large projects, setting the style of each tag can be time consuming.
style.css html { background:green; } The most difficult task in building a consistent CSS is to define the correct selector, that means: Who is the element we want to target with our styling?:
Red title <p> Red text paragraph </p> Green title Blue title style.css h { color:red; }
Before going on, we have to specify something else. Every HTML tag can have an attribute called "class", that is used to group one or more tags under the same class. Although their existing seems useless, they are fundamental with the CSS, because:
Red title <p> Red text paragraph </p> Green title Blue title style.css .red-text { color:red; } .green-text { color:green; } .blue-text { color:blue; } No matter the type of tag, the elements will get the corresponding CSS styling of the specified class.
For example: index.html
Drag me
Don't drag me
style.css p[draggable="true"] { color: red; }
Title <p> Paragraph </p> style.css
{ color: red; }
Let's explore the different properties:
The main color properties we can specify in a CSS are:
Title <p> Paragraph </p> style.css
{ background-color: #ff7f50; color: white; }
The main font properties we can specify in a CSS are: