HTML:BASIC HTML TAGS
Class 10th COMPUTER APPLICATION
Prepared by-RASHMI DWIVEDI
Introduction:
Everything that you see on web is documents
written in a special language called HTML or
Hypertext Markup Language.
This language tells the browsers how to
display text, pictures and links on the screen.
HTML is markup language not a
programming language.
HTML was created by Sir Tim Berners Lee in
1991.
HTML5 is the latest version of HTML.
Writing HTML Documents
HTML document structure
Every HTML document should follow this
general form:
<HTML>
<HEAD><TITLE>Title of page is written
here.</TITLE></HEAD>
<BODY>The HTML tags that define your page
go here
</BODY>
</HTML>
BASIC HTML TAGS:
1.The HTML tag -This tag identifies the
document as an HTML document. An HTML
document begins with <HTML > and ends with
</HTML>.
Ex-<HTML>
…..HTML document lines here
</HTML>
Attributes of HTML tag are-
<HTML lang=en>
<HTML dir=ltr or rtl>
2.The HEAD Tag(Document Header)
Type-Container Tag
Function-it defines the header
Contains-<meta >tag,<title >tag,<style>tag,
<script tag>
Used Inside-<HTML>tag
The meta tag-
In HTML5 ,you define character set through
charset meta tag, UTF -8 is the preferred
charset.
<HEAD>
<META charset-”utf-8”/>
<HEAD>
3.The TITLE tag(Document Title)
Type-Container Element
Function-It defines the document title
Contains-Plain text
Used Inside-Head tag
Ex-
<HEAD>
<TITLE>…</TITLE>
</HEAD>
4.The BODY Tag(Document Body)
Type-Container Element
Function-Defines the document’s body
Attributes-
Background,Bgcolor,Text,Alink,Vlink,Topmargi
n,Leftmargin
Contains-Body context i.e.all tags that controls
the appearance of the body of the web page.
Such as text, images,lists,tables,hyperlinks etc.
Ex-<BODY>……….</BODY>
Ex-To display the web page title as “my first
HTML page”
<HTML lang=en>
<HEAD>
<META charset-”utf-8/”>
<TITLE>My First Web Page</TITLE>
</HEAD>
<BODY>
Hello! Welcome here.
</BODY>
</HTML>