Friday, October 12, 2018
Attributes of HTML tags
October 12, 2018
pramod kumar mishra
* Attribute always comes in name and value pair.
<html>
Thursday, October 11, 2018
Structure of HTML
October 11, 2018
pramod kumar mishra
Structure of HTML:-
HEAD TAG:-
In this section title is written in title open and close tag. In this section we also write java script code and code for connecting CSS(Cascading Style Sheet).
BODY TAG:-
In this section we write the the content of the HTML page.
HTML ELEMENT:-
All HTML tag are the predefined keyword written within the angle brackets ('<' and '>') . Each tag has a specific meaning. So for writing the HTML code we must remember these predefined tags.
An HTML element is a tag pair enclosed with displayable contents.
<p> This is SRPS. It is very nice.</p> is the example of HTML elements. There are two types of HTML elements.
Container element:-
Container element or container tag are those elements who has opening and closing tag and can contain other HTML elements.
Empty element:-
Empty element or empty tag are those elements who doesn't have closing tag. It is having only opening tag. example <img>, <br>,<hr> etc.
Below is the example of container and empty elements.
<html>
<head>
<title>SRPS</title>
</head>
<body>
<p>This is SRPS. It is located at purana dhakhana basti uttarpradesh </p> <!-- container elements -->
<hr width="80%" size="10px"> <!-- empty elements -->
<p>end of the this content.</p> <!-- container elements -->
</body>
</html>
Structure of HTML TAG
Special characters in HTML:-
There are some special characters in HTML which we can't use directly in HTML documents like >,<, &, ", blank space etc.
Characters symbol
> >
< <
& &
" "
Blank Space
etc.
Tuesday, October 9, 2018
static keyword in C++
October 09, 2018
pramod kumar mishra
Static keyword description:-
A static keyword can be applied with member variable as well as member function of the class. If we define a variable is static then that variable will be global that means variable will be the part of class not of the object. Memory allocation for the static variable will be done by only once. Static variable will be shareable to each and every object and its memory will be allocated only once at the time of class creation.
The variable and the function which are the part of the object is called instance variable. Static variable is called class variable. If we do not provide the initial value to the object variable then it will take garbage value and static variable will take default values.
How to make a variable static:-
We can make a variable as a static by simply write keyword static before variable name. There are necessary condition to define that variable outside the class.
Data type of variable Class-name:: variable-name;
we can also initialize by our own value to here by code
Data type of variable Class-name:: variable-name value;
#include <iostream>
#include<conio.h>
using namespace std;
class pramod
{
public:
int a; //if don't initialize instance variable then it will
static int b; //take garbage value(Any value defined by compiler)
void add(void);
};
int pramod::b;
void pramod::add()
{
cout<<a<<endl;
cout<<pramod::b;
}
int main()
{
pramod ab;
ab.add();
return 0;
}
Static Function:-
If we write static keyword before member function then that function will be the static function.
Necessary Condition for function:-
1. If a variable is static then it may or may not written in static function.
2. If a function is static then it must contain only static variable.
3. A static variable or a static function will be called by class name but it can be called by object name also.
#include<conio.h>
using namespace std;
class pramod
{
public:
int a;
static int b;
void add(void);
static void add1()
{
//cout<<a; //we can not write non static variable in static
cout<<b<<endl;
}
};
int pramod::b;
void pramod::add()
{
b++; //retain its previous values.
cout<<b<<endl;//static variable is written in non static function.
}
int main()
{
pramod ab;
ab.add();
ab.add();
pramod::add1();
cout<<ab.b; //call static variable by object name no problem
return 0;
}
Characteristic of HTML and Introduction of Client Server Architecture
October 09, 2018
pramod kumar mishra
Characteristics of HTML:-
1. It is easy to understand because it does not require any programming language to write the code.
2. It is platform independent that means it can be displayed on any platform like Windows, Linux, and BOSS etc.
3. It can run on any web browser (like Mozilla, Firefox, Opera, and Internet Explorer etc) that means it is not dependent on web browsers.
4. It provides flexibility to add audio, video, animation, 3D-picture for making our page more attractive.
5. It is not case sensitive that means if we write HTML and html it means same.
6. It is having some predefined tags by the help of that tags we make our web pages.
7. By the html we create only static web page (i.e. structure of web page) but by the programming language we create dynamic web page.
Use of HTML:-
Before starting to write code of mark up language we should know what is the need of HTML.Web browser (Client) is software which is responsible to run the content of WWW (World Wide Web). These content are pictures, audios, videos and web pages.
Web server is also computers which are responsible to keep our html pages. It gives response when it is asked by the web browser in the from HTML page. So it is the responsibility of Web browser to render the code of the HTML and show to the user. It is clear that Web browser play a very important role.
Monday, October 8, 2018
Html Description
October 08, 2018
pramod kumar mishra
About Html:-
Html stands for hyper text markup language. It is not a programming language. It is used to design static web pages. A web server is a collection of web pages and these web pages are html pages. These web pages are connected with each other with the hyperlinks.
History of Html:-
Tim Berners-Lee is the innovator of the Web. In 1989, Tim was working in a processing administrations segment of CERN when he concocted the idea; at the time he had no clue that it would be actualized on such a gigantic scale.
Html is a subset of SGML(Standard Generalized Markup Language). It contains a lot of predefined tags which are used to form the layout of the html. SGML was developed by International Organisation For Standards in 1986.
Versions of Html:-
Html 1.0 is a hybrid of SGML, it was having only 20 elements and right now 13 elements is the part of version 4.01. After Html 1.0 different version came in the market like html 2.0, html 3.0, html 4.0 and the latest version is html 5.0.
Html 4.01 was the latest version of the html but it was replaced by the XHTML(extended hyper text markup language). Html was completely substituted not only Html 4.01 but also XHTML.
| Version | Year |
|---|---|
| HTML | 1991 |
| HTML 2.0 | 1995 |
| HTML 3.2 | 1997 |
| HTML 4.01 | 1999 |
| XHTML | 2000 |
| HTML5 | 2014 |
Where you can write the code of HTML:-
My suggestion is to the beginner write your code on notepad or notepad++ and save it to with dot(.)html or dot(.) htm.
There are a lot of IDE(Integrated Development Environment) where you can write your html code. These IDE will give some hints about the html elements and many different problems so it will not be good for starter.
After typing the html code in to the notepad it will be saved as .html(or .htm) extension. Any existing browsers are responsible to run our html code.
Saturday, October 6, 2018
This program show that each object in c++ allocate seprate memory
October 06, 2018
pramod kumar mishra
Font and Basefont tag of html in a very easy way.
Difference between font and basefont tag in html:- Font tag is a container tag. Basefont tag is empty tag. We can apply font tag in a ...




















