Thursday, 19 October 2017

HTML-html tags.

HTML tags 


An HTML document consists of text and special instruction called tags. Tags tell the about the structure of the web page. Each tag gives a specific instruction and is surrounded by angle brackets (<>). Each tag start with opening tag and end with the right angular bracket (>) as the closing tag. Tags can be singular or paired. Singular tags have only opening tags, whereas paired tags have opening as well as closing tags. The closing tag has a forward slash (/). We can type tags in either capital letters or in small letters. 

!DOCKTYPE 

Whether you realize it or not, when you read text, your brain must first identify the text's language. If you can understand that language, then your brain immediately begins to interpret the text. This same process happens whether you're reading a street sign, a book, or a name tag.
Web browsers work in a similar way. They must know what language a document is written in before they can process its contents.
You can let web browsers know that you are using HTML by starting your document with a document type declaration.

The declaration looks like this: <!DOCTYPE html>. This declaration is an instruction. It tells the browser what type of document to expect, along with what version of HTML is being used in the        document

Preparing for html 

The <!DOCTYPE html> declaration is only the beginning, however. It indicates to the browser that you will use HTML in the document, but it doesn't actually add any HTML structure or content.
To create HTML structure and content, we must add opening and closing <html> tags,like so
 <!DOCKTYPE html>
 <html>

 </html>
                  Anything between the opening <html> and closing </html> tags will be interpreted as HTML code. Without these tags, it's possible that browsers could incorrectly interpret your HTML code.


Share:

1 comment: