Skip to main content

Posts

HTML Table Tag Basics

Tables Tables are very important to show data in the form of rows and columns. Tables make data more readable and easy to understand. A table consists of rows, columns and cells. HTML Tags To Make A Table As we know that there are basically three elements in a table, that is, rows, columns and cells. So, there are the following basic tags to create a table in an HTML web page: <TABLE> tag <TR> tag <TD> tag <TH> tag   <TABLE> Tag <Table> tag is used to specify the start of a table. It also specifies some attributes of the table like ALIGN and BORDER attributes etc. Example 1: <Table>                    => Table without a border. Example 2: <Table border="1">     => Table with a border of width 1. Example 3: <Table align="left" border="2">  => A left aligned Table with a border of width 2. <TR> Tag TR stands for TABLE ROW. As the name shows, <TR> tag is used to create a ro

Different Types of Text Formatting Tags in HTML

There are many Text formatting tags available in HTML. You can format your text as: Bold Text Italic Text Underline Text Superscript Text Subscript Text Let us discuss these formatting tags one by one with example html source code and the output in web browser. 1. Bold Text <b> tag is used for formatting the text as bold text. You place the text within <b> and </b> tags to make it bold. 2. Italic Text <i> tag is used for formatting the text as italic text. You place the text within <i> and </i> tags to make it italic. 3. Underline Text <u> tag is used for formatting the text as underline text. You place the text within <u> and </u> tags to make it underline. 4. Superscript Text <sup> tag is used for formatting the text as superscript text. You place the text within <sup> and </sup> tags to make it superscript. 5. Subscript Text <sub> tag is used for formatting the text as bold text. You p

Types Of Headings In HTML

HTML Hedings Headings in HTML are used to display Titles, Sub-Titles of Sub-Sub-Titles for your web page text. There are six types of headings in HTML. H1 is the largest heading and H6 is the smallest heading. <H1> is opening tag whereas </H1> is the closing tag for the largest heading. The text between <h1> and </h1> will be displayed as the main Title in your web page. Following are the six tags used for six types of headings in HTML. <H1> ... </H1> <H2> ... </H2> <H3> ... </H3> <H4> ... </H4> <H5> ... </H5> <H6> ... </H6> The H1 heading is used for main titles. Actually H1 heading will show the text in largest font size. H2 headings is used for Sub-Titles. H2 displays text in smaller font size than H1, H3 displays text of font size smaller than H1 and H2, and so on. H1 is for largest heading in a text page and H6 is for smallest heading.   Importance Of Headings in SEO Headi