CSS_And_Multimedia_Topics
CSS_And_Multimedia_Topics
HTML supports embedding images, audio, and video to enrich web content.
```html
```
```html
<audio controls>
</audio>
```
```html
</video>
```
Internet - Concepts and Overview
**Common Controls**:
**Example**:
```html
<form>
</form>
```
Internet - Concepts and Overview
```html
```
```html
<style>
p { color: blue; }
</style>
```
```html
```
Internet - Concepts and Overview
**Example**:
```css
```
Internet - Concepts and Overview
CSS Properties
Common properties:
**Example**:
```css
div {
background-color: lightgrey;
padding: 20px;
```
Internet - Concepts and Overview
CSS Classes
CSS classes let you apply the same styles to multiple elements.
**Example in HTML**:
```html
```
**CSS**:
```css
.highlight {
background-color: yellow;
font-weight: bold;
```
Internet - Concepts and Overview
Pseudo Classes
**Example**:
```css
a:hover {
color: red;
```
This changes the link color when you hover over it.
Pseudo Elements
**Example**:
```css
p::first-letter {
font-size: 200%;
color: red;
```
**Background**:
```css
body {
background-color: lightblue;
background-image: url('bg.jpg');
```
**Text Format**:
```css
h1 {
text-align: center;
text-transform: uppercase;
```
**Fonts**:
```css
p{
font-size: 14px;
```
Internet - Concepts and Overview
Block elements (e.g., `<div>`, `<p>`, `<section>`) start on a new line and take full width.
**Example**:
```html
</div>
```
You can style block elements with CSS to control their layout and behavior.
Internet - Concepts and Overview
**Example**:
```css
ul {
list-style-type: square;
margin: 10px;
```
**Example**:
```css
table {
border-collapse: collapse;
td, th {
padding: 8px;
```
Internet - Concepts and Overview
Filter effects let you apply visual effects like blur, brightness, contrast.
**Example**:
```css
img {
filter: grayscale(100%);
```
Animations
**Example**:
```css
@keyframes slide {
to { left: 100px; }
div {
position: relative;
animation-name: slide;
animation-duration: 2s;
```