+ 2

Using css

How do you use css in web

19th Aug 2024, 6:25 PM
Jesse Alesobo
Jesse Alesobo - avatar
4 Réponses
+ 2
Search on Web
19th Aug 2024, 6:58 PM
A͢J
A͢J - avatar
+ 2
Start the CSS course and find out how you can use CSS!
19th Aug 2024, 7:47 PM
Lisa
Lisa - avatar
+ 2
To use CSS in a web page, you can: 1. **Inline CSS**: Apply styles directly to an HTML element using the `style` attribute. ```html <p style="color: blue;">This text is blue.</p> ``` 2. **Internal CSS**: Define styles within a `<style>` tag in the `<head>` section of your HTML document. ```html <style> body { background-color: lightgrey; } h1 { color: green; } </style> ``` 3. **External CSS**: Link to an external CSS file using the `<link>` tag in the `<head>` section. ```html <link rel="stylesheet" href="styles.css"> ``` **styles.css:** ```css body { background-color: lightblue; } h1 { color: red; } ```
19th Aug 2024, 10:22 PM
Gregory Bale
Gregory Bale - avatar