06 – СSS селекторы – Селектор привязки к началу атрибута


A selector with a binding to the beginning of the line allows you to find all the elements whose attributes begin with a specific line. Used ^ Create 5 hyperlinks that lead to different sites. Now, if you set rules that include only part of the line up to the site number, we will color all the elements of hyperlinks. For this, the rule must contain href ^=and a name. But it’s worth giving us the number or the end of the site, for example ‘1’, save the file and we will see how immediately we have only the first link to color. Be careful, if the domain name starts on site1.com.de then it will also be found. I hope you enjoyed this video! If so, please like it! Subscribe to the channel and successful development

Add a Comment

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