Chapter-2 (HTML)



Question: Heading from <H1> to <H6> in HTML?

Answer:

The six different HTML headings:
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>

Question: Explain BR, HR & Comment Tag in HTML? 

Answer:

BR - Forced line break


Appearance:
<BR>

HR - Horizontal rule

Appearance:
<HR>

COMMENT

Appearance:
<!--comment-->


Question: Explain Background color and fonts tag in HTML?
Answer:

Background Color

<body style="background-color:lightgrey">

HTML Fonts

<h1 style="font-family:verdana">This is a heading</h1>
<p style="font-family:courier">This is a paragraph.</p>

HTML Text Size

<h1 style="font-size:300%">This is a heading</h1>

HTML Text Alignment

<h1 style="text-align:center">Centered Heading</h1>
<h1 style="text-align:left">Centered Heading</h1>
<h1 style="text-align:right">Centered Heading</h1>