background preloader

Code

Facebook Twitter

Effettuare un redirect - Come reindirizzare l'utente con un redirect verso un'altra pagina web. Esistono numerosi metodi per redirezionare l'utente verso un'altra pagina web del sito o verso un sito esterno. Ne analizzeremo due in questo tutorial. Sono i metodi più semplici ma pursempre efficaci. Redirect con HTML Il metodo più semplice per effettuare il redirect è utilizzare una caratteristica nativa di HTML, ovvero il redirezionamento tramite meta tag: Con questo semplice codice, da inserire tra i tag <head></head>, si ottiene un reindirizzamento automatico verso l'indirizzo " dopo un intervallo di 2 secondi.

Sostituendo il valore 2 puoi definire quanto tempo in secondi l'utente deve aspettare prima di essere redirezionato verso l'url specificata. Redirect con JavaScript E' un metodo altrettanto semplice, ma il redirect è instantaneo, non si può cioè definire l'intervallo di tempo che l'utente deve attendere prima di essere redirezionato.

Tutorial

CSS Reference. Style rule syntax style-rule ::= selectors-list { properties-list } Where: selectors-list ::= selector[:pseudo-class] [::pseudo-element] [, selectors-list] properties-list ::= [property : value] [; properties-list] See the index of selectors, pseudo-classes, and pseudo-elements below. The syntax for each specified value depends on the data type defined for each specified property. Style rule examples css For a beginner-level introduction to the syntax of selectors, see our guide on CSS Selectors. At-rule syntax As the structure of at-rules varies widely, please see At-rule to find the syntax of the specific one you want. The following are the various selectors, which allow styles to be conditional based on various features of elements within the DOM. Basic selectors Basic selectors are fundamental selectors; these are the most basic selectors that are frequently combined to create other, more complex selectors.

Combinators Next-sibling combinator A + B Subsequent-sibling combinator A ~ B Pseudo. CSS. Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS describes how elements should be rendered on screen, on paper, in speech, or on other media. CSS is among the core languages of the open web and is standardized across web browsers according to W3C specifications. Previously, the development of various parts of CSS specification was done synchronously, which allowed the versioning of the latest recommendations. You might have heard about CSS1, CSS2.1, or even CSS3. There will never be a CSS3 or a CSS4; rather, everything is now just "CSS" with individual CSS modules having version numbers.

After CSS 2.1, the scope of the specification increased significantly and the progress on different CSS modules started to differ so much, that it became more effective to develop and release recommendations separately per module. CSS Portal - Templates, Tutorials, Books, Software, Code Examples. CSS Tutorials. CSS Snippets. CSS Validator. CSS-Tricks.

Css generator

Html.