Thursday, September 11, 2014

Bold Italic and Underline tag in html

biu-page-0

Bold:
To make a text bold in html we have to use bold <b> element, it is an inline element it means you can use it within the line and the effect of this tag is also applicable on the same line. The contents placed in between <b> bold tag is looks bold if you use this tag.
Example:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<p>This is a Paragraph with <b>Bold</b> Tag.</p>
</body>
</html>
  Output:
bold
Italic:
To make a text italic we have to use <i> tag, it is also an inline element.
Example:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<p>This is a Paragraph with <i>italic</i> Tag.</p>
</body>
</html>
Output:
italic
Undeline:
To make a text underline we have to use underline tag (<u>) it is also an inline element.
Example:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<p>This is a Paragraph with <u>Underline</u> Tag.</p>
</body>
</html>
 Output:
underline

Friday, September 5, 2014

What is CSS?

What is CSS?
 
 
 
 
 
 
1 Vote



CSS stands for Cascading Style Sheet.
What CSS does?
CSS allows you to create rule’s that specify how the content of an element should appear.For example, you can specify that the background of the page is white, all paragraphs should appear in gray using the Arial typeface, or that all level one headings should be in a blue, italic, Times typeface.
We can use CSS in three way to our html page.
Inline CSS style: In this type of CSS style we have to embed style within the HTML element.
Example:
<h1 style="color:blue">Blue Heading</h1>
Internal CSS Style: In this type of CSS style we have to write CSS styles in the head section of the html page.
Example:
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>CSS Style</title>
<style type="text/css">
h1{
Color:Blue;
}
</style>
</head>
<body>
<h1>Blue Heading</h1>
</body>
</html>
Output:

internal_css

External Style Sheet: In this type of CSS we have to create a external page for style and save it with .css extension then embet it to the html page in the head section.
Example:

/*Cascading Style Sheets*/
h1{
color:red;
}
style.css the name of the external style sheet and we have to link this page to html page where we want to apply this style.
Example:
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>External Style</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>Blue Heading</h1>
</body>
</html>
Output:
external_css

What is PHP ?

PHP (recursive acronym for Hypetext Preprocessor) developed by Rasmus Lerdorf  in 1995.It is aServer-side scripting-language, and runs on server.It is used to manage dynamic content, databases, session tracking, even build entire e-commerce sites and is integrated with a number of popular databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server. PHP widely used as open source general purpose scripting language and it can be easily embedded with Html.You can write the php code in the html page and embed with html elements.PHPcode specially enclosed with opening  <?php  and closing  ?> tag.We should always write php codes in between php opening and closing tag otherwise the code will not run/work.
Read more:
Best thing about PHP are it is extremely simple for newcomer and offers many advanced feature for the professional programmer/developer.
Example of  a PHP script :

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
echo "Hello, Welcome to PHP Programming!"
?>
</body>
</html>
     Output :
first-script