explaining some tags.. creating a table and used tags...

Heading tag:-

The <h1> to <h6> tags are used to define HTML headings. <h1> defines the most important heading. <h6> defines the least important heading. Note: Only use one <h1> per page - this should represent the main heading/subject for the whole page. Also, do not skip heading levels - start with <h1> , then use <h2> , and so on.

The HTML code for a blog heading tag would be:


html

<h1>My Blog Title</h1>

This would display the text "My Blog Title" in a large, bold font at the top of the blog post or page. The <h1> tag is the highest level heading tag in HTML and is typically used for the main title of a page or section. Other heading levels, such as <h2> and <h3>, can be used for subheadings and section titles. Proper use of heading tags not only helps to organize content on a page, but also assists with search engine optimization and accessibility for users with screen readers.

paragraph tag:-

The paragraph tag in HTML is represented by the <p> tag. It is a structural tag used to indicate a paragraph of text. When you wrap text within the <p> tags, the browser will display that text as a separate block of content, with a blank line above and below it.


For example, if you want to display a paragraph of text on a webpage, you can enclose the text within the opening and closing <p> tags. Here's an example:


html

Copy code

<p>This is a paragraph of text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed hendrerit augue ut nisi lobortis, ac lobortis risus lobortis. Aenean id mollis magna. Fusce nec est vel massa bibendum elementum. </p>

When the browser renders this HTML code, it will display the text inside the <p> tags as a paragraph, with a blank line above and below the text.


The <p> tag is an important tool for organizing content on a webpage, making it easier to read and understand. It is also commonly used in combination with other HTML tags, such as headings, lists, and links, to create well-structured and easy-to-navigate web pages.


 In this blog we will know about table tag and all tags which is used to create a table:

lat's see what is table tag:


<table> : it's is used to define a table in a web page. A table is a way to organize data into rows and columns, making it easier for users to read and understand information.


The <table> tag is a container element that can hold other HTML elements these are :


<tr> (table row)


<th> (table header)


 <td> (table data)


this tags are help to make a table stucture


<tr> : it's used for make a row in a table this tag is creates a row.. that's why it's call <tr>(table row)


<th>: it's used for give table header..


<td>:it's used to enter data in your table..





example:-


<html>
    <body>
        <h3>
           2.Insert value into table
        </h3>
        <table border="2">
            <tr><td>name</td><td>school</td>
<td>City</td></tr>
          <tr><td>chandu</td><td>S.V.S </td>
<td>Dharwad</td></tr>
        </table>
    </body>
</html>

this code will help you to create a simple tabale
as shown below:-

2.Insert value into table

nameschoolCity
chanduS.V.SDharwad




In this example, the <table> tag is used to define the overall table structure, and the <tr> tags define the rows of the table and the <td> tags define the data for each cell in the table.

tq for watching


Comments

Popular posts from this blog

Introduction to HTML