html entities
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML entities</title>
</head>
<body>
<div class="container">
<p>This is a paragraph</p>
</div>
<div class="container">
<p>This is another paragraph with spaces</p>
<p>paragraph is written like this <p></p>
<p>paragraph is written like this <p> </p>
<p>pound is written like this £ </p>
<p>copyright is written like this © </p>
</div>
<!-- for adding spaces btwn the lines we use " ". for writing a tag like <p> we use "<" for '<' then the letter and then ">" for '>' . these are html entities. these are used for printing reserved characters which cant be printed elsewise. these are also used for printing characters which are not available on our keyboard like pound and copyright. -->
</body>
</html>
Comments
Post a Comment