Tag Basics.

Slides:



Advertisements
Similar presentations
Introduction to HTML
Advertisements

HTML popo.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML: HyperText Markup Language Hello World Welcome to the world!
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
HTML Tags. Bolding Text Or Italics Text Or
1 Outline 9.1Introduction 9.2Markup Languages 9.3Editing HTML 9.4Common Tags 9.5Headers 9.6Text Styling 9.7Linking 9.8Images 9.9Formatting Text With 9.10Special.
 2001 Deitel & Associates, Inc. All rights reserved. 1 Outline 9.1Introduction 9.2Markup Languages 9.3Editing HTML 9.4Common Tags 9.5Headers 9.6Text Styling.
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.
Basic HTML tags Beginning Web Site Design Stanford University Continuing Studies CS 03
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
HTML Overview Part 2 – Paragraphs, Headings, and Lines 1.
Define html document byusing Example : Title of the document The content of the document......
Headings, Paragraphs, Formatting, Links, Head, CSS, Images
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
HTML H yper T ext M arkup L anguage. HTML HTML is NOT case sensitive However, proper coding etiquette if for all to be in ALL CAPS and for text to be.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module F Building a Web Page with HTML.
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
1 HTML محمد احمدی نیا 2 Of 43 What is HTML?  HTML stands for Hyper Text Markup Language  HTML is not a programming language, it.
Just Enough HTML How to Create Basic HTML Documents.
HTML Basic IST2101. Keep In Mind Programming can be time consuming. Plan ahead!
Agenda Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,, Font Attributes: size, color, face Horizontal.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
CPT 499 Internet Skills for Educators Session Ten Class Notes.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
Web Development Lecture # 09 Text Formatting in HTML.
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.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Basic HTML Programming Technology Education Ellsworth Community Middle School Communication Systems.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
Revision Webpage design HTML.   FACE  Attributes  Marquee  Define the following terms.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
Lab 3 Html basics.
HTML Basics.
HTML Basics.
LAB Work 01 MBA 61062: E-Commerce
Marking Up with XHTML Tags describe how a web page should look
HTML: HyperText Markup Language
What is HTML? Structure of HTML Document HTML TAG HEAD TAG TITLE TAG
What is HTML? Structure of HTML Document HTML TAG HEAD TAG TITLE TAG
Chapter 4 - Introduction to XHTML: Part 1
Introduction to HTML.
HTML (HyperText Markup Language)
What is HTML? Structure of HTML Document HTML TAG HEAD TAG TITLE TAG
HTML Intro.
Font tag and its attributes
Computers and Scientific Thinking David Reed, Creighton University
What is HTML? Structure of HTML Document HTML TAG HEAD TAG TITLE TAG
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Client-Side Internet and Web Programming
What is HTML? Structure of HTML Document HTML TAG HEAD TAG TITLE TAG
Html.
Marking Up with XHTML Tags describe how a web page should look
Basic HTML.
HTML Basics Mr. Fazzalari.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Tag Basics

General Structure of HTML page 1. Page Structure <HTML> <HEAD> <TITLE> </TITLE> </HEAD> <BODY> </BODY> </HTML> General Structure of HTML page At a minimum, HTML document should contain 3 basic sets of tags

attributes of <BODY> tag Background = "URL" Sets the background image to the image found at URL The image should be in .gif, .jpg, or .jpeg format Example: <BODY Background = “C:/images/abc.gif”>

bgcolor = “#RRFFBB" OR “……..” attributes of <BODY> tag (ii) bgcolor = “#RRFFBB" OR “……..” Indicates the color of a document’s background The value of this attribute can be a hexadecimal number, an RGB value, or a color name Example: <body bgcolor="#000000"> <body bgcolor="RGB(0,0,0)"> <body bgcolor="black"> The lines above all set the background-color to black.

attributes of <BODY> tag (iii) LEFTMARGIN = “n” Specifies the width (in pixels) of a margin (left edge) Example: <body leftmargin = “30” > . (iv) TOPMARGIN = “n” Specifies the size (in pixels) of a margin (top edge) Example: <body topmargin = “30” >

attributes of <BODY> tag (v) LINK = “#RRFFBB" OR “……..” Indicates the color of hyperlinks text within the document (vi) TEXT = “#RRFFBB" OR “……..” Indicates the color of normal text within the document Example: <body bgcolor="#FFFFFF” text =“blue“ link =“red">

2. Adding Comments The comment tag is used to insert a comment in the HTML source code. A comment can be placed anywhere in the document and the browser will ignore everything inside the brackets. HTML comments are placed in between <!-- ... --> tags. Example: <!-- This is a comment -->

3. Working with Texts To display text, it must be between the <BODY> and </BODY> tags. Browser ignores every tab, carriage return, extra space placed in the text Only HTML tags can format a web page Example: <BODY> <CENTER> HELLO WORLD </CENTER> </BODY>

4. Paragraph and Line Breaks The <p> tag defines a paragraph Browsers automatically add some space (margin) before and after each <p> tag. Example: <p>This is some text in a paragraph.</p>

4. Paragraph and Line Breaks Attributes of <p> tag 1) ALIGN = {LEFT, RIGHT, and CENTER} The align attribute is used to set the alignment of the paragraph with respect to the page size. Example: <p align="center">

4. Paragraph and Line Breaks Attributes of <p> tag 2) width = “n” Specifies the horizontal dimension of the paragraph (in pixels) Example: <p width= 250 >

4. Paragraph and Line Breaks The <br> tag inserts a single line break. The <br> tag is an empty tag which means that it has no end tag. Example: <br>This is some text

5. Emphasizing Text <b> - Bold text <strong> - Important text <i> - Italic text <em> - Emphasized text <mark> - Marked text <small> - Small text <sub> - Subscript text <sup> - Superscript text

5. Emphasizing Text

6. Heading and Horizontal Rules The <h1> to <h6> tags are used to define HTML headings. <h1> defines the most important heading. <h6> defines the least important heading. ALIGN= {LEFT, RIGHT, and CENTER} <h1 align="center">This is heading 1</h1>

6. Heading and Horizontal Rules Output: Heading – Example:

6. Heading and Horizontal Rules Horizontal Rules - Example The HTML <hr> tag is used for creating a horizontal line. This is also called Horizontal Rule in HTML.

6. Heading and Horizontal Rules Horizontal Rules - Example

6. Heading and Horizontal Rules Attributes of Horizontal Rules Attribute Value Description align left, right, center Specifies the alignment of the horizontal rule. noshade Removes the usual shading effect that most browsers display. size pixels or % Specifies the height of the horizontal rule. width Specifies the width of the horizontal rule.