Wednesday, 5 May 2021

JQUERY10

 

<html>

<head>

<script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

<script>

$(document).ready(function(){

$('p').each(function()

{var $p = $(this);$p.html($p.html().replace(/^(\w+)/, '<strong>$1</strong>')); });});

</script>

</head>

<body style="text-align: center;">

<p>GFG is a computer science portal</p>

<p>Computer Science Portal</p>

</body>

</html>