Propeng
-
Content Count
13 -
Joined
-
Last visited
Posts posted by Propeng
-
-
Please help me find a program idea! I'm anxious to write a program, but I'm out of app ideas! I'm a beginner, and I have a basic knowledge of the following:
The basic statements.System.Windows.FormsCreating classes.Creating methods, properties and variables.Data types: int, string, bool, double, enum, float.SQL and databases.Any ideas?! -
NOTE: Don't use a rich text editor* for writing HTML code! Use Notepad in Windows, SimpleText in Mac or TextEdit in OSX, but you must set the following preferences for the HTML code to work!
- In the Format menu, select Plain Text.
- Open the preferences window from the Text Edit menu, then select "Ignore rich text commands in HTML files."
You can either use HTM or HTML file extensions. For more information, visit: http://filext.com/file-extension/htm/ for HTM or http://filext.com/file-extension/html/ for HTML.
Open your text editor, then type:<html><head>
<title>127.0.0.1 - My Test Page</title>
</head>
<body>
This is a test <b>H</b> <i>T</i> <u>M</u> <s>L</s>!
</body>
</html>
Save the HTML file as "test.html". In your browser, click "Open..." under the File menu. Select the file you've just saved, then click OK. The browser will display:
This is a test H T ML!
Firstly, the <html> tag tells your browser that this is the start of the page. The text between the <head> and the </head> tags is the header information that will be displayed in your browser. The text in the <title> and the </title> tags is the title of your page. The text between the <body> and the </body> tags is the main content of your web page. The rest of the tags are displayed in the next section.[/hr][hr=noshade]Basic Tags
There are lots of tags in HTML, but we'll only cover the basic ones now.
<i> - Italic
<u> - Underline<s>- Strikeout
<br /> - HTML doesn't preserve line breaks in code, so this tag is used to insert a line break. There's no closing tag for it.<del>- Same as Strikeout. Old browsers will ignore this tag.
<ins> - Same as Underline. Old browsers will ignore this tag.
<hr /> - Displays a horizontal rule. There's no closing tag for it.
<p> - A paragraph. (Usually put around a long block of text.)
<font> Tag
The <font> tag is used to set the font type and size of a text. It has two normal arguments which can be used all of them or one only. They are face="" and size="". The face argument is used to set the font type & the size argument is used to set the font size. The unset text is Times New Roman with font size 3.
Headers
In HTML, there are some pre-configured headers to use. Use numbers from 1 to 6, for example:<h1>This is a header</h1> <b><font size="6">This is another header</font></b>
There's no difference between the two lines. But in the first line, the <h1> tag is used. In the second line, the <font> and the <b> tag is used manually to set the size.[/hr]
To be continued...
-
Is this script correct?
index.php:
<?php if (isset($_COOKIE["disp_name"])) $_GET['name'] = $_COOKIE['disp_name']; else setcookie("disp_name", Anonymous, date()+99);?><html> <head> <title>Display Name - DZN</title> <!-- METAS --> <meta name="verify-v1" content="oyEmG+TJ87xHGXl8NQS6GHJ8rcRDkFG4oXnYWtqddGk=" /> </head> <body> <div align="center"> <form action="proccess.php" method="get"> <?php if ($_GET["name"]=="") {$_GET['name']="Anonymous";} ?> Dislpay Name: <input type="text" value=<?php echo $_GET['name']; ?> name="name" /> <input type="submit" value="Enter Website!" /> </form> </div> <?php $wn = "Download Zone Network"; $swn = "DZN"; ?> </body></html>
proccess.php:<head> <title>Proccessing Request...</title> <meta http-equiv="Refresh" content="1; URL=main.php" /> <b>Please wait...</b></head><?php setcookie("disp_name", $_GET['name'], date()+99);?>
main.php:<?php function customError($errno, $errstr) { echo "<div align='center'><b>Error:</b> [$errno] $errstr<br /></div>"; echo "<div align='center'>Ending Script</div>"; die(); }?><?php //Page Config. //REQUIRE $_GET['name'] = $_COOKIE['disp_name']; /* do: echo (remember) */ // echo $_GET['name'] // if ($_COOKIE['disp_name']=="") { $_GET['name'] = "Guest"; } function currentlyOnline() { echo ""; } set_error_handler("customError"); function showCO ($showCO) { echo "ddd"; } while ($showCO=="true") { showCO(); }?><?php echo "<title>Welcome back, " . $_GET['name'] . "! - DZN</title>"; showCO ($showCO); $showCO = "true";?>
(Not all the file; just the piece that encounters the problem)Everything goes fine, but when i enter main.php, it displays:
Error: [8]Undefined variable: showCO
Ending Script
Is this script wrong? If it has, please reply. I know that the problem is in the main.php only, but i copied all of them if you want to test it.
-
Knowledge
HTML stands for Hyper Text Markup Language.
You cannot create an HTML file using a rich-text editor, such as Microsoft Word or Wordpad.
HTML
To write a basic HTML, you will need to start with this:
<html>
The <html> tag tells the browser that this is an HTML page.To close any tag, the same tag will be repeted but with the "/" sign. For example,
<html> <head> <title>Page title</title> </head></html>
Did you notice the </title>, </head> & </html> tags? That's how we close the tag.The <HEAD> Tag
A <head> tag will include the <meta>, <title> and any other scripts that will NOT be viewed.
First, we will write a <title> that tells the browser that "Example" (Inside the <HTML> & the <HEAD> tags):
<title>Example</title>
Without the / tag, the script will NOT work!Then we will write the <meta>s:
<meta name="description" content="This is an example HTML script." /><meta name="keywords" content="example html tutorial learn" /><meta name="Other verification content, " content="such as Google Webmaster Tools verification meta.">
The "description" meta is the description that will apear if your website is indexed by search engines.The "keywords" meta will be the keywords that if any one search for "learn html", your website will apear because the desc. meta contains on of the requested keywords.
The <meta> tag will execute only if you put a "/" in before closing it. For example:
<meta /> NOT <meta>.
This page's result:
<html> <head> <title>Example</title> <meta name="description" content="This is an example HTML script." /> <meta name="keywords" content="example html tutorial learn" /> <meta name="Other verification content, " content="such as Google Webmaster Tools verification meta." /> </head><html>
BODYThis page is still blank, because we haven't created the <body> tag.
This tag is the basic tag, which contains all the contents that will apear on your page.
To create a simple page with the title "Example" & the contents "This is a test page.":
<html> <head> <title>Example</title> </head> <body> This is a test page. </body><html>
Basic text formatting<b> Bold,
<u> Underlined & finally...
<i> Italic text
These 3 tags are the most used, but not the all tags. To create a simple paragraph:
<p>This is a sample paragraph.</p>
To continue learning the HTML tags, scroll down.Using javascripts in HTML
To use javascripts in an HTML file, use the following:
<script type="text/javascript">document.write('Script Cotents');</script>
To use an external .js file:<script type="text/javascript" src="myjsfile.js"></script>
More HTML Tags__
__To continue learning the HTML tags, scroll down.
Using the <div align=""></div>
<div align="center"> Centered Text </div><div align="left"> Left-Aligned Text </div><div align="right"> Right-Aligned Text </div>
To create an image:<img src="http://mydomain.com/myimgfile.jpg" alt="Alternate text." />
The src is the image location.alt is the alternate text.
If you have created a stylesheet, you can add class="Class name.".
______________________________________
|That's all i have, but the post can be updated!|
-------------------------------------------------------
Next post:
How to create an SSL.
More HTML tags.
The <?php ?> tag.
AJAX.
Using the <noscript> & the <noframes> tags.
___________________________________
-
Of course it's Xisto, this points system is very interesting! Who knows that there's a forum that provides a "Post & Point" system?!Xisto! DUH! [ 97 ] [84.35%]
-
Heh, nice, but I agree with yordan. For the record, my current vote for Windows XP is only because I currently have it. I'm looking to make the switch to Linux. smile.gif
Anyway, remember that certain combinations go well together. For example, if you buy a new PC odds are you'll end up with some 30 day trial of antivirus XYZ, which you use until it runs out. Remember that popularity doesn't mean too much about how good the product is (within reason). Also, thoughts on putting up the option for firewalls? I know I use a generally unconventional one. wink.gif
Thanks, everyone i will try to ask some more people, but i think that these poll results are enough.Lucky strike, man !Of course, you can imagine, that, if you ask enough people, you will find the best solution.
Unfortunately, I am personnally convinced that you will find the most popular solution, not obviously the one which is the most suitable for you.
As a matter of fact, you are experiencing what is real life Democracy. Ask a lot of people what they are voting for, and you will probably obtain a solution with which you would not agree, but which is democratically elected.
Let's wait and see, who know, I would be really curious to see what will emerge from this.
For instance, if everybody votes for Linux, do you really need an antivirus ? Mc Afee says "yes, please buy one from us", of course, but some users think "no need".
-
Hi Everyone, the main reason of creating this poll is: If i upgrade my computer, which program is the most popular (So i will trust the the prog. that has the most votes) and i will buy it.
-
I use all of them & others, they are excellent especially Google Mail (GMail). I use the SMTP GMail server for my email (My web host doesn't allow SMTP servers but they have a POP3).
-
Approximately 70 sec. until log on but i have to wait another 60 sec. (until other programs boot ).
-
I have downloaded a trial version of TuneUp Utilities 2007, and was working fine after i completed the registration process. Next day, while using it, it dislpayed a pop up message:
Everytime i enter it, it says that this was correct, and it requires rebooting. But again, it displayes the "Not genuine" message. What can i do to fix this problem?This copy is not genuine!
You can't use TuneUp Utilities again unless you enter your registration key. You can enter it here.
-
Very strange situation, i just copy/paste your code and test it without errors, works fine, with which browser do you test your code?
Best regards
I'm using Firefox 2 on Windows (The first time i tested it, it was working fine.).
-
Hi Everyone, i just need to know that this javascript code is formatted correctly: (A piece of code that it's written BESIDE an HTML code.)
<body onLoad="alert('My Text Here');">My body contents</body>
|||Always keeps telling me that this was incorrect.
Any Program Ideas?!
in Programming
Posted · Report reply
Thanks! I'll try and develop a ToDo List, and when I finish it, be sure that I'll tell you!