Learning how to write HTML is an important skill that any web designer should have. Below is a list of the most common HTML tags used to help beginners become familiar with this language.
1. <HTML></HTML> – are the opening and closing tags used at the beginning and end of each HTML file.
2. <HEAD></HEAD> – comes after the <HTML> tag and it is where information that is not displayed on the website can be found. It includes META tags, style sheets and Java Scripts.
3. <TITLE></TITLE> – is enclosed within the HEAD tags and it is where the title of the web page is placed.
4. <BODY></BODY> – it is within these tags that the things displayed on the website can be found.
5. <EM></EM> – the tag stands for emphasis. It replaced the <I></I> tags which were used to make the text inside the tags italicized.
6. <STRONG></STRONG> – are tags used to make the text within them bold.
7. <H1></H1> to <H6></H6> – are used for headers. Placing text within any of these tags makes the font larger or smaller than the normal text and bold.
8. <P></P> – placing text within these tags turns them into a single paragraph. A single line break is automatically added below the last line of the displayed text.
using System;
using System.Drawing;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Windows.Forms;
namespace CSharpapps
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
foreach (DriveInfo drive in DriveInfo.GetDrives())
{
try
{
textBox1.Text += drive.RootDirectory + " : "
+ drive.AvailableFreeSpace + " KB" + Environment.NewLine;
}
catch(IOException)
{
MessageBox.Show("Error : " + drive);
}
}
}
}
}
<?php
$filename = ‘test.csv’;
if (file_exists($filename))
{
print "The file $filename exists";
}
else
{
print "The file $filename does not exist";
}
?>
using System;
using System.IO;
namespace ConsoleApplication3
{
class Class1
{
static void Main(string[] args)
{
DirectoryInfo dirInfo = null;
if (Directory.Exists(@"d:\testdir1"))
{
dirInfo = new DirectoryInfo(@"d:\testdir1");
dirInfo.MoveTo(@"d:\testdir3");
}
}
}
}
<?php
$db = mysql_connect("localhost" , "username" , "password");
mysql_select_db("mysql" , $db);
$result = mysql_query("SHOW tables", $db);
while($row = mysql_fetch_row($result))
{
print("$row[0]<br>");
}
?>
using System;
using System.Net;
using System.Web.Mail;
class SimpleEmail
{
public static void Main()
{
string from = "youremail@email.com";
string to = "myemail@email.com";
string subject = "This is the subject line";
string body = "This is the body of the message";
SmtpMail.SmtpServer = "smtp.myemail.com";
SmtpMail.Send(from, to, subject, body);
}
}