Posts

Showing posts with the label html

In Creating your Website you need

Text Editor   - you will need this to write your web pages.   The very basic tool for your text editor is the NOTEPAD. But today, you can use different tools such as Notetab, Dreamweaver, Notepad++, etc. Browser – this will be the tool to see how your web pages will look like FTP -  According to Holzschlag, “File Transfer Protocol (FTP) is one of a variety of protocols that run on the Internet.  An FTP client allows you to transfer any kind of file from a local computer to a remote server, and depending upon the capabilities of the client you’re using, perform important functions such as changing file permissions.” Source:  Holzschlag, M. E. (n.d.). 250 HTML and Web Design Secrets. Wiley Publishing, Inc.

How to create a VCF card?

First you need to call your settings and generate a vcf. You can even create an image or create a button  rather than text to give more style on your website. Code:  <a href="vcard.settings.php">Download VCF Card</a>  Below is a sample file called vcard.settings.php require_once('./vcard.class.php'); //Path of your vcard class $vc = new vcard(); //Creating new vcard object $vc->filename = "Melanie Borja"; $vc->revision_date = ""; //If you leave this blank, the current timestamp will be used. $vc->class = "PUBLIC"; /* Contact's name data.*/ $vc->data['display_name'] = ""; $vc->data['first_name'] = "Melanie Kaethleen"; $vc->data['last_name'] = "Borja"; #$vc->data['additional_name'] = ""; //Middle name #$vc->data['name_prefix'] = "";  //Mr. Mrs. Dr. #$vc->data['name_suffix'] = ...

CSS & Javascript Style

Changing the style of an object is as simple as finding the object on the page, then setting the new style value. Use the code below as an example. //Find the div you want to update var divResponse = document.getElementById('response'); //Set the width style divResponse.style.width = '300px'; CSS attribute names are slightly different when used in JavaScript, so you will need to reference the list below before you get frustrated and pull your hair out. CSS Attribute to JavaScript Reference CSS Property JavaScript Reference background background background-attachment backgroundAttachment background-color backgroundColor background-image backgroundImage background-position backgroundPosition background-repeat backgroundRepeat border border border-bottom borderBottom border-bottom-color borderBottomColor border-bottom-style borderBottomStyle border-bottom-width borderBottomWidth border-color borderColor border-left borderLeft border-left-color bor...

How to pass value from database to javascript?

PHP is a server-side script while javascript is a client-side script. Javascript cannot actively read variables from server. But from a page loads, PHP can pass variables to Javascript by writing to the page the Javascript is on. Example: Code: <?php $name = "Melanie"; ?> <script language="javascript" type="text/javascript"> var name = "<?php echo $name; ?>"; document.write(name); </script> Output: Melanie That is the simple way of passing value from php to javascript. And that example will be very useful on passing values from sql to php to javascript. Let's say that we have a database called portfolio,  with a table cycler has column of path and title. We can use code like this: Code: <?php //Connecting to database $connection = mysql_connect('localhost, 'password', 'username'); $sql = mysql_select_db('portfolio', $connection); //Getting table in databa...
Title tag is one of the attribute of <a> tag. Title tags plays an important role in letting the search engine knows what the link is about and what is it pointing to. These attributes doubles the SEO power for your link. Things to remember: Keyword should be prominent in link Must add title attributes Separate multiple words in keywords with dashes "-". Your links URL must not be very long Example: <a href="kaethleenborja.com" title="Melanie Borja Porfolio">Melanie Borja's Portfolio</a> This gives the web crawlers/spiders a direct and perfect view that this link is about the Portfolio of Melanie Borja and is pointing to a page where you can find stuff related to portfolio.

SEO: Meta Tag

The word Meta  means information about. Meta tags list information about the web page, such as the author, keywords, description, type of document, copyright, and other core information. Three examples for using the keywords meta tag are: 1. To include synonyms of words that are not included in the content of your page. People search on many variations of words and phrases. Sometimes it is hard to include all of the different variations of those words in the content of your page without making your page sound like a keywords page. 2. To place emphasis on certain words. It is not always easy to place your major keywords at the top of your page or in a <h1> tag. Your major keywords might not be introduced until the middle of your page. Using the keywords meta tag, you can add these keywords to inform the search engines that these words are important. Remember two important rules when using this tag: When emphasizing keywords, do not place the same keyword more than two ti...

Print vs Echo

echo() is a language construct, so you are not required to use parentheses with it. If you ever need to pass more than one parameter to echo(), the parameters must not be enclosed within parentheses. print() behaves as a Function, but is not actually a function. print is sometimes mistaken as a function by many programmers since it sets a return value, but it is also a language construct like echo. It simply outputs a string of data. And you are not required to use parentheses with it.

phpMyAdmin Features

PhpMyAdmin features are as follows: User-friendly web interface; Support for most MySQL functions like browse, drop, create, copy and alter databases, tables, views, fields and indexes, execute MySQL queries, manage stored procedures and functions; Import data from CSV and SQL files; Export data to various formats: CSV, SQL, XML, PDF, ISO/IEC 26300 - OpenDocument Text and Spreadsheet, Word, Excel, LATEX and others; Searching globally in a database or a subset of it; Source: http://www.phpmyadmin.net/home_page/index.php

What is HTML?

HTML , Hypertext Markup Language, is the main programming structure for web pages and browser software. It provides us a means of laying out and structuring our web pages using paragraphs, images, lists, indents, boxes, tables, colors, padding, and many more data structuring methods common to most data processing systems. HTML defines the structure and layout of a Web document by using a variety of tags and attributes. The correct structure for an HTML document starts with <HTML><HEAD>(enter here what document is about)<BODY> and ends with </BODY></HTML>. All the information you'd like to include in your Web page fits in between the <BODY> and </BODY> tags.