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:
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:
- Create a table using <table> tag.
- Insert rows into the table using <tr> tag.
- Create table heading using <th> tag.
- Create table cells using <td> tag with empty data.
- Enter some data with in table cells.
- Keep right alignment for numeric data and left alignment for text data.
- Use cellspacing, cellpadding,width and border attributes.
- 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:
- Create a table using <table> tag with style.
- Create table headings using <th> tag and insert text data.
- Create table data using <td> tag and insert cell data as shown in fig.
- Use rowspan and colspan to merge table cells.