Menu Bar

Introduction to HTML


HTML [ Hyper Text Markup Language]
  • HTML is used to create a webpage.
  • HTML elements are the building blocks of a webpage. 
  • HTML elements are represented by tags. 
  • Browser doesn't display the HTML tags, but use them to render the content of webpage.

Basic Format:
basic format of html

   Here,
  •  <html> element is the root of HTML page.
  •  <title> element specify a title for the webpage.
  •  <head> element contains metadata about the document.
  •  <body> element contains visible page content.

Output:



Task:1
Creating a table without using css properties from the reference image. After creating table, use css properties to make changes in font style.

Steps:

  1. Create a table using <table> tag.
  2. Insert rows into the table using <tr> tag.
  3. Create table heading using <th> tag.
  4. Create table cells using <td> tag with empty data.
  5. Enter some data with in table cells.
  6. Keep right alignment for numeric data and left alignment for text data.


  7. Use cellspacing, cellpadding,width and border attributes.


  8. Use css properties like font-size, font-family and font-weight.

Output:


Task:2
Creating table using rowspan and colspan options.(from reference image)

                   

Steps:

  1. Create a table using <table> tag with style.
  2. Create table headings using <th> tag and insert text data.
  3. Create table data using <td> tag and insert cell data as shown in fig.
  4. Use rowspan and colspan to merge table cells.

Output: