Introduction to HTML and HTML Tags - wordsclank.in

Monday 29 October 2018

Introduction to HTML and HTML Tags

HTML is short for Hyper Text Markup Language which is standard markup language for creating  web pages (electronic documents on world wide web). It was first developed by Tim Berners-Lee in 1990. HTML pages are build through HTML elements and the HTML elements are represented by tags. 


HTML Tags :

HTML tags are building component of HTML page. Tags are used to mark up the start of an HTML element. Tags are enclosed with angular brackets such as < b >< /b >, <  img > etc. Generally they come in pair.


 < tag > Content here... < /tag >

is known as opening tag and the angular bracket with backslash is known as closing tag.
The content withing the opening and the closing tag will be executed according to the tagname by the browser.






Lets begin with a simple code :

<! DOCTYPE html >
< html >
< head >
 < title > HTML < /title >
< head >
< body >
< p >Welcome to HTML Tutorials by < b >< i>wordsclank < /i >< /b > < /p >
< /body >
< /html >

Explanation:

  • < ! DOCTYPE html > is not an HTML tag. It only instruct the web browser about the version  HTML the page is written in.
  • < html > is the container of all other elements.< /html >
  • < head > is the container for meta data or data about data like document title, character set, styles, links, scripts, and other meta information.< /head >
  • The content between < title > and < /title > is shown on browser's title bar.
  • Within the < body > and < /body > tag all your code or the main content will be written.
  • < p > tag is used for paragraphs.
  • < b > < i > tags are for bold and italic.

Browsers view :









No comments:

Post a Comment