For Quiz Preparation for TGES ,Go to General Knowledge Section

Wednesday, January 11

HTML Programs for beginner

HTML

 (Programs & Codes)


All Programs are working . You can copy and paste in you notepad or Sublime or Notepad++.

 



First Program :-  Write a simple text on you r first web pages . 

 <html> 

<title>GK Site</title>

<head> Gopal's G.K.</head>

<body> 

<p> THis site is created by gopal sir</p>

</body>

</html>


After write this program  and save file like given in picture 👇👇


Click on Save with give the name like Gopalsite.html extension.

after save - open with your file in google chrome browser . 
Output is :- 

#2 Write a program to make text bold :- 


 <html> 

<title>GK Site</title>

<head> Gopal's G.K.</head>

<body> 

<p> This site is created by <B> Gopal sir </B> </p>

</body>

</html>


Save as Gopalstie.html

Output :- 




#3 Write a program to make text Italic :- 


 <html> 

<title>GK Site</title>

<head> Gopal's Website .</head>

<body> 

<p> This site is designed by <I> Gopal Sir. </I> </p>

</body>

</html>


here we use <I> tag ( it is used text italic style).

Output :-                        Gopal's Website 

                                        This site is designed by Gopal Sir.


#4 Write a program to make text Underline :- 


<html> 

<title>GK Site</title>

<head> Gopal's G.K.</head>

<body> 

<p> <U> This is underline text <U></p>

</body>

</html>

Output:-          Gopal 's GK

                        This is underlinetext

#5 Write a program to make text Center :- 

👉  <Center> tag used to center the object( text or image ) of the page.


<html> 

<title>GK Site</title>

<head> Gopal's G.K.</head>

<body> 

<p> <Center> <I> This is center tag example</I> </Center></p>

</body>

</html>

 

Output:-           Gopal'sG.K.

                                This is center tag example



No comments:
Write Comments

Please ask any question about gk related

Total Pageviews

Popular Posts

© 2014 SSC GK.in . Designed by Bloggertheme9 | Distributed By Gooyaabi Templates
Powered by Blogger.