HTML ELEMENTS Ms. Olifer.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

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.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Introduction to HTML II Shih-Heng Chin. Preface Structure of a HTML File Elements used frequently Tables.
Tags through Forms. This element is required for all HTML pages It must be at the top of every page of every website We’ll see later on why it is important.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
CS105 Introduction to Computer Concepts HTML
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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 (HyperText Markup Language)
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
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.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
What is Markup and Markup Languages? What is HTML? A Basic HTML Document Basic HTML Tags Tag Attributes and Text Formatting Tags Insert Hyperlinks Add.
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,
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
HTML: Hyptertext Markup Language Doman’s Sections.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
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.
REEM ALMOTIRI Information Technology Department Majmaah University.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
HTML Review * is used as a reference for most of the notes in this powerpoint.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
Chapter 5 pp HTML Elements & Attributes Format Content Or Examples This Text Is A Hyperlink.
Chapter 4 HTML Tags. HTML is written in something called tags. Tags come in pairs, an opening one and a closing one. The first pair of tags we'll write.
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.
HTML.
>> HTML: Tags – Hyperlink, Media, Lists
HTML Basics.
Introduction to HTML:.
HTML basics
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
CGS 3066: Lecture 2 Web Development and HTML5
LAB Work 01 MBA 61062: E-Commerce
Marking Up with XHTML Tags describe how a web page should look
Elements of HTML Web Design – Sec 3-2
HTML: HyperText Markup Language
Elements of HTML Web Design – Sec 3-2
HTML Formatting.
Chapter 1: Introduction to XHTML (part 1)
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Elements of HTML Web Design – Sec 3-2
COMPUTING FUNDAMENTALS
CS7026: Authoring for Digital Media HTML Authoring
HTML – Organizing Page Content
WEBSITE DESIGN Chp 1
Web Programming A different world! Three main languages/tools No Java
Computers and Scientific Thinking David Reed, Creighton University
Basic HTML and Embed Codes
Marking Up with XHTML Tags describe how a web page should look
CGS 3066: Lecture 2 Web Development and HTML5
Web Programming Language
Introduction to XHTML Cont:.
Pertemuan 1b
Html.
Introduction to HTML.
CS3220 Web and Internet Programming HTML and XML Basics
Pertemuan 1 Desain web Pertemuan 1
HyperText Markup Language
Basics of Web Design Chapter 2 HTML Basics Key Concepts
COMS 161 Introduction to Computing
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

HTML ELEMENTS Ms. Olifer

Heading TAGS The following is the list of heading elements available in HTML. They are ordered from largest to smallest in size. <h1></h1> - used for main headings. All other smaller headings are used for subheadings. <h2></h2> <h3></h3> <h4></h4> <h5></h5> <h6></h6>

Attribute Attributes provide more information about an element's content. They live directly inside of the opening tag of an element. Attributes are made up of the following two parts: The name of the attribute The value of the attribute

Paragraph, Div, Span If you want to add blocks of text in HTML, you can use a paragraph, div, or span: Paragraphs (<p></p>) simply contain a block of plain text. <div></div> can contain any text or other HTML elements. They are primarily used to divide HTML documents into sections. <span></span> contain short pieces of text or other HTML. They are primarily used to wrap small pieces of content that are on the same line as other content and do not break text into different sections.

Paragraph, Div, Span - Example

<EM>, <STRONG> Tags provided by HTML exist to organize and describe the content of web pages. Two of these HTML tags are <em> and <strong>. They are used to signal that the text within them should be "emphasized" or "strong.“ The <em></em> tag will generally render as italic emphasis. The <strong></strong> will generally render as bold emphasis.

Unordered List In HTML, you can use an unordered list tag (<ul></ul>) to create a list of items in no particular order. An unordered list outlines individual list items with a bullet point. The <ul> element cannot hold raw text and cannot automatically format raw text into an unordered list of items. Individual list items must be added to the unordered list using the <li></li> tag. The <li> or list item tag is used to describe an item in a list.

Unordered List - Example <ul> <li>Limes</li> <li>Tortillas</li> <li>Chicken</li> </ul> Attribute type: circle square disc

Ordered Lists HTML provides the ordered list for when you need the extra ordering that unordered lists don't provide. Ordered lists are like unordered lists, except that each list item is numbered. You can create the ordered list with the <ol></ol> tag and then add individual list items to the list using <li></li> tags. Type attribute could be: “1”, “A”, “I”, “a”, “i”

Ordered List - Example

Image The <img> tag allows you to add an image to a web page. This is another example of a self- closing tag. <img src="image-location" />

Image The <img> tag has a required attribute called src. The src attribute must be set to the image's source, or the location of the image. In this case, the value of src must be the uniform resource locator (URL) of the image. A URL is the web address or local address where a file is stored. Note that the end of the <img> tag has a forward slash /.

Images HTML helps support visually impaired users with the alt attribute. The alt attribute is applied specifically to the <img> element. The value of alt should be a description of the image.

Videos In addition to images, HTML also supports displaying videos. Like the <img> tag, the <video> tag requires a src attribute with a link to the video source. Unlike the <img> tag however, the <video> element requires an opening and a closing tag.

Video Example <video src="myVideo.mp4" width="320" height="240" controls> Video not supported </video> Note: text between video tags is optional

Links You can add links to a web page by adding an anchor element <a> and including the text of the link in between the opening and closing tags. <a> tag requires the href attribute, which stands for hyperlink reference and is used to link to a file path, or the address to where a file is located (whether it is on your computer or another location).

Link Format <a href=“Link”>This Is A Link To …</a>

Links HTML allows you to turn nearly any element into a link by wrapping that element with an anchor element. With this technique, it's possible to turn images into links by simply wrapping the <img> element with an <a> element.

Links - Example <a href="https://en.wikipedia.org/wiki/Opuntia" target="_blank"> <img src="#" alt="A red prickly pear fruit"/> </a> In the example above, an image of a prickly pear has been turned into a link by wrapping the outside of the <img> element with an <a> element.

Links – Target Attribute The target attribute specifies that a link should open in a new window. For a link to open in a new window, the target attribute requires a value of _blank. The target attribute can be added directly to the opening tag of the anchor element, just like the href attribute. <a href="https://en.wikipedia.org/wiki/Bear" target="_blank">The Brown Bear</a>

Links – Same Page In order to link to a target on the same page, we must give the target an id, like this: <p id="top"> This is the top of the page! </p> <h1 id="bottom">This is the bottom! </h1> In this example, the <p> element contains id of top and the <h1> element contains id of bottom. An id can be added to most elements on a webpage. An id should be descriptive to make it easier to remember the purpose of a link. The target link is a string containing the # character and the target element's id.

Links – Same Page (Continued) <ol> <li><a href="#top">Top</a></li> <li><a href="#bottom">Bottom</a></li> </ol> In the example above, the links to <p id="top"> and <h1 id="bottom"> are embedded in an ordered list. These links appear in the browser as a numbered list of links.