697589 vues

CSS

Sébastien Merour
publié le 13/06/2020 à 16h15 | modifé le 13/06/2020 à 19h00
Catégorie : LangagesCommentaires (15871)
CSS
Description

Le CSS (Cascading Styles Sheets) est un langage informatique permettant de décrire le style, la présentation d'un document HTML. Là où le HTML va se contenter de structurer un document, le CSS va prendre en charge le style, la mise en page d'une page web.

En réalité, le HTML n'a jamais eu besoin du langage CSS pour être exécuté sur un navigateur web. Cependant, le CSS est devenu rapidement une nécessité afin de séparer ce qui relève purement et simplement de la structure d'une page web (c'est le rôle du HTML), de ce qui relève de la mie en page (formes, couleurs, polices de caractères....).

Le style d'une page web peut être défini de 3 façons :

-soit directement dans la page HTML (avec par exemple la balise style, située dans la partie HEAD de la page)

-soit en mode inline (exemple : utilisation de la balise strong pour mettre en gras un texte)

-soit grâce à un fichier CSS, référencé dans la section HEAD de la page.

Il est évident qu'il est préférable d'utiliser la 3ème méthode. En effet : imaginons qu'un développeur souhaite modifier complètement le design d'un site web, sans pour autant modifier la structure des pages web. C'est là que le fichier CSS a son intérêt : le développeur pourra modifier le style du site en ne modifiant que le fichier CSS du site. Ce sera d'autant plus utile si le site web contient de très nombreuses pages.

Il est possible également qu'une page web ou qu'un site fasse appel à plusieurs fichiers CSS. Par exemple, il est fréquent de voir un fichier CSS différent pour chaque taille d'écran, afin de rendre un site 100% responsive.

Par ailleurs, le CSS est devenu de plus en plus puissant au fil des années. Désormais, le CSS permet d'afficher par exemple des animations, ou des graphiques particulièrement complexes.

Les sélecteurs

Le principe du CSS repose sur la sélection : on sélecte un élément (par exemple un type de balise, ou bien une balise possédant un identifiant) pour lui appliquer un style. On pourra par exemple appliquer une couleur rouge pour tous les titres de type H3.

Box Model

Tous les élements HTML (une image, un paragraphe, un formulaire...) peut être considéré comme une boîte. Pour définir cette boîte, on utilise 4 élements :

- Margin (Marge - l'espace qui est en dehors de la bordure)

- Border (Bordure - la bordure qui est autour du padding)

- Padding (Ecart - l'écart entre le contenu et la bordure)

- Content (Contenu - par exemple le texte et les images)

Grid

Grid est un principe CSS permettant d'afficher un Layout en mode "grille". Le développeur peut utiliser ce principe pour positionner des éléments dans une grille, en faisant varier par exemple la taille de chaque case, ou l'orientation de chaque rangée, etc...

Pour afficher un layout en mode Grid, il est nécessaire d'insérer l'instruction display: grid

Flexbox

Auparavant, nous avions 4 formats de Layouts possibles :

- Block, pour les sections d'une page

- Inline, pour le texte

- Table, pour afficher un tableau

- Positioned, pour positionner explicitement un élément.

L'arrivée du concept du Flexbox facilite la création de layout, sans avoir à utiliser les notions de float ou de position.

Pour activer la notion de flexbox sur un élément, il est nécessaire d'appliquer un affichage flex avec l'instruction display: flex

Les proprités d'un conteneur Flex sont les suivantes :

flex-direction

flex-wrap

flex-flow

justify-content

align-items

align-content

Fonctionnalités
Style / Mise en page
Date de création
17/12/1996
Créateur
W3C
Dernière version
3
Langage
CSS
Liens
Aux dernières nouvelles
Depuis 2010, CSS est censé évoluer vers sa version 4. Mais suite au succès de HTML 5 couplé avec CSS 3, il est possible que CSS 4 ne voit jamais le jour, où bien que la notion de version (5 pour HTML et 3 pour CSS) disparaisse, pour devenir des langages en constante évolution.

15871 Commentaire(s)
  1. user
    access dark web safely
    04/01/2026 à 09h08  commentaire modifé
    dark web meaning Dark Web Explained: Meaning and Access Dark Web Meaning The darknet is a non-public part of the internet that is not reachable through regular browsers. When users search for what the dark web is or dark web meaning, they usually refer to privacy-focused networks that need dedicated software and use encryption to conceal identities. Most dark web sites operate on the onion domain. Unlike the public web, the dark web is not listed by Google or traditional search engines. How to Get on the Dark Web To understand how to get on dark web, users need a dedicated darknet browser. The most widely used option is Tor Browser: Available via the Tor Browser download for Windows, macOS, and Linux Also available as Tor Browser for Android Directs traffic through several encrypted nodes (onion routing) For iOS users, the Onion Browser is frequently used. To browse the dark web safely, users often use Tor together with standard security measures and refrain from sharing personal data. Dark Web Search Engines and Resources Since Google does not index the dark web, users rely on a dark web search engine such as: Ahmia search Torch dark web Onion search DuckDuckGo dark web (via Tor) Indexes like the Hidden Wiki provide collections of darknet links, but a significant number of links are outdated or unsafe. Dark Web Markets and Risks Dark web markets are known for anonymous trading, often using digital currencies. The best-known example is the Silk Road marketplace, which was taken down by authorities. Topics like illegal goods and fraud have led to increased law enforcement attention. Many markets are fraudulent or short-lived. Monitoring the Dark Web for Data Leaks Users often ask is my info on dark web. This has led to darknet monitoring, dark web scan, and dark web checking services. These tools identify exposed emails, passwords, and financial information and may trigger a security alert if exposure is found. Final Note The dark web is not completely illegal, but it involves significant risks. Darknet sites are used both for privacy-focused communication and for criminal activity. Anyone accessing the dark web should understand the technology, legal boundaries, and security implications before continuing.

  2. user
    gotovye_iuOn
    04/01/2026 à 08h38  commentaire modifé
    Если вы ищете готовые решения для строительства своего жилища, посетите наш сайт по адресу проекты домов готовые, чтобы найти подходящий для вас проект. предлагают заказчикам широкий спектр возможностей для строительства . Эти проекты дают возможность избежать лишних расходов и ошибок . Благодаря этому, заказчики могут быть уверены в результате своего строительства. Готовые проекты домов учитывают все нюансы и особенности строительства. Они содержат полное описание всех этапов строительства . Это упрощает процесс строительства и снижает риски . Готовые проекты домов позволяют сэкономить средства и время . Они включают в себя все необходимые документы и чертежи . Благодаря этому, заказчики могут сэкономить время и ресурсы. Готовые проекты домов разработаны с учетом всех современных требований и стандартов . Они обеспечивают быстрое и качественное строительство. Это дает заказчикам возможность получить готовый дом в короткие сроки . Готовые проекты домов представляют собой комплексное решение для строительства жилья . Они созданы с учетом всех современных требований и стандартов . Благодаря этому, заказчики могут сэкономить время и ресурсы. Готовые проекты домов предлагают заказчикам возможность получить высококачественный дом . Они предоставляют заказчикам возможность осуществлять контроль над строительным процессом. Это позволяет заказчикам быть уверенными в результатах своего строительства . Готовые проекты домов включают в себя полный набор документации для создания нового дома . Они учитывают все нюансы и особенности строительства. Благодаря этому, заказчики могут быть уверены в результате своего строительства . Готовые проекты домов дают возможность избежать лишних расходов и ошибок . Они содержат полное описание всех этапов строительства . Это упрощает процесс строительства и снижает риски .

  3. user
    125win_pgoa
    04/01/2026 à 08h27  commentaire modifé
    Try your hand at online games on 125win and win big prizes! Security is a top priority for 125win, ensuring safe transactions and data protection.

  4. user
    dark web drugs
    04/01/2026 à 06h16  commentaire modifé
    dark web alert Dark Web: What It Is and How to Access It What the Dark Web Means The darknet is a concealed part of the internet that cannot be accessed through regular browsers. When users search for what the dark web is or dark web meaning, they usually refer to anonymous online networks that need dedicated software and rely on encryption to protect user identities. Most dark web websites operate on the .onion domain. Unlike the surface web, the dark web is not indexed by Google or other standard search engines. How to Get on the Dark Web To understand how to access dark web, users need a specialized dark web browser. The most common option is the Tor Browser: Accessible through the Tor Browser download for Windows, macOS, and Linux Additionally available as Tor Browser for Android Directs traffic through several encrypted relays (onion-based routing) For users on iOS devices, Onion Browser is frequently used. To access dark web safely, users often use Tor together with standard security measures and refrain from sharing personal data. Dark Web Search Engines and Links Since Google does not list the dark web, users rely on a darknet search engine such as: Ahmia search Torch dark web Onion search DuckDuckGo dark web (via Tor) Directories like the Hidden Wiki directory provide collections of darknet links, but many links may be outdated or unsafe. Dark Web Markets and Risks Darknet marketplaces are known for anonymous transactions, often using cryptocurrency. The best-known example is the Silk Road marketplace, which was shut down by authorities. Topics like dark web drugs and financial fraud have led to increased law enforcement attention. Many markets are fraudulent or temporary. Dark Web Monitoring and Data Leaks Users often ask whether their information is on the dark web. This has led to dark web monitoring, dark web scanning, and dark web checking services. These tools search for exposed emails, passwords, and financial information and may trigger a dark web alert if exposure is found. Conclusion The dark web is not completely illegal, but it carries real risks. Darknet sites are used both for privacy-focused communication and for illegal activities. Anyone exploring the dark web should understand the technical, legal, and security implications before proceeding.

  5. user
    dark web search engine
    04/01/2026 à 03h11  commentaire modifé
    dark web markets Dark Web Explained: Meaning and Access What the Dark Web Means The darknet is a non-public part of the internet that cannot be accessed through traditional browsers. When users search for what is dark web or the meaning of the dark web, they usually refer to anonymous networks that require special software and rely on encryption to protect user identities. Most dark web websites operate on the .onion domain. Unlike the public web, the dark web is not indexed by Google or other standard search engines. How to Get on the Dark Web To understand how to access dark web, users need a dedicated darknet browser. The most widely used option is Tor Browser: Available via Tor Browser download for Windows, macOS and Linux systems Additionally available as the Android version of Tor Browser Directs traffic through several encrypted nodes (onion-based routing) For users on iOS devices, the Onion Browser is a popular choice. To browse the dark web safely, users often combine Tor with basic security practices and avoid sharing personal information. Dark Web Search Engines and Resources Since Google does not list the dark web, users rely on a dark web search engine such as: Ahmia search Torch dark web Onion search DuckDuckGo dark web (via Tor) Indexes like the Hidden Wiki directory provide lists of dark web links, but many links may be outdated or unsafe. Dark Web Markets and Risks Darknet marketplaces are known for anonymous transactions, often using digital currencies. The most famous example is the Silk Road dark web, which was taken down by authorities. Topics like illegal goods and fraud have led to increased law enforcement attention. Many markets are scams or temporary. Dark Web Monitoring and Data Leaks Users often ask whether their information is on the dark web. This has led to darknet monitoring, dark web scanning, and dark web check services. These tools identify leaked emails, passwords, or financial data and may send a dark web alert if exposure is found. Conclusion The dark web is not entirely illegal, but it carries real risks. Darknet sites are used both for anonymous communication and for criminal activity. Anyone accessing the dark web should be aware of the technology, legal boundaries, and security implications before continuing.

Ajoutez un commentaire :