The HTML <a
> tag defines a hyperlink. It has the following syntax:
<a href="url"
>link text</a
>
<a
> element is the href attribute, which indicates the link's destination.This example shows how to create a link to youtube.com:
<a href="http://www.youtube.com/">visit youtube
<
>
<img
> tag creates a holding space for the referenced image.<img
> tag has two required attributes:<img scr="pic_trulli.jpg" alt="Italian Trulli"
>
HTML tables are a way to organize and display data on a webpage using rows and columns — much like a spreadsheet. They're built using HTML (HyperText Markup Language) with specific tags.
<table
>: Defines the table<tr
>: Table row (each row of data)<th
>: Table header (bold and centered by default)<td
>: Table data (cell content)Name | Age |
---|---|
Loki | 18 |
Aravindh | 18 |
Tamil | 18 |