Breaking

Saturday, 27 February 2016

Html Lecture 5 in Urdu


                             Html

Bold
<p><b>Here is bold text.</b> </p>
Strong
<p><strong>Here is strong text.</strong></p>
Italics
<p><i>Here is italic text.</i></p>
Emphasis
<p><em>Here is text emphasized.</em> </p>
Small
<p><small>Here is small text.</small></p>
Strikeout/delete
<p><del>Here is text with strikeout.</del></p>




Example


<!DOCTYPE html>
<html>
  <head>
    <title>Formatting Text</title>
  </head>
  <body>
<p><b>Here is bold text.</b> </p>
<p><strong>Here is strong text.</strong></p> 
<p><i>Here is italic text.</i></p>
<p><em>Here is text emphasized</em> </p>
<p><small>Here is small text.</small></p>
<p><del>Here is text with strikeout.</del></p>
  </body>
</html>


Ok Aj ham pharain gy Html Blocks
the <div> element is a block-level element that is often used as a container for other HTML elements.
<!DOCTYPE html>
<html>
<body>
<div style="background-color:black; color:white; padding:20px;">
<h2>Islmabad</h2>
<p>Islamabad is a capital of Pakistan </p>
<p>Islamabad is very good and beautiful place</p>
</div>
</body>
</html>

Spane
The <span> element is an inline element that is often used as a container for some text.
<!DOCTYPE html>
<html>
<body>
<h1>My <span style="color:red">Important</span> Heading</h1>
</body>
</html>


Mt Ali Okz

No comments:

Post a Comment