jQuery Syntax

The jQuery statement usually begins with a dollar sign ($) and ends with a semicolon (;).

The jQuery syntax focuses on selecting HTML elements and performing some actions on the elements.

A $ sign to define as jQuery.

A (selector) to “query (or find)” HTML elements.

A jQuery action() to be performed on the elements.


<script type="text/javascript">


<!DOCTYPE html>
  <title>jQuery syntax example</title>
  <script src="jquery.min.js"></script>
    $(document).ready(function() {
      var data = $("p").html();
  <p>This is paragraph tag.</p>