+ All Categories
Home > Documents > Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming...

Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming...

Date post: 26-Mar-2015
Category:
Upload: emily-sullivan
View: 224 times
Download: 3 times
Share this document with a friend
Popular Tags:
28
Introduction to HTML http://w3schools.com/
Transcript
Page 1: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

Introduction to HTML

http://w3schools.com/

Page 2: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

HTML

• HTML stands for Hyper Text Markup Language

• HTML is not a programming language, it is a markup language

• A markup language is a set of markup tags

• HTML uses markup tags to describe web pages

Page 3: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

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 opening tag, the second tag is the closing tag

Page 4: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

HTML Documents = Web Pages

• HTML documents describe web pages

• HTML documents contain HTML tags and plain text

• HTML documents are also called web pages

Page 5: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

Web Sites and HTML tags

This is an example of a website that has been styled with HTML tags.

Page 6: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

Creating your 1st Web Page

• Open any text editor.

• Type in the HTML.

• Save in a “.html” file extension.

• Open in IE, Firefox or some other web browser.

Page 7: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

Open notepad and type

Page 8: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

Save with a .html file extension

Page 9: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

Open the HTML document

Page 10: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

After you save your document, the title changes on notepad

Beforesaving

After saving

Page 11: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

File extensions – do you see them?

.txt

.doc

.html

.htm

.psd

.pdf

.jpg

.gif

.xls

.mp3

.mp4

.wav

.wma

Page 12: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

How do you show the file extensions?

• Tools

• Folder Options

• View

• Hide extensions for known file types

• OK

Page 13: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

<html></html>

• This tells the web browser where to start and stop looking.

• Your document always starts and stops with the <html> and </html> tags.

• The text between <html> and </html> describes the web page

Page 14: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

<head></head>

• This tag contains the title, meta, script and style tags used for more advanced formatting and effects.

• The text between <head> and </head> is not displayed in the web browser.

• The Head and Body does not overlap.

Page 15: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

<title></title>• The title tag contains the

text displayed at the top of your web browser.

• If the web site is bookmarked, then the <title> will become the text for the bookmark.

• It is a web designer taboo to leave this tag undefined.

• For multi-page sites, each page title should be unique.

Page 16: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

<body></body>

• The text between <body> and </body> is visible to the people browsing your website.

Page 17: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

Go make your own hello world web page

• Using your notes, go make your first website.

• Include a title.• Include your name.• Say hello.

Page 18: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

From now on…

I will just show the

code between the Body

tags.

Page 19: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

HTML Headings

• Headings are defined with the <h1> to <h6> tags.

• <h1> defines the largest heading.

• <h6> defines the smallest heading.

http://w3schools.com/html/tryit.asp?filename=tryhtml_headers

Page 20: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

<br>

• Use the <br /> tag if you want a line break (a new line) without starting a new paragraph.

• The <br /> element is an empty HTML element. It has no end tag.

• Even if <br> works in all browsers, writing <br /> instead is more future proof.

http://w3schools.com/html/tryit.asp?filename=tryhtml_paragraphs

Page 21: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

Text Formatting Tags

Tag Description

<b> Defines bold text

<big> Defines big text

<em> Defines emphasized text 

<i> Defines italic text

<small> Defines small text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<strike> Defines strikethrough text

<u> Defines underlined text

Page 22: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

Unordered Lists

• An unordered list is a list of items. The list items are marked with bullets.

• An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.

http://w3schools.com/html/tryit.asp?filename=tryhtml_lists4

Page 23: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

Ordered Lists

• An ordered list is also a list of items. The list items are marked with numbers.

• An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.

http://w3schools.com/html/tryit.asp?filename=tryhtml_lists

Page 24: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

HTML Paragraphs

• Paragraphs are defined with the <p> tag.

• Browsers automatically adds an empty line before and after paragraphs.

• You can align your paragraphs to the left, right and center positions.

http://w3schools.com/html/tryit.asp?filename=tryhtml_paragraphs1

Page 25: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

HTML Rules (Lines)

• The <hr /> tag is used to create an horizontal rule (line).

http://w3schools.com/html/tryit.asp?filename=tryhtml_hr

Page 26: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

Go make your own hello world web page

• Unordered list• Ordered list• 3 horizontal rules• 3 paragraphs • Line brakes• 5 unique test

formatting

Page 27: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

HTML Links

Page 28: Introduction to HTML . HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language.

HTML Images


Recommended