HTML Tags (ID, Class)
<p class="myclass" id="seltest" >This is test</p>
You see that with Jquery we can save our time and shorten our code.
CSS Tags (Elements, ID, Class)
We see how we can select the HTML Element now we will see how we can add the CSS property to an Element or change the CSS property. Class is denoted by dot and Id is from #.
In above example we change the color from black to blue and display from none to block. Its quite easy to work with Jquery and it will fun. Lets try to combine both HTML and CSS.
<p id="sltest" class="myclass">This is my selector test</p>
Now if we run the above code it wont show on our web page because when <p> tag calls the myclass it found the display as none so it will hide it now we will get back it to our webpage now we call our Jquery. Suppose we have a button and when we click over it it will come over the webpage.
If we dont want to click over the button and we want that it will come with the page load than do this.
Or you can call the <p> tag directly to show it.
$() – is the shortname of Jquery().
If you still have any issue in selecting the elements than let me know