Home » Archive

Articles tagged with: HTML

Javascript »

[27 Nov 2009 | No Comment | 95 views]

Here, I will be demonstrating on showing or hiding a div when a link is clicked. I have done this with Javascript and CSS.
I have called showHideDiv() Js function when the link is clicked. The display of the div where content is present, is visible or hidden on each click. For this, CSS styling is used (display: none).

Javascript »

[17 Nov 2009 | No Comment | 367 views]

You can add html elements dynamically with Javascript. In this article, I will show you how to do so. I have created two Javascript functions. One for creating html elements and the other for removing them.
In my html elements, I have created ‘li’ and ’strong’ elements inside ‘div’. The div id is ’summary’. I have written comment in the code so that it would be easy to understand.

PHP »

[14 Nov 2008 | One Comment | 643 views]

Earlier I had written an article on How to get(view) html source code of a website . I had created an application and that would grab the html code of any website. In this article, I will be writing on how you can modify the looks of a website by changing the html source code after you grab it.
At first the html source code getting part. I have commented in the code for better understanding.

PHP, Tips and Tricks »

[2 Jul 2008 | 4 Comments | 1 views]

In this article, I will be illustrating about getting html source code of any website. I have done this in PHP.

HTML, PHP »

[9 Dec 2007 | No Comment | 196 views]

Problem:
I want to create a dynamic table with a row starting after certain number of columns, i.e. like, i want to create an html table which automatically generate new row after 3 columns in a row.
Solution:

$content = array(1, 2, 3, 4, 5, 6, 7, 8, 9);
<table border="1" width="50%">
<tr>
<?php
$counter = 0;
foreach($content as $data) {
if($counter != 0 && $counter%3 == 0) {
?>
</tr><tr>
<?php
}
?>
<td>
<?php echo $data; ?>
</td>
<?php
$counter++;
}
?>
</tr>
</table>

HTML »

[17 Jul 2007 | No Comment | 34 views]

Meta tags are HTML tags which provide information that describes the content of the webpage a user will be viewing.
Meta tags have two possible attributes:

CSS »

[23 Mar 2007 | No Comment | 24 views]

CSS Syntax Introduction
The CSS syntax is made up of three parts: a selector, a property and a value:
selector {property: value}