Home HTML The Best Guide to HTML Tags

The Best Guide to HTML Tags

986
0
HTML Tags

The Best Guide to HTML Tags


HTML stands for HyperText Markup Language. It is a standard markup language for web page creation and formation. It recognizes the creation and structure of sections, paragraphs, and links using HTML elements (the building blocks of a web page) such as tags and attributes.

HTML tags are the keywords on a web page that characterize how our web browser must format and display our web page. With the support of Tags, a web browser can differentiate between an HTML content and a simple content. But some HTML tags are unclosed tags.:

  • Opening tag
  • Content
  • Closing tag.

For example, <html> is the opening tag and </html> is the closing tag.

  • Note that the closing tag has the same text as the opening tag, but has an additional forward-slash ( / ) character.

Basic HTML Tags


<DOCTYPE>:
This is the very first thing in your document, before the HTML tag. It tells the browser which HTML or XHTML specification the document uses.

<HEAD>:
The HEAD element contains information about the current document, such as its title.

<TITLE>:
This container is placed within the HEAD structure. Between the opening and closing title tags, you should have the title of your document.

<BODY>:
The largest part of your HTML document is the body, which contains the content of your document( that is displayed within the browser window).

<DIV>:
This tag encloses a block of content. It is useful for applying alignment and style to a section of a document that contains multiple elements rather than having to apply the alignment and styles to each element in the block. Each DIV element starts on a new line.
Syntax:

<DIV
        ALIGN=”LEFT(Default)”|”CENTER”|”RIGHT”
        CLASS=”styleClass”
        ID=”namedPlaceOrStyle”
        LANG=”ISO”
        STYLE=”style”
>


Heading Tag <H1>, <H2>, <H3>, <H4>, <H5>, <H6>:

The tags H1, H2, H3, H4, H5 and H6 displays headings. Level 1 is the most prominent heading and level 6 is the least prominent. Headings are usually displayed in a bolder, larger font than the normal body. Heading start on a new line.


also read:

HTML DBMS
Data Structure Aptitude
C Programming Reasoning
E-LEARNING

 

Previous articleWhat is Computer Science?
Next articleAptitude Simplification and Formulas

LEAVE A REPLY

Please enter your comment!
Please enter your name here