Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Other

CSS FOR BEGINNERS

Rating
-
Sold
-
Pages
13
Uploaded on
23-04-2023
Written in
2022/2023

CSS is used to create a website more beautiful and easy to use. In this document i includes css links, css button, css background color for button, css text background.

Institution
Course

Content preview

CSS BASICS


The selector points to the HTML element you want to style.

The declaration block contains one or more declarations separated
by semicolons.

Each declaration includes a CSS property name and a value,
separated by a colon.

Multiple CSS declarations are separated with semicolons, and
declaration blocks are surrounded by curly brace

this example all <p> elements will be center-aligned, with a red text
color:

p{

color: red;Example

text-align: center;

}

Example Explained
p is a selector in CSS (it points to the HTML element you want to style: <p>).

color is a property, and red is the property value

text-align is a property, and center is the property value

, Three Ways to Insert CSS
There are three ways of inserting a style sheet:

External CSS

Internal CSS

Inline CSS

External CSS

With an external style sheet, you can change the look of an entire website by
changing just one file!



Each HTML page must include a reference to the external style sheet file inside the
<link> element, inside the head section.



Example

External styles are defined within the <link> element, inside the <head> section of an
HTML page:



<!DOCTYPE html>

<html>

<head>

<link rel="stylesheet" href="mystyle.css">

</head>

<body>



<h1>This is a heading</h1>

Written for

Course

Document information

Uploaded on
April 23, 2023
Number of pages
13
Written in
2022/2023
Type
OTHER
Person
Unknown

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
vengaiguruprasath

Get to know the seller

Seller avatar
vengaiguruprasath Anna university
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions