CSS CSS Layout Basics Controlling Layout with CSS Display Modes Using Inline-Block to Set Width, Height, Top and Bottom Margin and Padding

Ahmed Ali
Ahmed Ali
3,457 Points

in the part ".name a " what does the a represent

it can be seen where he's editing the css

2 Answers

This is a descendant selector. It selects all <a> elements inside elements with class = "name"

<h1 class="name"><a href="#">Best City Guide</a></h1>

In this case

<a href="#">Best City Guide</a>
Kevin Gates
Kevin Gates
14,800 Points

a stands for an anchor tag: https://www.w3schools.com/tags/tag_a.asp

So he is targeting an anchor tag (normally called a "link") that is a child of some element with the class name