"When a user clicks on a button, all \<p> elements will be hidden:" - here the "\<p>" is taken as html tag due to which text is moving to next line. The intention of author is to say that all paragraph (\<p>) tags will be hidden. The "\<p>" itself is not showing as it's considered an HTML tag. I have added an escape character in front.
		
			
				
	
	
		
			29 lines
		
	
	
		
			981 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			981 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| title: jQuery
 | |
| ---
 | |
| 
 | |
| ## jQuery
 | |
| 
 | |
| 
 | |
| 
 | |
| jQuery is the most widely-used JavaScript library, and is used in more than half of all major websites. 
 | |
| 
 | |
| jQuery makes web development easier to use by providing a number of 'helper' functions. These help developers to quickly write DOM (Document Object Model) interactions without needing to manually write as much JavaScript themselves.
 | |
| 
 | |
| jQuery adds a global variable with all of the libraries methods attached. The naming convention is to have this global variable as <code>$</code>. by typing in <code>$.</code> you have all the jQuery methods at your disposal.
 | |
| 
 | |
| ## Example
 | |
| 
 | |
| When a user clicks on a button, all \<p> elements will be hidden:
 | |
| 
 | |
| ```javascript
 | |
| $(document).ready(function(){
 | |
|     $("button").click(function(){
 | |
|         $("p").hide();
 | |
|     });
 | |
| });
 | |
| ```
 | |
| 
 | |
| #### More Information
 | |
| * [jQuery Home Page](https://jquery.com/)
 |