HTML – Basic Tags & Attributes

Slides:



Advertisements
Similar presentations
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Advertisements

HTML popo.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Basic HTML Tags.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
Creating and Editing a Web Page
Creating a Web Page HyperText Markup Language. HTML Documents  Created using any text editor  Notepad  Vi, Pico, or Emacs  If using word-processor,
HTML BASIC
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
Web Design Using HTML Codes. WHAT DO I NEED TO BEGIN DESIGNING A HOME PAGE? 1.YOU NEED A FOLDER (also called a DIRECTORY) You should set up a folder or.
Basic HTML Hyper text markup Language. Re-cap  … - The tag tells the browser that this is an HTML document The html element is the outermost element.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
Objectives: 1. Create a Skeleton HTML 2. View a Skeleton File Through a Server and Browser 3. Learn HTML Body Tags for the Display of Text and Graphics.
Creating and Editing a Web Page using HTML IMED1316.
Creating and Editing a Web Page Project 2. Project Objectives Project 2: Creating and Editing a Web Page 2 Identify elements of a Web page Start Notepad.
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
15.2 More Basic HTML. More Basic HTML Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features.
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
Web Programming Basics of HTML. HTML stands for Hyper Text Mark-up Language A mark-up language is different than those that you have learned before in.
Just Enough HTML How to Create Basic HTML Documents.
HTML Hyper Text Markup Language. What is an HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup.
Introduction to HTML. Slide 1 Hard-Coding What is hard-coding? –Creating the page in a text editor just using HTML A Web designer should know how to hard-
IS1811 Multimedia Development for Internet Applications Lecture 4: Introduction to HTML Rob Gleasure
Introduction to HTML Wah Yan College (Hong Kong) Mr. Li C.P.
Basic HTML Hyper text markup Language. Lesson Overview  In this lesson, you will learn to:  Write HTML code using a text editor application such as.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
HTML Comprehensive Concepts and Techniques Third Edition 2 nd Project Creating and Editing a Web Page.
HTML/XHTML Structure Building a basic web page using notepad.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
This shows CIS17 and the first day introduction..
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.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
HTML Review * is used as a reference for most of the notes in this powerpoint.
1 Your Web Page title body of Web page main heading H2 heading bulleted list paragraph.
Project 02 Creating and Editing a Web Page Concept Map of Unit Creating and Editing a Web Page Key Learning Understand the elements to create a web page.
Hyper Text Markup Language.  My First Heading My first paragraph. Example Explained The DOCTYPE declaration defines the document type The text between.
Revised June 2008 Online PD Basic HTML1 Let’s Try It!  Open Notepad oStart > All Programs > Accessories > Notepad oDon’t get WordPad by mistake – won’t.
HTML Structure & syntax
Let’s Try It! Open Notepad
Introduction to HTML.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
LAB Work 01 MBA 61062: E-Commerce
HTML Programming Basic HTML text formatting.
Coding, Testing and Valdating a Web Page
Web Programming– UFCFB Lecture 5
Tag Basics.
HTML (HyperText Markup Language)
Website Design 3
More Basic HTML 2 assignments: 1—complete the worksheet
HTML Structure.
How to code, test, and validate a web page
HyperText Markup Language
The Most Basic HTML Page
Creating a Basic Web Page
WJEC GCSE Computer Science
Getting Started with Marking Up Page Content
Web Design & Development
Presentation transcript:

HTML – Basic Tags & Attributes

HTML Document Three Main Parts Document Type Definition (DTD) Header <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> This is not always used in a simple page Header Information such as title, keywords, description, etc. Body Content displayed on Browser

Tags The first tags in your HTML document is <html> This tag tells your browser to interpret everything as html until the </html> tag When starting an html document, type your first tags to get the housekeeping out of the way before getting into the content of the page <html> <head> <title>Your Name Homepage</title> </head> <body> </body> </html> Save your document as soon as you get these first tags started and save frequently while you are working on your document I have created a template that you can use to start your html documents

FAQ After I have edited an HTML file, I cannot view the result in my browser. Why? Make sure that you have saved the file with a proper name and extension like "c:\mypage.html". Notepad automatically saves all files as text files with the extension: .txt Browsers cannot read this extension You must change it to an .html extension when you save your document Make sure that the tags in your document are enclosed with brackets and spelled correctly Check to see that you have the ending tag in your document </body>, </html>, etc.

FAQ I have edited an HTML file, but the changes don't show in the browser. Why? A browser caches pages so it doesn't have to read the same page twice. When you have modified a page, the browser doesn't know that. Use the browser's refresh/reload button to force the browser to reload the page.

Basic Tags - Headings All text appears plain unless tags tell it to be different Headings give “headline” effect <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> Open the html template in Notepad and key in the preceding, save it as “headings.html” then view in your browser

Comments in HTML The comment tag is used to insert a comment in the HTML source code. <!-- This is a comment --> A comment will be ignored by the browser. You can use comments to explain your code, which can help you when you edit the source code at a later date. Open “heading.html and add the following comment <!-- It’s good to know HTML --> What happens if you remove the exclamation?

More about Whitespace Paragraph & Break Tags <p>, <br> Open html template in Notepad and key the following (you put what you like in list) <h1>Things That I Like</h1> Pizza Movies Friends Mountain Biking Save as “like.html” & view in your browser Add <br> after each item in your list then save and refresh your browser Remove the <br> and add <p> </p> to each line (<p>before the line, </p>after) then save and refresh your browser

Horizontal Rule The <hr> tag inserts a horizontal rule Open “like.html” and add an <hr> code after the heading code and between each set of paragraph codes <h1>Things That I Like</h1> <hr> <p>Pizza</p> <p>Movies</p> <p>Friends</p> <p>Mountain Biking</p>

Tag Attributes Tags can have attributes. Provide additional information to an HTML element This tag defines an HTML heading: <h1> Change the alignment attribute to tell the browser that the heading should be centered or right-aligned: <h1 align="center"> This tag defines font: <font> Add attributes for size, color, etc. <font size=“7” color=“purple”> Size (-7 to +7) Come in name/value pairs like this: name="value" Specified in the start tag of an HTML element Attribute values should always be enclosed in quotation marks

Heading Attribute Change Heading attribute as shown: <h1 align="center">Things That I Like</h1> <hr> <p>Pizza</p> <p>Movies</p> <p>Friends</p> <p>Mountain Biking</p>

Font Attributes Change font attributes as shown: <font color="green"><h1 align="center">Things That I Like</h1></font> <hr> <font color="purple" size="5"><p>Pizza</p> <p>Movies</p> <p>Friends</p> <p>Mountain Biking</p> <hr></font> Change the font size to -7, -5, -2, 2, 7 respectively. Save and refresh the browser after each change

Body Attributes Body tag Add attributes to the <hr> tags Defines body of text Holds attributes which tell browser how to display elements such as background bgcolor=“yellow” (add this to the body tag of your file “like.html”) <body bgcolor="yellow"> <body text=“orange”> You can choose different hues of color Open “02 Web-safe color chart” from Reference material folder on the Student Server These are hexadecimal values for different colors Pick a color and insert the hexadecimal code (such as CC6600) in place of “orange” Add attributes to the <hr> tags <hr color="red"> <hr size="10"> <hr width=“50"> <hr width=“50%"> <hr width=“50%“ align=left>