HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

Farhan Nisar University of Peshawar
HTML Basics Customizing your site using the basics of HTML.
HTML popo.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
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!
HTML popo.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Images, Tables, lists, blocks, layout, forms, iframes
MR.Mohammed Sharaf al Shareef
LIST- HYPERLINK- IMAGES
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Academic Year, Spring Semester Bilkent University - Faculty of Art, Design and Architecture Department of Communication and Design CS 153 Introduction.
Purpose Tags are the key to marking up content on your HTML page. It’s the tags that mark up sections of the page and are defined (aesthetically) on the.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
CS105 Introduction to Computer Concepts HTML
Chapter 2: The Client Side: HTML CIS 275—Web Application Development for Business I.
HTML Links and Anchors.
HTML. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language.
MORE HTML REMEMBER TO SEARCH W3 SCHOOLS FOR MORE INFO.
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.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
HTML Introduction to HTML Tags. HTML Document My first HTML document Hello world!
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
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.
1 HTML محمد احمدی نیا 2 Of 43 What is HTML?  HTML stands for Hyper Text Markup Language  HTML is not a programming language, it.
CHAPTER 1 HTML & HTML5 I อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad GM-IT CIIT Islamabad CIIT Virtual Campus, CIIT COMSATS Institute.
Web Design and Development for Business Lecture 3 Hyper Text Markup Language (HTML)
HTML: Hyptertext Markup Language Doman’s Sections.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
1. Pengenalan HTML M. Udin Harun Al Rasyid, S.Kom, Ph.D Lab Jaringan Komputer (C-307)
HTML.
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.
HTML Images Dr. Baker Abdalahq. The Image Tag and the Src Attribute In HTML, images are defined with the tag. In HTML, images are defined with the tag.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
HTML IMAGES. CONTENTS IMG Tag Alt Attribute Setting Width and Height Of An Image Summary Exercise.
Basic Webpage Design Mark-up html document with images.
HTML Links HTML uses a hyperlink to another document on the Web.
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: … …
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.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
REEM ALMOTIRI Information Technology Department Majmaah University.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CHAPTER TWO HTML TAGS. 1.Basic HTML Tags 1.1 HTML: Hypertext Markup Language  HTML stands for Hypertext Markup Language.  It is the markup language.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
LISTS AND LINKS Explained By: Sarbjit Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
HTML Paragraphs Paragraphs are defined with the tag. Example This is a paragraph This is another paragraph.
This is a test Webpage Wow, I’m writing my first webpage.
HTML for web designing short course. What is an HTML File? HTML stands for Hyper Text Markup Language An HTML file must have an htm or html file extension.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
Web Development Part 1.
LAB Work 01 MBA 61062: E-Commerce
Tag Basics.
WEBSITE DESIGN Chp 1
HTML ELEMENTS Ms. Olifer.
Presentation transcript:

HTML Tags

Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed

Tips You cannot be sure how HTML will be displayed. Large or small screens, and resized windows will create different results. With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code. The browser will remove extra spaces and extra lines when the page is displayed. Any number of lines count as one line, and any number of spaces count as one space.

HTML Formatting Tags HTML uses tags like and for formatting output, like bold or italic text. Often renders as, and renders as. However, there is a difference in the meaning of these tags: or defines bold or italic text only. or means that you want the text to be rendered in a way that the user understands as "important". Today, all major browsers render strong as bold and em as italics. However, if a browser one day wants to make a text highlighted with the strong feature, it might be cursive for example and not bold!

HTML 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

HTML tag The World Wide Web Consortium (W3C) has removed the tag from its recommendations. In HTML 4, style sheets (CSS) should be used to define the layout and display properties for many HTML elements. The example shows how the HTML could look by using the tag: This paragraph is in Arial, size 5, and in red text color. This paragraph is in Verdana, size 3, and in blue text color.

More of these when we discuss CSS

HTML Hyperlinks (Links) A hyperlink (or link) is a word, group of words, or image that you can click on to jump to a new document or a new section within the current document. When you move the cursor over a link in a Web page, the arrow will turn into a little hand. Links are specified in HTML using the tag. defines an anchor The tag can be used in two ways: ▫To create a link to another document, by using the href attribute ▫To create a bookmark inside a document, by using the name attribute

HTML Link Syntax The HTML code for a link is simple. It looks like this: Link text The href attribute specifies the destination of a link. Example Visit Google which will display like this: Visit GoogleVisit Google Clicking on this hyperlink will send the user to Google’s homepage. Tip: The "Link text" doesn't have to be text. It can be an image or any other HTML element.

HTML Links - The target Attribute The target attribute specifies where to open the linked document. The example below will open the linked document in a new browser window or a new tab: Example Visit Google!

HTML Links – The name Attribute The name attribute specifies the name of an anchor. The name attribute is used to create a bookmark inside an HTML document. Bookmarks are not displayed in any special way. They are invisible to the reader.

Image as link Sample

Link to a location on the same page See also Chapter 4. Chapter 1 This chapter explains … Chapter 2 This chapter explains … Chapter 3 This chapter explains … Chapter 4 This chapter explains … Chapter 5 This chapter explains … Chapter 6 This chapter explains … Chapter 7 This chapter explains … Chapter 8 This chapter explains … Chapter 9 This chapter explains … Chapter 10 This chapter explains … Chapter 11 This chapter explains … Chapter 12 This chapter explains … Chapter 13 This chapter explains … Chapter 14 This chapter explains … Chapter 15 This chapter explains … Chapter 16 This chapter explains … Chapter 17 This chapter explains …

HTML Images - The Tag and the src Attribute In HTML, images are defined with the tag. The tag is empty, which means that it contains attributes only, and has no closing tag. To display an image on a page, you need to use the src attribute. Src stands for "source". The value of the src attribute is the URL of the image you want to display.

HTML Images - The Tag and the src Attribute Syntax for defining an image The URL points to the location where the image is stored. An image named "boat.gif", located in the "images" directory on " has the URL: The browser displays the image where the tag occurs in the document. If you put an image tag between two paragraphs, the browser shows the first paragraph, then the image, and then the second paragraph.

HTML Images – The alt attribute The required alt attribute specifies an alternate text for an image, if the image cannot be displayed. The value of the alt attribute is an author-defined text: The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).

HTML Images - Set Height and Width of an Image The height and width attributes are used to specify the height and width of an image. The attribute values are specified in pixels by default:

HTML Images - Set Height and Width of an Image Tip: It is a good practice to specify both the height and width attributes for an image. If these attributes are set, the space required for the image is reserved when the page is loaded. However, without these attributes, the browser does not know the size of the image. The effect will be that the page layout will change during loading (while the images load).

Basic Notes - Useful Tips Note: If an HTML file contains ten images - eleven files are required to display the page right. Loading images take time, so use images carefully. Note: When a web page is loaded, it is the browser, at that moment, that actually gets the image from a web server and inserts it into the page. Therefore, make sure that the images actually stay in the same spot in relation to the web page, otherwise your visitors will get a broken link icon. The broken link icon is shown if the browser cannot find the image.

HTML Image Tags TagDescription Defines an image Defines an image- map Defines a clickable area inside an image-map

HTML Lists An ordered list: 1.The first list item 2.The second list item 3.The third list item An unordered list: List item

HTML Unordered Lists An unordered list starts with the tag. Each list item starts with the tag. The list items are marked with bullets (typically small black circles).

HTML Unordered Lists Unordered List Unordered List Coffee Milk How the HTML code above looks in a browser: Unordered List Coffee Milk

HTML Ordered Lists An ordered list starts with the tag. Each list item starts with the tag. The list items are marked with numbers.

HTML Lists Ordered List Ordered List Coffee Milk How the HTML code above looks in a browser: Ordered List 1.Coffee 2.Milk

HTML Definition Lists A definition list is a list of items, with a description of each item. The tag defines a definition list The tag is used in conjunction with (defines the item in the list) and (describes the item in the list)

HTML Definition Lists Definition List Coffee - black hot drink Milk - white cold drink How the HTML code above looks in a browser: Coffee - black hot drink Milk - white cold drink

HTML List Tags Tip: Inside a list item you can put text, line breaks, images, links, other lists, etc. TagDescription Defines an ordered list Defines an unordered list Defines a list item Defines a definition list Defines an item in a definition list Defines a description of an item in a definition list

Body Background Color Sample My first heading My first paragraph.

Image as Body Background Sample My first heading My first paragraph.

Marquee You can create a scrolling marquee (scrolling text or scrolling images) by using the tag. Scroll from right to left, left to right, top to bottom or bottom to top. <marquee behavior="slide" direction="left">Here is a sample text

Marquee Continuous scrolling text Your bouncing text goes here Your upward scrolling text goes here Slow scroll speed