Lesson 2 – What is Doctype and Basic usage of tag

?What is DOCTYPE in HTML?

Every HTML page needs it’s own document type declaration. DOCTYPE tells that which syntax suits for this HTML page. So it is very much important to choose right doctype for your page.

The above Doctype is being used more commonly. This tell that your HTML document is?HTML 4.01 Strict.?For HTML5 the doctype will be just?<!DOCTYPE>

So it’s a very much important things to wok with HTML page. This Doctype must be inserted before starting <html> tag. See the example below

Be aware that never use Doctype without know about it. So try to use the first Doctype code in your HTML page which is given in first in this page.

?Basic usage of <head>tag?

Sometimes somebody may tell that <head> tag is not important. But remember that <head> is very much important and undoubtedly serious stuff in HTML page. It tells the way of representation and it does all the basic work before showing the content of your HTML page. <head> tag represent?HTML document, including meta information, page title, links to other documents, and index information and many more.. Even it has a great value for better on-page Search Engine Optimization.

<head></head> must be placed before starting <body> tag.

See a basic usage of <head> tag and it’s explanation:

In the above code <title> represent the Title of your page. When you browse any website then you can see that website’s title in top corner of your browser.
In the above image you are see ‘Preview ICT – Next Generatio….’ in your chrome browser if you type http://www.previewict.com. This is the title. It is so much important to choose short & effective title because most of the search engine know the value of your page on title.

<meta> tag inside <head> tag represent few important things. In the above code bloc you are see <meta name=”Author” content=”benn Ali”> it tells that the author of this page is Benn. I hope you got the idea. Also to include stylesheet, javascript for your html page it is necessary to know about <head> tag.

To add stylesheet for your HTML page- (Add external .css file)

To add inline css in <head> tag

Also inside the <head> tag your all JavaScript and CSS will be placed for your HTML page. So undoubtedly it is so much essential. I will describe how to add Javascript & CSS inside <head> tag in Javascript & CSS lessons.

1 vote, 5.00 avg. rating (98% score)

Sample Doctype of HTML and XHTML

Few sample doctype of HTML and XHTML

HTML 2.0

HTML 3.0

HTML 3.2

HTML 4.01 Strict

HTML 4.01 Frameset

XHTML 1.0 Strict

XHTML 1.0 Frameset

XHTML 1.1

XHTML 2.0

 

109 votes, 5.00 avg. rating (99% score)

Lesson – 1 : Getting started with HTML

Now a days web development is a buzzing word. And numerous people are searching for learning HTML. See the trends of tutorial and html?.
That’s why I want to write some tutorial about HTML.

?Getting Started with HTML?

To start writing HTML code you should basically know few HTML tag (i.e: <html><head><title><body>)

 

?Basic Structure of HTML Page?

To design any HTML page you should follow the basic structure of a html page. Like follow:

This is the most basic HTML structure of a HTML page.

Next Lesson » What is Doctype & basic usage of <head> tags

125 votes, 5.00 avg. rating (99% score)

Add RSS feed into HTML page

Inserting RSS feed into any HTML page is sometimes necessary and it can make your site more informative.

To add RSS feed inro your HTML page please go to http://rssxpress.ukoln.ac.uk

And place your RSS feed URL here then they will generate a code. Just place this code into your HTML page where you want to show the feed. And have fun!!!! It’s easy.

Thanks

0 votes, 0.00 avg. rating (0% score)
© Copyright , Shaharia Azam
Close
Please support the site
By clicking any of these buttons you help our site to get better

Twitter

Facebook

Google+