2. Document Type Declaration
The <!DOCTYPE> declaration must be the very
first thing in HTML document before the <html>
tag
The <!DOCTYPE> declaration is not HTML tag it
is an instruction to the web browser about the
version of HTML page is written in.
Common Doctype declaration:
HTML <!DOCTYPE HTML>
3. HTML 4.01 strict
This DTD contains all HTML elements and
attributes but not include Presentational
Elements.
Example:-
<!DOCTYPE HTML PUBLIC”-//W3C//DTD
HTML 4.01// EN” http://www.w3.org/TR/html 4/
strict.dtd>
4. HTML 4.01 transitional
This DTD contains all HTML elements and
attributes including presentational elements
Example:-
<!DOCTYPE HTML PUBLIC”-//W3C//DTD HTML
4.01 Transitional// EN”
http://www.w3.org/TR/html 4/ loose.dtd>
5. Presentational Tags
b (bold)
i (italic)
tt (teletype)
sub (subscript)
sup (superscript),
big,
small and
hr (horizontal rule) are all presentational tags.
6. HTML TAGS
All HTML document contains a <html> and
</html> pair of tags.
The HTML Tag goes in the line right after doctype
declaration.
</html> is the last line.
7. Head Tag
<head> and </head> tags identify the documents head
area information not visible on your page, except title.
The following elements can go inside the <head>
element:
<link> :-defines a link between a document and an
external resource.
<base>:-specifies the base URL/target for all relative
URLs in a document
<title>:-displays a title for the page in search-engine
results
defines a title in the browser toolbar
8. <meta>:-used to specify page description, keywords,
author of the document, last modified, and other
metadata.
<style>:- is used to define style information for an
HTML document (internal CSS).
<script>:- is used to define a client-side script, such as
a JavaScript.
9. Meta tags
They are coding inserted in the head tag section
of web page that is not seen by the visitors but
communicate to the browser and search engines.
This tag specify information about the web
document.
Meta elements has two pairs, a property and
value assign to that property.
<meta name=“property name” content=“property
value”>
Where name identify the property with property
name, content sets the property value.
10. SEO Metatags
Search engines use the information contained in
the keywords meta tag and description meta tags
when indexing webpage
<meta name=“keywords” content=“Education,
Tribhuvan University, Nepal, BIM”>
11. Headline Tag
Headline tags as their name suggests, are used to
differentiate the heading of page from the rest of the
content.
These tags are also known as HTML header tags or
head tags or SEO heading tags.
The <h1> to <h6> are used to define HTML
heading
<h1> defines the most important heading
<h6> defines the least important heading
Syntax:
<h1 align=“center”> Asian College</h1>
12. Header tag from SEO point of view
Relevance:- SE spider checks the relevancy of the
header tags with the content associated with it.
Importance of h1 tag:- h1 tag should not be skipped
in the page. Spider pay attention towards the word
use in h1 tag.
Enriched user experience:- gives clear idea of what
the page content is about.