Pages

Monday, July 6, 2015

HTML - paragraph(p), italic(i), bold(b)

Making simple paragraph using HTML and making words italic or bold..


CODE:
<html>
<head>
<title>Paragraph, Italic, Bold</title>
</head>
<body>
<p>This is how you write a paragraph.</p>
<i>This is an italic sentence.</i>
<b>This sentence is in bold.</b>
</body>
</html>

OUTPUT:
  Paragraph, Italic, Bold This is how you write a paragraph.
This is an italic sentence.
This sentence is in bold.


Learn more at http://www.w3schools.com/tags/tag_html.asp

HTML - Hello World (h1, h2, h3, h4, h5, h6)



Hello World!
Code:
<html>
<head>
<title>Hello World</title>
</head>
<body>
Hello World with no heading!
<h1>Hello World heading1(h1)!</h1>
<h2>Hello World heading2(h2)!</h2>
<h3>Hello World heading3(h3)!</h3>
<h4>Hello World heading4(h4)!</h4>
<h5>Hello World heading5(h5)!</h5>
<h6>Hello World heading6(h6)!</h6>
</body>
</html>

Output:
Hello World Hello World with no heading!

Hello World heading1(h1)!

Hello World heading2(h2)!

Hello World heading3(h3)!

Hello World heading4(h4)!

Hello World heading5(h5)!
Hello World heading6(h6)!

learn more at http://www.w3schools.com/html/