DEV Community

bagavath ravichandran
bagavath ravichandran

Posted on

TAGS IN HTML -1

These are the tags in HTMl

1.<!DOCTYPE html>

  The declaration is not an HTML tag. It is an "information" to 
  the browser about what document type to expect.
Enter fullscreen mode Exit fullscreen mode

2.html

   This tag represents the root of an HTML document.The <html> 
   tag is the container for all other HTML elements (except for 
   the <!DOCTYPE> tag).
Enter fullscreen mode Exit fullscreen mode

3.head

 The <head> element is a container for metadata (data about 
 data) and is placed between the <html> tag and the <body> tag.
Enter fullscreen mode Exit fullscreen mode

4.body

 The <body> element contains all the contents of an HTML 
 document, such as headings, paragraphs, images, hyperlinks, 
 tables, lists, etc.
Enter fullscreen mode Exit fullscreen mode

5.Heading tag.

 The <h1> to <h6> tags are used to define HTML headings.
Enter fullscreen mode Exit fullscreen mode

6.Paragraph tag.

 The <p> tag defines a paragraph.Browsers automatically add a 
 single blank line before and after each <p> element.
Enter fullscreen mode Exit fullscreen mode

7.Link tag.

 The <link> tag defines the relationship between the current 
 document and an external resource.
 E.g:
   <head>
   <link rel="stylesheet" href="styles.css">
   </head>
Enter fullscreen mode Exit fullscreen mode

8.Footer tag.

 The <footer> tag defines a footer for a document or section.
 A <footer> element typically contains:

      - authorship information
      - copyright information
      - contact information
      - sitemap
      - back to top links
      - related documents
Enter fullscreen mode Exit fullscreen mode

9.Input tag.

 The <input> tag specifies an input field where the user can 
 enter data.

 E.g:
    - <input type="button">
    - <input type="url">
Enter fullscreen mode Exit fullscreen mode

10.Anchor tag .

 The <a> tag defines a hyperlink, which is used to link from 
 one page to another.

 The most important attribute of the <a> element is the href 
 attribute, which indicates the link's destination.
E.g:
 <a href="https://www.google.com">Visit google.com!</a>
Enter fullscreen mode Exit fullscreen mode

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more