CSS Introducing for How to make a website look attractive using CSS
CSS Introducing
My first article was talking about how to create simple website using html language. There I tried to give you an idea of how to build a website in a short time. But you may have noticed that there is something missing. It is Cascading Style Sheets.CSS experts use various methods and use beautiful styles to make their websites look attractive. Specially web designers in particular use this variety CSS in different methods to beauty their webpages. They also use CSS styles to create different navigations bars . Web designers use CSS for develop prominent and attractive websites in coding world. The beauty of website is one of main reasons why a website is popular with the online world. This article teach you how to make a website look attractive using CSS basic methods.CSS is the language we use to style a web page. Do you use platforms like WordPress, GoDaddy, to create a website for your business ? Your website have a look attractive may be a reason to increase your website traffic.
I hope to in this short guide, introduce CSS, demonstrate CSS syntax, explain how CSS works, show how to add CSS markup to an HTML document.CSS Introducing for How to make a website look attractive using CSS
What is CSS?
How is CSS Different From HTML?
The first thing to understand when approaching the topic of CSS is when to use styling language like CSS and when to use a markup language such as HTML
- All critical website content should be added to the website using a markup language such as HTML,
- Presentation of the website content should be defined by a styling language such CSS
Blog posts, page headings. video. audio, and pictures that are not part of the web page presentation should all be added to the web page with HTML. Background images and colors. borders. font size. typography. and the position of items on a web page should all be defined by CSS It is important to make this distinction because tailing to use the right language make it difficult to make changes to the website in the future and create accessibility and usability issues tor website using a text-only browser or screen reader.
CSS Syntax
Introducing of CSS syntax |
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 braces.
Example
In this example all<p> elements will be center-aligned, with a red text color:
p {
color: green;
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 green is the property value
- text-align is a property, and center is the property value
How to Add CSS
When a browser reads a style sheet, it will format the HTML document according to the information in the style sheet.
There are three way to inserting a style sheet, but I used internal CSS method to my study. I think this is an easy and clear way to learn CSS for beginners as my knowledge.
Internal CSS
How to change background color of webpage?
The background color property specifies the background color of an element.
Example
The background color of a page is set like this:
Comments
Post a Comment
Hello guys, if you will resolve your tech problems using our blog posts, please comments for us. Think differently, doing new things and share it with world. Enjoy every moment of your life.