CSS article,Grouping and attribute selectors in CSS
نوشته شده توسط : dotnek

In order for you to achieve your goals as a web designer , there are many possibilities and ways that each of them can help you in this field which you can search for them on our site, but in general, one of the ways that you can increase the positive user experience of the users who visit your site by mastering it, is using CSS.With its help, you can implement the commands you want just by entering different codes which make it easier for the user to use your site, so it may cause users to recommend it to your friends after gaining a positive experience from using your site, which help you increase your site ranking in the search results page , as a result, it can have a significant impact on the success of your website as well as your business.One of the things you can do with this language is to specify the link status by entering different codes and also specifying each link as well as the differences between different kinds of links, so you can cause the user to use the site with its facilities easily, in the following, we are going to look at the ways to create different groups, as well as the ways to select elements in CSS, but before that, we need to give you a brief explanation of CSS.

What is CSS?

CSS stands for Cascading Style Sheets , this language was created to shape and make a website as well as its internal components, and it is one of the main tools for web designers, which is being used a lot along with HTML, JavaScript, etc.

CSS Grouping:

The important thing in coding is that the code should be written cleanly, if you have to write a lot of codes, you may end up making a mistake in writing them, so you can put different elements that you consider the same properties for them in a group and then apply some changes such as color, size, etc., to them, for example, suppose you want to select 20 pixel fonts and a blue color for three titles, if you do not put them in a group, you will have to write the code as follows.

h1 {
font-size: 20px;
color: blue;
}
h2 {
font-size: 20px;
color: blue;
}
h3 {
font-size: 20px;
color: blue;
}
As you can see, in this case you have to do a lot of coding in order to apply the same feature to separate elements that you may even get errors in, instead of that, you can shorten the code by grouping it, to do this, you need to write the 3 elements that you want to apply the changes to them together and separate them with a comma, then write the desired font and color or any other feature only once for that group. 

Read more on:https://www.dotnek.com/Blog/Web/grouping-and-attribute-selectors-in-css

link:https://dotnek.mystrikingly.com/

Related link:DotNek iOS Development





:: برچسب‌ها: dotnek , seo , site ,
:: بازدید از این مطلب : 73
|
امتیاز مطلب : 0
|
تعداد امتیازدهندگان : 0
|
مجموع امتیاز : 0
تاریخ انتشار : سه شنبه 19 مرداد 1400 | نظرات ()
مطالب مرتبط با این پست
لیست
می توانید دیدگاه خود را بنویسید


نام
آدرس ایمیل
وب سایت/بلاگ
:) :( ;) :D
;)) :X :? :P
:* =(( :O };-
:B /:) =DD :S
-) :-(( :-| :-))
نظر خصوصی

 کد را وارد نمایید:

آپلود عکس دلخواه: