You are on page 1of 7

HTML EX 1

1. Always save file without sapce and ending with ".html"

2. HTML commands are always enclosed in '< >' called html tags

3. HTML progamming is divided into two parts

1. Container tag - having starting and ending tag

2. Empty tag - having only ending tag

4. Title means tab name

5. For heading use "<h1> with biggest font

6. For heading use "<h6> with smallest font

HTML EX 2
7. For background color use <body> for body or <body bgcolor="pink">

8. For bold use "<b>"

9. For underline use "<u>"

10. For italic use "<i>"

11. For paragraph use "<p>"

HTML EX 3
· Unnumbered list are called unordered list i.e. • ○ ■, etc.

· Numbered list are called ordered list i.e. 1.2.3.,etc

· <UL> and </UL> for Unnumbered list

· <OL> and </OL> for Numbered list

· <LI> </LI> for new list

· UL type = disc• or circle○ or sauare■


HTML EX 4
12. &lt for < and &gt for > Use in HTML to print <>

13. For ex this tag is used for &lt ul &gt

14. OL type = A or a or I or i or 1

15. A for Capital letters

16. a for lowercase letters

17. I for Capital roman numerals

18. i for Lowercase roman numerals

19. 1 for Arabic numerals

20. <OL type =A start =5>

21. In ordered list there is ol type start is 1 2,9,etc don't use G,g,IV,v,etc.

HTML EX 5
22. For inserting image use <IMG src="C:\Users\laksh\Downloads\Synegy.jpg">

23. IMG is for image & src is for source

24. Always use left side slash"\" in the file path

25. Always put the file name and path correctly

26. In the path the image name should be with the format

27. The path should be always enclosed in"filepath"

28. For height use height and width use width

29. The units are in px meaning pixel (don't write the unit)

30. height=100 width=100

31. Sometimes a older version of OS doesn't support the view of image means it will show a small
blank image instead of image. For this use alt tag (not compulsory to put)

32. Ex- <IMG src="C:\Users\laksh\Downloads\Synegy.jpg" alt=this is photo,image,etc. height=100


width=100>
Annual Course Complete
HTML EX 1-
<html>

<head>

<title>My first webpage</title>

</head>

<body> for background color use <body bgcolor="pink">

Hi everyone! for new line or break link use <br>

</body>

</html>

HTML EX 2-
<html>

<head>

<title>Lakshya Gandhi</title>

</head>

<body bgcolor="pink">

<b>Introduction to HTML</b><br><br>

<u>Hypertext Markup Language</u> (HTML) is a standard markup language for documents designed to
be displayed in a web browser.<br>

Web browsers receive HTML documents from a web server or from local storage and render the
documents into multimedia web pages<br>

HTML describes the structue of a web page semantically and originally included cues for the appearance
of the document.<br><br>

Headings: HTML headings are defined with the<i>h1</i> to <i>h6</i> with H1 being the<i>highest</i>
(or most important) level and H6 the least:<br><br>

<h1>Heading level 1</h1>


<h2>Heading level 2</h2>

<h3>Heading level 3</h3>

<h4>Heading level 4</h4>

<h5>Heading level 5</h5>

<h6>Heading level 6</h6></body>

</html>

⬇⬇HTML EX 2 PHOTO ⬇⬇

HTML EX - 3
<html>

<head>

<title>My favorite fruits</title>

<body>

<UL type=disc>

<LI>Apples</LI>

</UL>

<UL type=circle>
<LI>Mangoes</LI>

</UL>

<UL type=square>

<LI>Bananas</LI>

⬇⬇HTML EX 3 PHOTO ⬇⬇

</UL>

</body>

</html>

HTML EX 4-

<html>

<head>

<title>Lakshya Gandhi</title>

<body>

This tag is used for &lt ol &gt


<OL type=A>

<LI>Apples</LI>

</OL>

This tag is used for &ltol&gt

<OL type=1 start=13>

<LI>Mangoes</LI>

<LI>Apples</LI>

</OL>

<OL type=I>

<LI>Bananas</LI>

<OL>

</body>

</html>

⬇⬇HTML EX 4 PHOTO ⬇⬇
⬇⬇HTML EX 5 PHOTO ⬇⬇

You might also like