Pureblogtips | Learning and Earning Tips for Beginners
  • Home
  • About us
  • Write
    • Write For Us
    • Post Guidelines
  • Use the site
    • Privacy policy
    • Terms & Conditions
    • Disclaimer
  • Free Tools
    • YouTube Thumbnail Downloader
No Result
View All Result
  • Login
  • Register
Pureblogtips | Learning and Earning Tips for Beginners
No Result
View All Result
What is CSS? How to use it?

What is CSS? How to use it?

PBT Official by PBT Official
June 21, 2020
in Web design
1
414
SHARES
2.3k
VIEWS
Share on FacebookShare on Twitter

Cascading Style Sheets (CSS) is a language that shows how a document can be displayed or straightforward to control the style of the document. But if we want to create a good quality website, then CSS is needed. Cascading Style Sheets How to show different elements of an HTML file, such as color, font size, margin, padding, etc. are defined by CSS.

There are three ways to add CSS to HTML:

RelatedPosts

Free Download WoWonder – The Ultimate PHP Social Network Platform

Download Free Newspaper v9.8 – The Best News Magazine WordPress Theme

What is web design? How to learn?

What is jQuery?

Joomla content management system

  1. External style sheet
  2. Internal style sheet
  3. Inline style …

1.External style sheet
An external style sheet is used to add the same style to more than one HTML file. All the websites we visit, all created with the External style sheet. With the help of External style sheet, the style or style of all the web pages at the same time. Which reduces many jobs. By creating a CSS file, all the styles are written in that CSS file. Then it was added to the HTML file.
To add the external style sheet to HTML file, the head tag is written as follows.

<head>
  <linkrel="stylesheet"type="text/css"href="style.css">
</head
Create a file. Name the style.css and save the code below and save it.
.div {
 background: url(../img/ima01.jpg)  no-repeatcentercenterfixed;
}
#container{
 width:960px;
 margin:70auto;
 padding:40px;
 background:#০০০;
 opacity:.5;
}
h1{
 color:#০০০;
 text-align:center;
}
2.Internal Style Sheet
Internal Style Sheet is used to give style to a specific HTML file. If you use the Internal Style Sheet, you will have to enter the CSS code separately for all the web pages. Internal Style Sheet and Web page / HTML page head tag to be written in. For this, the CSS code is written in another tag named ‘style’ in the head tag. Internal Style Sheet is written in an HTML file as follows.
<head>
 <style>
   .div {background:#cccccc;}
   h1 {color:#c2c2c2;}
 </style>
</head>
3.Inline Styles
Inline Styles is used to giving a specific element style to HTML. Although it is not a good way to style HTML files. Inline Styles inside an HTML tag are written as below
<h4style="color:red; font-size:25px">This is a heading.</h4>
<p style="color:green; font-size:14px">This is a paragraph.</p>
<h6style="color:black; font-size:18px">This is a sub heading.</h6
Share166Tweet104Share41
PBT Official

PBT Official

Pureblogtips is the first All In One Blog Solution - In the world. Here you can write posts in many categories. Our Category Blogging, Business.

Related Posts

Free Download WoWonder – The Ultimate PHP Social Network Platform
Web design

Free Download WoWonder – The Ultimate PHP Social Network Platform

by PBT Official
June 21, 2020
Download Free Newspaper v9.8 – The Best News Magazine WordPress Theme
Wordpress Theme

Download Free Newspaper v9.8 – The Best News Magazine WordPress Theme

by PBT Official
June 21, 2020
What is web design? How to learn?
Web design

What is web design? How to learn?

by PBT Official
November 6, 2020
jQuery
Web design

What is jQuery?

by PBT Official
June 21, 2020
Joomla content management system
Web design

Joomla content management system

by PBT Official
November 4, 2020

Comments 1

  1. frolep rotrem says:
    5 months ago

    Wow! This blog looks exactly like my old one! It’s on a entirely different subject but it has pretty much the same page layout and design. Wonderful choice of colors!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Trending Now

What is the right age to get married?
Tips and tricks

What is the right age to get married?

2 weeks ago
How serious are you with your relationship
Dating Tips

How serious are you with your relationship

3 weeks ago
country name generator
Free Tool

Greatest 11 Fake Mail Generator – Get Free Online Temp Emails Address

3 weeks ago
How to open bank account online in SBI?
Bank management

How to open bank account online in SBI?

3 weeks ago
  • About us
  • Contact
  • Disclaimer
  • Guest Post Guidelines
  • Home
  • Popular
  • Privacy policy
  • Terms & Conditions
  • Write For Us
Email us: promote4ads@gmail.com
No Result
View All Result
  • Home
  • About us
  • Write
    • Write For Us
    • Post Guidelines
  • Use the site
    • Privacy policy
    • Terms & Conditions
    • Disclaimer
  • Free Tools
    • YouTube Thumbnail Downloader

© 2021 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In