Sunday 11 September 2016

HTML Editors and HTML Basic Examples


Tutorial #2:
HTML Editors and HTML Basic Examples
Hi Friends Today we will learn about HTML editors and HTML Basic Examples J
Todays Topics are:

1.                  HTML Documents

2.                  HTML Headings

3.                  HTML Paragraphs

4.                  HTML Links

5.                  HTML Images


HTML Editors:

Write HTML Using Notepad or TextEdit

Web pages can be created and modified by using professional HTML editors.
However, for learning HTML we recommend a simple text editor like Notepad (PC) or TextEdit (Mac).
We believe using a simple text editor is a good way to learn HTML.
Follow the four steps below to create your first web page with Notepad or TextEdit.

Step 1: Open Notepad (PC)

Open Notepad in Windows 8 or later:
Open the Start Screen (the window symbol at the bottom left on your screen). Type Notepad.Open Notepad in Windows 7 or earlier:
Click Start (bottom left on your screen). Click All Programs. Click Accessories. Click Notepad.

Step 1: Open TextEdit (Mac)

Open TextEdit.
Please be sure that the text editor is set to plain text. Go to: Preferences > New Document > select plain text.
Also make sure both "Display html file as html code" and "Display RTF file as RTF code" options are checked under "Open and Save".
Then open a new document to place the code.

I will recomend you to Use Sublime Text Editor
HTML Basic Examples
Don't worry if these examples use tags you have not learned.
You will learn about them in the next Tutorials. J

HTML Documents

All HTML documents must start with a document type declaration: <!DOCTYPE html>.
The HTML document itself begins with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.

Example

<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

HTML Headings

HTML headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important heading: 

Example

<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>

HTML Paragraphs

HTML paragraphs are defined with the <p> tag:

Example

<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

HTML Links

HTML links are defined with the <a> tag:

Example

<a href="http://www.w3schools.com">This is a link</a>

HTML Images

HTML images are defined with the <img> tag.
The source file (src), alternative text (alt), and size (width and height) are provided as attributes:

Example

<img src="w3schools.jpg" alt="W3Schools.com" width="104"height="142">
  

Saturday 10 September 2016

Introduction to HTML

HTML Tutorial #1: Introduction to HTML
Hi Friends My Name is IJAZ UR RAHIM
I am here to teach you HTML and CSS Languages J
So today, we will only introduce HTML.
That what is HTML?
J
HTML:
HTML is a markup language for describing web documents (web pages).
Markup languages are designed for the processing, definition and presentation of text.
The language specifies code for formatting, both the layout and style, within a text file.
The codes used to specify the formatting are called Tags. 
HTML is an example of a widely known and used markup language.
  • HTML stands for Hyper Text Markup Language
  • A markup language is a set of markup tags
  • HTML documents are described by HTML tags
  • Each HTML tag describes different document content
Example:
<!DOCTYPE html> 
<html> 
<head> 
<title>Page Title</title> 
</head> 
<body>
     <h1>This is Heading</h1> 
     <p>Ths is Pharagraph<p>
</body>  
</html>

Example Explained
  • The <!DOCTYPE html> declaration defines this document to be HTML5
  • The text between <html> and </html> describes an HTML document
  • The text between <head> and </head> provides information about the document
  • The text between <title> and </title> provides a title for the document
  • The text between <body> and </body> describes the visible page content
  • The text between <h1> and </h1> describes a largest heading
  • The text between <p> and </p> describes a paragraph
Using this description, a web browser will display a document with a heading and a paragraph.

HTML Tags
HTML tags are keywords (tag names) surrounded by angle brackets:
<tagname>Something Written here J</tagname>
  • HTML tags normally come in pairs like <p> and </p>
  • The first tag in a pair is the start tag, the second tag is the end tag
  • The end tag is written like the start tag, but with a forward slash inserted before the tag name
The start tag is also called the opening tag, and the end tag the closing tag.
Web Browsers
The purpose of a web browser (Chrome, IE, Firefox and Safari) is to read HTML documents and display them.
The browser does not display the HTML tags, but uses them to determine how to display the document:
HTML Page Structure
Below is a visualization of an HTML page structure:

Note: Only the content inside the <body> section (the white area above) is displayed in a browser.

The <!DOCTYPE> Declaration
The <!DOCTYPE> declaration represents the document type, and helps the browser to display a web page correctly.
It must only appear once, at the top of the page (before any HTML tags).
There are different document types. To display a web page correctly, the browser must know both type and version.
The doctype declaration is not case sensitive. All cases are acceptable:
Case1: <!DOCTYPE html>

Case2: <!doctype HTML>
TYPES OF <!DOCTYPE> Decleration

HTML5

<!DOCTYPE html>

HTML 4.01

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

XHTML 1.0

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">





Featured Documents

Customization

View more

Tips and Tricks

View more

Image Documents

View more

Tutorials

View more

Legal Documents

View more

Getting Started

View more