Wednesday, May 9, 2018

Web Programming Lessons - HTML - Tags

HTML Tags

HTML tags are element names surrounded by angle brackets. 

<tagname>content goes here...</tagname>

  1. HTML tags are normally comes in pairs like <h1> and </h1>.
  2. The first tag in a pair is the start tag and the second tag is the end tag.
  3. The end tag is written like the start tag, but with a forward slash inserted before the tag name.
  4. The start tag is also called the opening tag, and the end tag the closing tag.
Let's see some special HTML tags.

  • <!DOCTYPE html>     ➤    declaration defines this document to be HTML5
  • <html>                          ➤    is the root element of an HTML page
  • <head>                          ➤    contains meta information about the document
  • <title>                           ➤    specifies a title for the document
  • <body>                         ➤    contains the visible page content
  • <h1>                             ➤    defines a large heading
  • <p>                               ➤    defines a paragraph
This is the HTML page structure


No comments:

Post a Comment