0% found this document useful (0 votes)
13 views

HTML 1

htnl

Uploaded by

sumitroy8372
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

HTML 1

htnl

Uploaded by

sumitroy8372
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

HTML:-

It stands for Hypertext Markup Language. It is the most widely used language on
web. HTML is not a programming language but it is a markup language and it is used to
design Web Pages.

TAGS:-
 HTML Tags are the hidden keywords within a web page that define how your web
browser must format and display the content.
 Most tags must have two parts an opening and a closing part.
Example:- <HTML> <TITLE> <BODY> Etc.

Note:- To create HTML document or webpage we have to write codes in Notepad.


*******The file extension of html document is .html

1
Basic Structure of HTML:-
<html>
<head>
<title> This is document title</title>
</head>
<body>
:::::::::::::::::::::::::: ::::::::::::::::::::::::::
:::::::::::::::::::::::::: ::::::::::::::::::::::::::
</body>
</html>

Different tags in HTML:-

Headings
HTML provides levels of headings for organizing a document.
There are six levels of headers.
a) <H1> b) <H2> c) <H3> d) <H4> e) <H5> f) <H6>
2
Example:- <H1> my first webpage</H1>

Create Paragraph:-
The <p> element offers a way to structure your text. Each paragraph of text should
go in between an opening <p> and closing </P>.
Example:- <p> here is a paragraph of text </p>

Alignment
We learned about the <p> tag to create paragraphs. Alignment is a property of a
paragraph, so it is set as an attribute. The attribute name is align. It can take on one
of four values:
 Left
 Center
 Right
 Justify

3
Example:-
<p align="center">This part is centered </p>
<p align="right">This part is right-aligned </p>
<p align=“left">This part is left-aligned </p>

Notes
 The default alignment is left. If the align attribute is omitted, text is left-aligned.
 The justify alignment is a newer addition to the language and is not supported by
all browsers.
Create line breaks:-
The <br> tag is used to create line break.
Example:
Hello<br/> how are you?
Results:
Hello
how are you?
4
Horizontal Rules:-
<hr/> tag is used for horizontal rules.
Horizontal rules are used to visually break up sections of a document.

Bold Text:-
<b> tag is used make text bold. Anything that appears in a <b> .............</b> element
is displayed in bold.
Example:- <b>computer</b>
Results:- computer

Italic Text:-
<i> tag is used make text Italic. Anything that appears in a <i> .............</i> element is
displayed in Italic.
Example:- <i>computer</i>
Results:- computer

Underline Text:-
<u> tag is used to underline the text. Anything that appears in a <u> .............</u>
element is displayed with underline.
Example:- <u>computer</u>
Results:- computer
5
Font Size:-

• You can set the size of your font with size attribute.
• The range of accepted values is from 1 to 7.
• 1 is smallest size and 7 is the largest size.
• The default size of a font is 3.****

Example:- <font size=“6”> computer world </font>

Result:- computer world

Example:- <font size=“1”> computer world </font>


Result:- computer world

You might also like