mirror of
https://github.com/Fechin/reference.git
synced 2026-11-21 05:24:10 +03:00
External CSS -> External stylesheet
Inline CSS -> Inline styles Internal CSS -> Internal stylesheet
This commit is contained in:
1 parent
87c2b335ab
commit
74c4daada7
2 files changed
+15
-13
No files matched your search
@@ -21,17 +21,12 @@ Getting started {.cols-3}
|
||||
### Introduction {.row-span-3}
|
||||
CSS is rich in capabilities and is more than simply laying out pages.
|
||||
|
||||
#### External CSS
|
||||
#### External stylesheet
|
||||
```html {.wrap}
|
||||
<link href="./path/to/stylesheet/style.css" rel="stylesheet" type="text/css">
|
||||
```
|
||||
#### Inline CSS
|
||||
```html {.wrap}
|
||||
<h2 style="text-align: center;">Centered text</h2>
|
||||
|
||||
<p style="color: blue; font-size: 18px;">Blue, 18-point text</p>
|
||||
```
|
||||
#### Internal CSS
|
||||
#### Internal stylesheet
|
||||
```html
|
||||
<style>
|
||||
body {
|
||||
@@ -40,6 +35,13 @@ body {
|
||||
</style>
|
||||
```
|
||||
|
||||
#### Inline styles
|
||||
```html {.wrap}
|
||||
<h2 style="text-align: center;">Centered text</h2>
|
||||
|
||||
<p style="color: blue; font-size: 18px;">Blue, 18-point text</p>
|
||||
```
|
||||
|
||||
|
||||
### Add class
|
||||
|
||||
|
||||
@@ -199,7 +199,7 @@ See: [The Inline Frame element](https://developer.mozilla.org/en-US/docs/Web/HTM
|
||||
</style>
|
||||
```
|
||||
|
||||
#### External CSS
|
||||
#### External stylesheet
|
||||
|
||||
```html
|
||||
<body>
|
||||
@@ -314,14 +314,14 @@ HTML5 Tags {.cols-3}
|
||||
### HTML5 Ruby
|
||||
```html {.wrap}
|
||||
<ruby>
|
||||
汉 <rp>(</rp><rt>han</rt><rp>)</rp>
|
||||
字 <rp>(</rp><rt>zi</rt><rp>)</rp>
|
||||
汉 <rp>(</rp><rt>hàn</rt><rp>)</rp>
|
||||
字 <rp>(</rp><rt>zì</rt><rp>)</rp>
|
||||
</ruby>
|
||||
```
|
||||
#### ↓ Preview
|
||||
<ruby class="mt-4 text-center text-5xl">
|
||||
汉 <rp>(</rp><rt>han</rt><rp>)</rp>
|
||||
字 <rp>(</rp><rt>zi</rt><rp>)</rp>
|
||||
汉 <rp>(</rp><rt>hàn</rt><rp>)</rp>
|
||||
字 <rp>(</rp><rt>zì</rt><rp>)</rp>
|
||||
</ruby>
|
||||
|
||||
|
||||
@@ -348,7 +348,7 @@ HTML5 Tags {.cols-3}
|
||||
<progress value="50" max="100" class="w-full"></progress>
|
||||
|
||||
|
||||
### HTML 5 mark
|
||||
### HTML5 mark
|
||||
```html
|
||||
<p>I Love <mark>QuickRef.ME</mark></p>
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user