The basic formatting that can be applied to a webpage is for the text. By default, the Times Roman forn at 12 points is used. This can be changes according to our desire by using the FONT tag as shown belo
FACE : allows you to specify the font name like Times Roman, Courier, Arial etc.
SIZE: allows you to give a number from 1 (size 8 points) to 7 (size 36 points).
COLOR: allows you to specify the name of the color you wish to apply to the text.
LEARN MORE>>
Showing posts with label Text. Show all posts
Showing posts with label Text. Show all posts
HTML Formatting
First we have to let the browser know that this file is indeed a HTML file. So the first code in any HTML file must be:
So it follows that at the end of the file we must give the tag .
The actual content of the page must be put within the BODY tag. though this is not compulsory, it gives you control of the basic look of the page by allowing you to specify the general font and background feature. LEARN MORE>>
So it follows that at the end of the file we must give the tag .
The actual content of the page must be put within the BODY tag. though this is not compulsory, it gives you control of the basic look of the page by allowing you to specify the general font and background feature. LEARN MORE>>
Input / Output with Files
C++ has support both for input and output with files through the following classes:
ofstream: File class for writing operations (derived from ostream)
ifstream: File class for reading operations (derived from istream)
fstream: File class for both reading and writing operations (derived from iostream)
Open a file
The first operation generally done on an object of one of these classes is to associate it to a real file, that is to say, to open a file. The open file is represented within the program by a stream object (an instantiation of one of these classes) and any input or output performed on this stream object will be applied to the physical file. LEARN MORE>>
Subscribe to:
Posts (Atom)