645908 vues

CSS

Sébastien Merour
publié le 13/06/2020 à 16h15 | modifé le 13/06/2020 à 19h00
Catégorie : LangagesCommentaires (15148)
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.

15148 Commentaire(s)
  1. user
    dark web meaning
    04/01/2026 à 10h33  commentaire modifé
    dark web Understanding the Dark Web and How to Access It Dark Web Meaning The dark web is a concealed part of the internet that cannot be accessed through standard browsers. When users search for what is dark web or dark web meaning, they usually refer to privacy-focused networks that need dedicated 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 listed by Google or other standard search engines. How to Access the Dark Web To understand how to access dark web, users need a specialized dark web browser. The most widely used option is the Tor Browser: Accessible through 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 routing) For users on iOS devices, the Onion Browser is a popular choice. To browse the dark web safely, users often combine Tor with standard security measures and refrain from sharing personal data. 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) Directories like the Hidden Wiki provide lists 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 transactions, often using digital currencies. The most famous example is the Silk Road dark web, which was shut down by authorities. Topics like illegal goods and financial fraud have led to greater scrutiny from authorities. Many markets are fraudulent or temporary. 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 search for exposed emails, passwords, and financial information and may trigger a dark web alert if a data leak is detected. Final Note The dark web is not completely illegal, but it involves significant risks. Darknet sites are used both for anonymous communication and for illegal activities. Anyone accessing the dark web should understand the technical, legal, and security implications before continuing.

  2. user
    oborudovan_uvEi
    04/01/2026 à 09h32  commentaire modifé
    Обеспечьте соответствие вашего школьного спортзала стандартам ФГОС, выбрав подходящее спортивное оборудование для школы инвентарь на сайте myvoleybol.ru для создания безопасной и эффективной среды для занятий. Снаряды должны пройти сертификацию и учитывать возрастные особенности

  3. 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.

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

  5. 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.

Ajoutez un commentaire :