Grow your business, income, & life

20+ yrs of experience to offer you education and business services that launch and grow your business

CSS3 Tutorial for Beginners: 09 Applying ID Attribute To HTML Code

This is Sasha and thanks for joining me here for another CSS training video and today what I’d like to do is take a look the ID attribute and show you how to apply the IDs within your personal or business page. If you’re editing your business website, this is extremely helpful to understand what’s going on and happening underneath the surface. Let’s take a quick look.

--------------------- HTML CODE ------------------



		Backstageincome : Learn to grow a business and evolve your life!

		 	



	


These are my books and products

These are my books and products

These are my books and products

Thank you for visiting

--------------------- CSS CODE ------------------ body { background: #ccc;} h3 { background:white; border: 1px solid #000; width: 420px; padding: 15px 10px; margin: 25px auto 25px auto; }

If you take a look at my page right here, what I have is three boxes which are the H3 tag boxes. Now if you want to go ahead and add a class to them, I’m going to say white box. This is how you typically do a class and you can see right now the box went away. I need to go ahead and add the class attribute, we’ll say white box and you can see that now I’ve added it to one and it went ahead and styled it based on that. I can go ahead and do the same thing to the second one if that’s what I want to do and reuse that time and time again.

--------------------- HTML CODE ------------------



		Backstageincome : Learn to grow a business and evolve your life!

		 	



	


These are my books and products

These are my books and products

These are my books and products

Thank you for visiting

--------------------- CSS CODE ------------------ body { background: #ccc;} .whitebox { background:white; border: 1px solid #000; width: 420px; padding: 15px 10px; margin: 25px auto 25px auto; }

The ID vs. the Class attribute

The thing about using the ID attribute is it’s a little bit different. Say for example you have a unique properties and unique stylings you want to add in, typically this is used more for like, let’s say, a navigation menu or a footer, you know, things that aren’t reused time and time again. It could be even for headers like at the very top contact information. You might want to do this because these are unique. The way that you write them is instead with a period, use the number sign and I could say, “Well, this is my blue

You might want to do this because these are unique. The way that you write them is instead with a period, use the number sign and I could say, “Well, this is my blue navi.” Okay, blue navigation box. I’ll start it off kind of the same way and what I’ll do is I’ll just copy and paste the same code for the time being as I did on my other one but let’s just change the color. We’ll do something a little more blue, okay? We’ll do kind of this background right here. We’ll do the background blue. We’ll make the border a little bit darker like this, okay? The width, we’ll make it, let’s say, 620. I’ll go ahead and hit save.watch what’s going to happen here is that this is going to create a box but we first need to tie this in. How do I do that? Well, instead of using

Watch what’s going to happen here is that this is going to create a box but we first need to tie this in. How do I do that? Well, instead of using class, you go ahead and type the ID attribute. You could see right there, it pops up ID, it’s an attribute. We go ahead and now what I can do is type in blue navi if this was the navigation, hit save and now it’s going to link that right in there.

--------------------- HTML CODE ------------------



		Backstageincome : Learn to grow a business and evolve your life!

		 	



	


These are my books and products

These are my books and products

These are my books and products

Thank you for visiting

--------------------- CSS CODE ------------------ body { background: #ccc;} .whitebox { background:white; border: 1px solid #000; width: 420px; padding: 15px 10px; margin: 25px auto 25px auto; } #bluenavi { background: #2a73c1; border: 1px solid #2b619b; width: 620px; padding: 15px 10px; margin: 25px auto 25px auto; }

ID attributes are not reusable

You can see how now this is unique. The difference here, of course, is you don’t want to reuse this on the same page again. If you had like the H2 tag, you don’t want to use blue navi again. In theory, you can, okay? It’ll work but it’s not really the appropriate way to do it.

You could reuse it, you know, on another page but use it only one time per page. And again like I said, it’s typically for things like navigation, you know, and it’s a way for you to quickly see, “Oh okay, this is its own element. It’s separate.” I typically use for things like a navigation. I will use it for things like a footer or a header. It might be for a tag line or slogan that’s reused throughout the pages. But it’s specific for that. It’s reused over and over again.

--------------------- HTML CODE ------------------



		Backstageincome : Learn to grow a business and evolve your life!

		 	



	


These are my books and products

These are my books and products

These are my books and products

Thank you for visiting

--------------------- CSS CODE ------------------ body { background: #ccc;} .whitebox { background:white; border: 1px solid #000; width: 420px; padding: 15px 10px; margin: 25px auto 25px auto; } #bluenavi { background: #2a73c1; border: 1px solid #2b619b; width: 620px; padding: 15px 10px; margin: 25px auto 25px auto; }

Then what you can do is you know that this element is specific to that blue one. You could say, “Okay. Well, I want the text color to be white so I’ll go ahead and do it that way.” You know, and you could play with that property because it’s specifically styled to that.

--------------------- HTML CODE ------------------



		Backstageincome : Learn to grow a business and evolve your life!

		 	



	


These are my books and products

These are my books and products

These are my books and products

Thank you for visiting

--------------------- CSS CODE ------------------ body { background: #ccc;} .whitebox { background:white; border: 1px solid #000; width: 420px; padding: 15px 10px; margin: 25px auto 25px auto; } #bluenavi { color: #fff; background: #2a73c1; border: 1px solid #2b619b; width: 620px; padding: 15px 10px; margin: 25px auto 25px auto; }

You use it exactly the same way as the class element except an order to link it, use the ID equals and then you type it in. To link it in the CSS, you use the number sign rather than using the period in front. That’s how you go about doing it in using the ID attributes without – within your code or within your website.

Download our online toolbox for free! Simply click the get it now button below and see the must-have tools for online business owners!

Struggling to make your blog business profitable? Want to turn your hobby blog into an income-generating blog? Learn the right way to plan a highly successful and profitable blog business.

Learn how to create Pinterest Pins that are attractive, click-worthy, and make people want to click your Pins! Great skill to have to promote your content or make side-income designing Pinterest Pins for others.

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get MyOnline Business Toolbox
 

Had enough of the expensive and useless online business tools?

 

Stop wasting your money and time and get my list of awesome business tools.

 

Just enter your email address below so we know where to send it.

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Video Gear Guide for YouTubers

Are you ready to improve your YouTube channel? If you want to see the best YouTube gear for YouTubers, then download my latest gear guide!

 

Enter your email below to get started...

FREE DOWNLOAD

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Wow! Get Ready to Start your Online Business Journey!

Just enter your email address below and be one of the fast growing online businesses roght now!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Get Notified When This Freebie Comes Out! - It Shouldn't Be Long... 

Just enter your email address below and be first to get notified when we release this freebie!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Want to Create Videos that Convert Viewers into Buyers?

Are you tired of making videos that don't produce results?

 

Get my Video Formula cheat sheet and see how to create videos that get clicks and attracts buyers!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Download My Youtube Video Creation Checklist for FREE...
 

Overwhelmed by number of tasks that you need to do to make high-quality YouTube videos?

 

Then grab this YouTube Video Creation Checklist if a strategic procedure list for producing your YouTube videos.

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Download My List of The 125 Most Profitable YouTube Niches

This is a List of the 125 Most Profitable YouTube Niches that might be a real eye-opener for you.


Sign up for FREE and gain some extraordinary ideas...

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Profit from My 35 Local Strategies to Make Extra Money
 

Are you interested in making some money on the side? That don't need to be extra hard.

 

You can use My 35 Local Strategies to Make Extra Money and in seriously short time reap the benefits.

 

Grab this opportunity by entering your email below...

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

FREE Guide to the Best Cameras for a Youtuber

Eager to find out which cameras are the top choices to producing and recording videos?

 

Grab my FREE Guide below by entering your email address... 

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

225 Profitable Pinterest Niches

Are you interested in learning which Pinterest niches are profitable?

 

Grab our FREE Pinterest Niche Guide by entering your email below

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

How to Get Started Selling Your Own Digital Products

Get my free mini-series by entering your email address below

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Want to Find a Profitable Niche?

If you are interested in starting an online business and want to find the perfect niche to start making tons of money.

 

Then grab our FREE email series on how to find a highly profitable niche!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Want to Get My Quick-Start Guide to Build Your Empire?

If you are interested in starting your own online business and making money online.

 

Then grab our quick email series on how to start a profitable business fast!

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Learn How to Get Thousands of

Visitors to Your Website
 

This FREE email series will show you exactly how to get thousands of real visitors to your website even if you are an absolute beginner.

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

5,000 SUBSCRIBERS

Derek will teach you simple tactics to attract life-long customers through real-world examples.

FOR FREE?

Want to learn how to get

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Download My List of The 125 Most Profitable YouTube Niches

Get my list of the 125 Most Profitable YouTube Niches. It will be an eye-opener for you!


Sign up for FREE and get extraordinary ideas...

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

Download My List of The 125 Most Profitable YouTube Niches

Get my list of the 125 Most Profitable YouTube Niches. It will be an eye-opener for you!


Sign up for FREE and get extraordinary ideas...

AWESOME!

In order for you to get your goodies and freebies you have to confirm your email address.

 

To confirm your email address, just go to your email inbox (or check your spam) and click the link that's inside the email that states you want to receive messages from us.

 

That's its!

Just one more thing... 

don't call us.
we will coconut
you

organic pop up market store is heading your way​