1 Star2 Stars3 Stars4 Stars5 Stars (11 votes, average: 5.00 out of 5)

What is CSS Absolute Beginner Web Development Lesson 8

What is CSS? CSS is an acronym for “Cascading Style Sheets”. We use CSS to style webpages. With it we can specify positions, colors, background and much more.

CSS Syntax

The CSS Syntax follows a basic structure. First your target the element that you want to change. Next you will give it some commands. Here is the basic structure of the syntax.

Tip: Click on images to make them larger. If you find anything wrong on this page or need further assistance please comment below or contact me. 🙂

Target Classes

If you need to target a class you will use a period(.) to accomplish this. Here is an example of using a class.

<div class="foo"></div>


Target ID’s

We target id’s with a # sign. If you want to target a div your CSS code would look similar to this.

Subscribe To My YouTube Channel:

<div id="foo"></div>


Target HTML Elements in CSS

You can target any element that is on your webpage. For example if we wanted to target the entire body of our webpage our code would look like this in CSS.


Other Common Elements To Target in CSS

There are a host of elements to target. Here is a short list.

  • html
  • body
  • h1
  • h2
  • h3
  • h4
  • h5
  • h6
  • p
  • span
  • div



Now that you have knowledge of html and CSS you can try to do a web page. Here is a mock-up for you to try and program yourself.



Code for Today’s Lesson


<title>What is CSS Absolute Beginner Web Development</title>
<link rel="stylesheet" href="style.css"/>

<h1 class="foo">What is CSS Absolute Beginner Web Development</h1>

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularized in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.




Next Lesson

What is CSS Absolute Beginner Web Development Lesson 8 was last modified: November 22nd, 2018 by Maximus Mccullough

Please like, share and subscribe.

Advanced Programming Made Easy

I hope you enjoyed the article. If I was able to help you please consider a tip for the content.

One Time Tip

more tips

Reoccuring Tips


Cool People Share:
What Is CSS? Absolute Beginners Course Part 8


  • Mubita Ndaniso says:

    Sir I’m reading reading Web Development Absolute beginner lesson 8 .There were you are mentioning a period and then you write foo! What is that symbol you are putting in before foo because it is not visible. When i try to put a full stop, save and try to refresh my browse, nothing is happening. please assist me.

    • That is a period(.) that I am putting before foo. It targets a class. So in this instance I am targeting a div class of foo. Does that make sense to you? If not let me know and I will try to explain further.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.