Chapter-3 (Advanced HTML)



Question: How to format a paragraph in HTML?
Answer: 

The HTML <p> element defines a paragraph.

<p>
This paragraph
contains a lot of lines
in the source code,
but the browser
ignores it.
</p>

Question: How to List tag in HTML?
Answer:

There are two types of list tag in HTML.
1.      Ordered List tags
2.      Unordered list  tags

Ordered List Tag

<ol>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

Unordered List Tag

<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

Question: How to insert an Image in HTML?
Answer:

<img src="pic_mountain.jpg" alt="Mountain View" style="width:304px;height:228px;">

Question: How to insert an Image as background in Html?
Answer:

<body background="bgimage.jpg">

Question: How to create a table in HTML?
Answer:

<table style="width:100%">
            <tr>
                        <td>Jill</td>
                        <td>Smith</td>
                        <td>50</td>
            </tr>
            <tr>
                        <td>Eve</td>
                        <td>Jackson</td>
                        <td>94</td>
            </tr>
</table>

Question: Define anchor tag in HTML?
Answer:

<a href="http://ypcsjobs.blogspot.com">Visit My New Website</a>
                             
Question: Define Hyperlink in HTML?
Answer:

<a href="http://ypcsjobs.blogspot.com">Visit My New Website</a>