HTML br tag
The br tag is used to break the line. It does not have closing tag.
1 |
Example:
1 2 3 | Hello How are you. Feeling well. |
Result: Hello How are you. Feeling well.
The br tag is used to break the line. It does not have closing tag.
1 |
Example:
1 2 3 | Hello How are you. Feeling well. |
Result: Hello How are you. Feeling well.
Hr is used to show horizontal line in html document. When ever we have to give any horizontal row between two element we use this tag Hr does not have any closing tag. Syntax
1 | <hr> |
Example:
1 2 3 4 5 6 7 8 | Hello How are you <hr> Whats going on |
Output: Hello How are you Whats going on
We can create a table in html by using <htmt></htmt> tag.with in table tag we use <tr> to create new table row.inside tr we use <td> tag to specify data value.to provide table header <th> tag is used One table can contain multiple table rows and each row can contain multiple table data. Syntax
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <table> <tr> <th>...</th> <th>...</th> </tr> <tr> <td>.....</td> <td>......</td> </tr> <tr> <td>.....</td> <td>......</td> </tr> ...... </table> |
HTML provides three types of lists Ordered List Unordered List Definition List Lets see each list one by one with suitable example. Ordered List This list are used to show information where order is important. for this we use ol tag.inside <ol>..</ol> we use <li> tag. Syntax
1 2 3 4 5 | <ul> <li>Element1</li> <li>Element2</li> <li>Element n</li> </ul> |
We can use type attribute to show … Read more
Anchor tag is used to create hyperlink in web page. We can provide a hyperlink to give a option to user to redirect or open new page on same or on another window. Here href attribute value is a url or path of next page where you want to redirect or open the page Tag … Read more
This tag is used to write paragraph in html document. Tag
1 | ....... |
Example
1 2 3 | Hello how are you This is a good book |
Output: Hello how are you This is a good book
To span a row more than a single row we can use rowspan attribute. Example: Group 1 Manish Durg India Manoj Bhopal India Group 2 Rohit Banglore India Nitesh Bhopal India
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <table style="border:1px solid black"> <tbody> <tr> <td>1</td> </tr> <tr> <td>2</td> <td>3</td> <td>4</td> </tr> </tbody> </table> |
Output: Group 1 Manish Durg India Manoj Bhopal India Group 2 Rohit Banglore India Nitesh Bhopal India To span a column more than … Read more
We use six tags for Heading These are
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <h1>....</h1> <h2>....</h2> <h3>....</h3> <h4>....</h4> <h5>....</h5> <h6>....</h6> |
font size decreses from <h1> to <h6> Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <h1>This is h1 heading</h1> <h2>This is h2 heading</h2> <h3>This is h3 heading</h3> <h4>This is h4 heading</h4> <h5>This is h5 heading</h5> <h6>This is h6 heading</h6> |
Output This is h1 heading This is h2 heading This is h3 heading This is h4 heading This is h5 heading This is h6 heading We can use these tags to give appropriete heading in web page. … Read more
The pre tag is used to display preformatted text in HTML document. pre tag preserves the content structure it can be used to show pre-formated data stored in the database and in another documents and to show computer codes programs to HTML document. Syntax:
1 | <pre>...< /pre> |
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <title> Example of HTML pre tag </title> <pre> This is a pre tag example. This preserves the text strutcture Done!! |
Result: Pre tag can also be used to … Read more
For creating bold Itelic and Underline text we use following syntax. We can also use nesting of tags Example:
1 2 3 4 | <b>This is a bold text</b> <i>This is a italic text</i> <u>This text is a underline</u> <b><i>This is a bold and italic text</i></b> |
Output: This is bold text This is italic text This text is underline This is bold and italic text