BASIC TAGS, FORMATTING TAGS & ANCHOR TAG

HTML Basic Tags & Formatting Tags :
Basic Tags :
  1. Heading Tags :
    HTML headings are defined with the < h1 > to < h6 > tags.
    • < h1 > defines the Most Important Heading.
    • < h6 > defines the Least Important Heading.

  2. Paragraph Tags :
    HTML paragraphs are defined with the < p > tag. This tag is used to create paragraphs.

  3. Image Tag :
    HTML images are defined with the < img > tag which is used to link the images on the webpage with the help of source file (src), alternative text (alt) attributes.

  4. Formatting Tags :
    HTML provides us ability to format text without using CSS. There are many formatting tags in HTML.
    • < b > - It is used to bold the text written between it.
    • < strong > - It tells the browser that the text is important.
    • < i > - It is used to make text italic.
    • < mark > - It is used to highlight the text.
    • < em > - It is used to display content in italic.
    • < u > - It is used to underline the text written between it.
    • < del > - It is used to display the deleted content.
    • < ins > - It displays the content which is added(or) inserted.
    • < sup > - It is used to give Superscript.
    • < sub > - It is used to give Subscript.

Anchor Tag :
The HTML anchor tag defines a hyperlink thatlinks one page to another page. It can create hyperlink to other web page as well as files, location, or any URL. When we click on the link, it will jump to another document. When you move the mouse over a link, the mouse arrow will turn into a little hand. The HTML < a > tag defines a hyperlink.
Syntax :
  < a href="url" >link text< /a >

Appearance of Anchor Tag :
By default, links will appear as follows in all browsers:
  • An unvisited link is underlined and blue.
  • A visited link is underlined and purple.
  • An active link is underlined and red.

  • Anchor Tag Attributes :
    1. href - The most important attribute of the < a > element is the href attribute, which indicates the link's destination. The link text is the part that will be visible to the reader. Clicking on the link text, will send the reader to the specified URL address.

    2. target - The target attribute specifies where to open the linked document. By default, the linked page will be displayed in the current browser window. To change this, you must specify another target for the link.
    The target attribute can have one of the following values:
      • _self - Default. Opens the document in the same window/tab as it was clicked.
      • _blank - Opens the document in a new window or tab.




    (WebTech - Lists)