Website: 1. How To Insert Table in Website
Website: 1. How To Insert Table in Website
Step 1 Open up a text editor (remember, Simple Text for Mac and Notepad for Windows.
Step 2 Enter the following code:
<html>
<head>
<title> This is a page using tables </title>
</head>
<body bgcolor="ffffff" text="000000">
<h1>A Web Page Using Tables</h1>
<table border="1">
<tr>
<td>This is column one</td>
<td>This is column two</td>
<td>This is column three</td>
</tr>
</table>
</body>
</html>
Step 3 Save the file as table1.html
One of the things you may want to do as you develop your website is to modify the
appearance of the text on your web pages. For example, you may want to use a
different font for the words, or you may want to put some text in bold or italics. Or
perhaps you may even want to change their colour ("color" if you useUS English). This
chapter shows you how you can do these things using the BlueGriffon web editor.
Please note this is the third chapter of the BlueGriffon tutorial series. If you are not
familiar with BlueGriffon, you may want to start from chapter 1 since I will assume that
you already know the things that I've covered in the previous chapters. In addition, if you
are completely new to web design, it may be best to begin with the article How to
Create / Make a Website.
1. Firefox
In dialog box: General (in the left pane), Windows
Menu items:Tools > Options
Macintosh Menu items: Firefox > Preferences
Fonts & Colors (button)
2. Opera
Windows Menu items: Tools > Preferences
Macintosh Menu items: Opera > Preferences
In dialog box: Fonts and Page Style (in the left pane)
<head>
<title>An XHTML 1.0 Strict standard template</title>
<meta http-equiv="content-type"
content="text/html;charset=utf-8" />
</head>
<body>
</body>
</html>
2. The navigation menu on a website is like a road sign on a street or a level directory
in a shopping mall. You cannot reach your destination without first knowing where
you are. Like in real life, navigation in web design is very important and plays a major
role in a websites usability as well as in user experience.
Users wont find it confusing because they already have experience with
menus like this.
1. Your background image should be seamless otherwise it will look awkward and
unattractive.
2. Your background image should contain either mostly light or mostly dark
colours to facilitate choosing an appropriate contrasting text color.
3. Your web page text color and the general color of your background image must
contrast enough to render readability.
Seamlessness
When an image is seamless, its opposing edges match up and blend together such that when the
image is tiled, the seams between the tiles are indistinguishable. Let's use mycoolpic.gif from
the previous page in this tutorial to further illustrate.
3. Finished product:
You can use javascript, place this where you want the text to display (NOTE: If you are using
a webpage editing program like frontpage, dreamweaver or similar you will need to be in
source or code view for inserting this to work)
Code:
<script type="text/javascript">
<!-var m = "This page was last updated: " + document.lastModified;
var p = m.length-8;
document.writeln("<center>");
document.write(m.substring(p, 0));
document.writeln("</center>");
-->
</script>
<script type="text/javascript">
onload = function(){
document.getElementById("lastModified").innerHTML = "Page last changed " +
document.lastModified.split(" ")[0];
}
</script>
3. PHP Code:
<script type="text/javascript">
var pcs = document.lastModified.split(" ")[0].split("/");
var date = pcs[1] + '/' + pcs[0] + '/' + pcs[2];
onload = function(){
document.getElementById("lastModified").innerHTML = "Page last changed " +
date;
}
</script>
8.Page Brake
There are several strategies you can use to insert page breaks within an HTML document, thus
ensuring that the printed document does not break over lines, graphics, etc. There are
limitations, however, and these are listed below.
1.Summary
1. auto
2. Applies toblock-level elements in the normal flow of the root element. UA may also apply it to
other elements like table-row elements.
3. Inheritedno
4. Mediavisual, paged
5. Computed valueas specified
6. Animatableno
7. Canonical orderthe unique non-ambiguous order defined by the formal grammar
2.Syntax
Formal syntax: auto | avoid
page-break-inside: auto
page-break-inside: avoid
page-break-inside: inherit
Specifications
Specification
Status
Comment
Working Draft
specification.
Recommendatio
n
Initial definition.
Conclusion