HTML
What is HTML?
Hyper Text Markup Language also known as HTML is a web development or designing language. It is used to design and create website's in easy and simple way. HTML is used to designing web page in order to obtains colors, style, pictures, etc. HTML program is written in NOTEPAD. HTML program save file name with (.html). Its output show in my recent document. You can see output of HTML program in web browser.
Note:- Every program start with <.....> and ends with </......>.
The starting and ending of HTML could be same otherwise the program with run is different way. For example: <HTML> </HTML>
There are some HTML tags or Attributes, which are shown below:
<pre>,<bgcolor>,<font size>,<b>,<font size color>,<font size color face>,<i>,<h1 align>,<p>,<sup>,<sub>,<background>,<marquee>,<img height width>,<h space>,<v space>,<src>,<li>,<ol>,<ul>,<hr>,<a href>,<th>,<td>,<tr>,<iframe>,<br>,<select>,<option>,<label>,<input type>,<id>,<value>.
Now let's Start with some of the HTML Programs. Which are given below with complete programming and with their outputs also.
Program-1
The First Program of HTML is very simple. In this program we use some HTML Tags like title, head and body.
Program-2
The Second Program is for the HTML Tag which is <pre>. It is used to show the output as same as the matter which written on program. You can also see in the Output of this program.
Program-3
In this program you can change the color of background with any color which is similarly shown in white itself.
Program-4
In this program you can use Bold, Italic and Underline styles to the font. Which improves the beauty of text.
Program-5
In this program you are able to change the size of font to bigger and smaller. But there is one condition you cannot change the size to greater than 8 or maybe 9 which is not confirmed.
Program-6
In this program you are able to change the size and color of text. Yes, you can choose any color in it. It also have a condition, which is, if you write any name( any type of name, it maybe be yours or anything) it also pick color with randomly . For example, you write apple so it may show some different color instead of red.
Program-7
In this program you are able to add font family also. In upper two programs you can change the size and color of texts but it this, you can also change the font family using "face" attribute or Tag.
Program-8
In this program you are able to add headings of the text with alignments also. You can add different headings and alignments both, as you want.
Program-9
In this program you can use mathematical or scientific code . You can use superscript and subscript in this program very easily. Subscript and Superscript both are used in some math and science equations.
Program-10
In this program you are able to add picture in the background in output. First, you have to choose the picture or image ,whatever to want to say, and then copy the location of that picture and paste the location in Background Tag. And then run the program , you will able to see picture inserted in background.
Comments
Post a Comment