Download presentation
Presentation is loading. Please wait.
Published byGriselda Richard Modified over 9 years ago
1
HTML Hyper Text Markup Language
2
What is an HTML File? HTML stands for Hyper Text Markup Language An HTML file is a text file containing small markup tags The markup tags tell the Web browser how to display the page An HTML file must have an.htm or.html file extension An HTML file can be created using a simple text editor
3
Do You Want to Try It? If you are running Windows, start Notepad. Type in the following text: Title of page This is my first homepage.
4
Saving your file Please create a new folder in your Z: drive and call it HTML_Folder Go back to your notepad document and select File \ Save as Change the Save as type to All Files Enter a File name: “mypage” followed by “.” and “htm” Click Save
5
Opening your file in a Browser Open your HTML_Folder Right click on your mypage.htm file and select open with: Select Internet Explorer IE should now open and you should see an address in the dialog box: Z:\HTML_Folder\mypage.htm
6
Try this at Home!!! Opening your file in a Browser Start your Internet browser. Select "Open" (or "Open Page") in the File menu of your browser. A dialog box will appear. Select "Browse" (or "Choose File") and locate the HTML file you just created - "mypage.htm" - select it and click "Open". Now you should see an address in the dialog box, for example "C:\MyDocuments\mypage.htm". Click OK, and the browser will display the page.
7
What do the tags mean. The first tag in your HTML document is. This tag tells your browser that this is the start of an HTML document. The last tag in your document is. This tag tells your browser that this is the end of the HTML document.
8
The tag The text between the tag and the tag is header information. The head element can contain information about the document. The browser does not display the "head information" to the user.
9
The tag This element defines the title of the document. You will see the title on the top bar of your browser when you open the page. The title will also be used as the name of the link in your favorites.
10
The tag The text between the tags is the portion of your html document that will be displayed in your browser. It contains all the contents of the document (like text, images, colors, graphics, etc.).
11
HTM or HTML Extension? When you save an HTML file, you can use either the.htm or the.html extension. I have used.htm in my examples. The use of the.htm goes back to the 8.3 notation which was used in DOS.
12
The to tags Headings are defined with the to tags. defines the largest heading. defines the smallest heading. This is a heading HTML automatically adds an extra blank line before and after a heading.
13
The tag Paragraphs are defined with the tag. This is a paragraph This is another paragraph HTML automatically adds an extra blank line before and after a paragraph.
14
The tag The line break tag is used when you want to end a line, but don't want to start a new paragraph. The tag forces a line break wherever you place it. This is a para graph with line breaks This is a para graph with line breaks The tag is an empty tag. It has no closing tag.
15
The tag The tag inserts a horizontal rule. ______________________________ The tag should be closed Does this make sense Try this instead
16
Comments in HTML The comment tag is used to insert a comment in the HTML source code. A comment will be ignored by the browser. You can use comments to explain your code, which can help when you edit the source code at a later date. Note that you need an exclamation point after the opening bracket, but not before the closing bracket.
17
Basic HTML Tags TagDescription Defines an HTML document Defines the document's body to Defines header 1 to header 6 to Defines a paragraph Inserts a single line break Defines a horizontal rule Defines a comment
18
How to View HTML Source Have you ever seen a Web page and wondered "How do they do that?" To find out, simply click on the VIEW option in your browsers toolbar and select SOURCE or PAGE SOURCE. This will open a window that shows you the actual HTML of the page.
19
Here are some Text Formatting Tags TagDescription Defines bold text Defines big text Defines emphasized text Defines italic text Defines small text Defines strong text Defines subscripted text Defines superscripted text Defines inserted text Defines deleted text
20
Create your own web page Set the file name as “FirstName.htm” Set the title as “FirstName LastName First Web Site” Use the following format for your page: Name Computer Tech Period ___ ---------------------------------------------- Use several horizontal rules on the page Write three short paragraphs about creating a web page. Use at least four of the Text Formatting Tags in your paragraphs. Include a list of tags using line breaks to separate them.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.