+ All Categories
Home > Education > Creating a page in HTML

Creating a page in HTML

Date post: 22-May-2015
Category:
Upload: robertbenard
View: 536 times
Download: 0 times
Share this document with a friend
Popular Tags:
4
Creating a page in HTML Introduction Having an understanding of HTML is a necessity of web development. No matter how good of a web design program you have, you will find situations where it just isn’t doing exactly what you want. Consider adding a YouTube video to your web page. YouTube makes the process very easy by providing you the code, but what if you want to change where the video displays? Having an understanding of HTML will allow you to align that video to the left, right, or center of your page. What is HTML? HTML is a language for describing web pages. 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 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 Start and end tags are also called opening tags and closing tags HTML Documents = Web Pages HTML documents describe web pages HTML documents contain HTML tags and plain text HTML documents are also called web pages The purpose of a web browser (like Internet Explorer or Firefox) is to read HTML documents and display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page. W3Schools.com Web Page Creation Page | 1
Transcript
Page 1: Creating a page in HTML

Creating a page in HTML

Introduction

Having an understanding of HTML is a necessity of web development. No matter how good of a web design program you have, you will find situations where it just isn’t doing exactly what you want. Consider adding a YouTube video to your web page. YouTube makes the process very easy by providing you the code, but what if you want to change where the video displays? Having an understanding of HTML will allow you to align that video to the left, right, or center of your page.

What is HTML?

HTML is a language for describing web pages.

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

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 Start and end tags are also called opening tags and closing tags

HTML Documents = Web Pages

HTML documents describe web pages HTML documents contain HTML tags and plain text HTML documents are also called web pages

The purpose of a web browser (like Internet Explorer or Firefox) is to read HTML documents and display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page.

W3Schools.com

How to create HTML pages

HTML tags are created using brackets. Most HTML tags open and close. For example, a standard web page starts with <HTML>. This tells the browser that the page is using HTML code. At the end of the page, you will find a </HTML> tag which indicates the end of the code.

HTML code can be created in most web page design applications are most simply in a text editor like Note Pad. Do not use an application such as Microsoft Word.

Web Page Creation Page | 1

Page 2: Creating a page in HTML

An excellent source on HTML is W3Schools. You can find an HTML tutorial at http://w3schools.com/html/default.asp

Example HTML web page

<HTML> Tells the browser the language of the page. <HEAD> File information not displayed on the body of the page. <TITLE> Title of page that is displayed on tabs, in history, and on the top of the browser window. <BODY> Content area of page. <p> Paragraph tag that formats text. Notice that I used the align attribute to explain where the

text should be. <HR/> Horizontal rule. This places the line on the page. Notice that this tag does not have an

ending tag of </HR> since there is nothing in the middle that could be affected.

Create your first web page

You are going to create your first web page in HTML. This will be a very simple web page. It will be the home page for your site with a link to your COMW-100 folder and pages. We are following this format in case you take further web classes at Mott. For example, if you take COMW-163 (Design Concepts for the Web), you will add a link to COMW-163 on this page then link to all of those assignments. Once complete, you will have a full portfolio of your work.

For this assignment, follow these directions:

1. Open Notepad on your computer (Start > Accessories > Notepad)

Web Page Creation Page | 2

Page 3: Creating a page in HTML

2. Type the following text:

3. Save your page to your public_html folder as index.html (do this exact!)4. Close Notepad5. Double click on your web page and it should open in your default web browser (such as Internet

Explorer). Your page should look like the following:

6. If your page does not look like the image in step 5, right click on the file and select “open with” and “Notepad”. Or you may open Notepad and then open this file. Verify that your code is correct.

7. When you click on the COMW-100 link, it will give you a page not found error. That is correct for now.

8. Copy your page to your web space.

Web Page Creation Page | 3


Recommended