Top Banner
Design your first Website HTML & CSS Bunty Jain, IT Training, SAP, [email protected] Delhi India.
32

Design your first website using HTML

May 17, 2015

Download

Technology

Bunty Jain

Design your first website using HTML
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Design your first website using HTML

Design your first Website

HTML & CSS

Bunty Jain, IT Training, SAP, [email protected] Delhi India.

Page 2: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

Website Designing

An Overview

Page 3: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

Web Components

Clients and ServersInternet Service ProvidersWeb Site Hosting ServicesDomains Names

Page 4: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

With HTML you can create your own Web site

HTML is easy to learn - You will enjoy it.

Page 5: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML is a language for describing web pages.

HTML stands for Hyper Text Markup Language

A markup language is a set of markup tags

HTML uses markup tags to describe web pages

HTML Tags

Page 6: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML markup tags are usually called HTML tags

HTML tags are keywords surrounded by angle brackets like <html>

HTML tags normally come in pairs like <b> and </b>

The first tag in a pair is the start tag, the second tag is the end tag

HTML Tags

Page 7: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

<html> <body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body> </html>

HTML Format

Page 8: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

Editing HTMLHTML can be written and edited using

many different editors like Dreamweaver and Visual Studio.

However, in this tutorial we use a plain text editor (like Notepad) to edit HTML.

Page 9: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

.HTM or .HTML File Extension?

When you save an HTML file, you can use either the .htm or the .html

file extension. There is no difference, it is entirely up to you.

Page 10: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML Headings

HTML headings are defined with the <h1> to <h6> tags.

Example <h1>This is a heading</h1>

<h2>This is a heading</h2> <h3>This is a heading</h3>

Page 11: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML ParagraphsParagraphs are defined with the <p> tag.

Example

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

Page 12: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML Links

HTML links are defined with the <a> tag.

Example <a

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

Page 13: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML Images

HTML images are defined with the <img> tag.

Example

<img src=“subjectelement.jpg" width="104" height="142" />

Page 14: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

Nested HTML Elements<html>

<body> <p>This is my first paragraph.</p>

</body>

</html>

Page 15: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

The <body> element<body>

<p>This is my first paragraph.</p> </body>

The <body> element defines the body of the HTML document.

Page 16: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

The <html> element:<html>

<body> <p>This is my first paragraph.</p>

</body>

</html>

The <html> element defines the whole HTML document.

Page 17: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

Don't Forget the End Tag

Some HTML elements might display correctly even if you forget the end tag:

<p>This is a paragraph

The example above works in most browsers, because the closing tag is considered optional.

Never rely on this.

Page 18: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML Tip: Use Lowercase Tags

HTML tags are not case sensitive:

<P> means the same as <p>

Page 19: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML AttributesAttributes provide additional information about an

element

Attributes come in name/value pairs like: name="value“

Example <a href="http://www.subjectselement.com">This is a

link</a>

Page 20: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML Horizontal LinesThe <hr /> tag creates a horizontal line in an

HTML page.

<p>This is a paragraph</p> <hr />

<p>This is a paragraph</p> <hr />

<p>This is a paragraph</p>

Page 21: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML CommentsComments can be inserted into the HTML code to make it more readable and understandable.

Comments are written like this:

<!-- This is a comment -->

Page 22: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML Tip - How to View HTML Source

Have you ever seen a Web page and wondered

"Hey! How did they do that?"

To find out, right-click in the page and select "View

Source" (IE)

Page 23: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML Line BreaksUse the <br /> tag if you want a line break (a

new line) without starting a new paragraph:

Example

<p>This is<br />a para<br />graph with line breaks</p>

Page 24: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML Text Formatting

This text is bold

This text is big

This text is italic

Page 25: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML Formatting Tags

HTML uses tags like <b> and <i> for formatting output, like bold or italic text.

Page 26: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

The HTML <font> Tag<p>

<font size="5" face="arial" color="red"> This paragraph is in Arial, size 5, and in red text color.

</font> </p>

<p> <font size="3" face="verdana" color="blue">

This paragraph is in Arial, size 5, and in red text color. </font>

</p>

Page 27: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML Tables<table border="1">

<tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td>

</tr> <tr>

<td>row 2, cell 1</td> <td>row 2, cell 2</td>

</tr> </table>

Page 28: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML Table Headers<table border="1">

<tr> <th>Header 1</th> <th>Header 2</th>

</tr> <tr>

<td>row 1, cell 1</td> <td>row 1, cell 2</td>

</tr> <tr>

<td>row 2, cell 1</td> <td>row 2, cell 2</td>

</tr> </table>

Page 29: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML Lists

<ul> <li>Coffee</li>

<li>Milk</li> </ul><ol>

<li>Coffee</li> <li>Milk</li>

</ol>

Page 30: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

HTML Layouts - Using Tables

The simplest way of creating layouts is by using the HTML <table> tag.

Page 31: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

The HTML head Element

The following tags can be added to the head section

<title>, <base>, <link>,

<meta>, <script>,

and <style>

Page 32: Design your first website using HTML

Bunty Jain IT Training, SAP, [email protected] Delhi India.

We can move to learn CSS

Thanks

Q&A