<html> <head> <title> Images in HTML PowerPoint </title> </head> <body> How images are used in HTML </body> </html>

Slides:



Advertisements
Similar presentations
Introduction to HTML & CSS
Advertisements

CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External Style.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
Creating Pages in XHTML
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.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
Introduction to HTML Lists, Images, and Links. Before We Begin Save another file in Notepad Save another file in Notepad Open your HTML, then do File>Save.
4.01 Cascading Style Sheets
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
Headings, Paragraphs, Formatting, Links, Head, CSS, Images
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
Images Inserting an image on a web page. chcslonline.org2 ITEMS REQUIRED Go to the course download page on the course website and download the 3 images.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
Images in HTML PowerPoint How images are used in HTML.
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.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Chapter 4 BIE1313/BPROG1203 | Web design Prepared by Mohamed Abdulkarim / Mike Ng Ah Ngan.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
HTML Lesson 3 Hyper Text Markup Language. Assignment Part 2  Set the file name as “FirstName2.htm”  Set the title as “FirstName LastName First Web Site”
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
REEM ALMOTIRI Information Technology Department Majmaah University.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
Revision Webpage design HTML.   FACE  Attributes  Marquee  Define the following terms.
CASCADING STYLE SHEET CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
TNPW1 Ing. Jiří Štěpánek.  Tags  Marks for elements ▪ Pair ▪ Start and end tag ( Paragraph text ) ▪ Single ▪ Only start tag, according to XHTML 1.0.
Introduction to Programming
Lab 3 Html basics.
Fall 2016 CSULA Saloni Chacha
IS1500: Introduction to Web Development
Cascading Style Sheet.
HTML.
INTRO TO WEB DEVELOPMENT html
Html.
HTML Basics.
HTML basics
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
LAB Work 01 MBA 61062: E-Commerce
4.01 Cascading Style Sheets
HTML Basics (Part-2).
Images in HTML PowerPoint How images are used in HTML
HTML Lab 5 10/1/2015.
HTML.
Madam Hazwani binti Rahmat
Internet & Web Engineering Course Code:CS-228 Credit Hours (3+1) Lab 1 Introduction to Markup Language HTML Instructor: Muhammad Zeeshan Haider.
HTML Images CS 1150 Spring 2017.
Tag Basics.
COMPUTING FUNDAMENTALS
CASCADING STYLE SHEET CSS.
Website Design 3
Enhance your website.
Software Engineering for Internet Applications
Computers and Scientific Thinking David Reed, Creighton University
Basic HTML and Embed Codes
Putting An Image on Your Web Page
HTML Images CS 1150 Fall 2016.
Pertemuan 1b
Training & Development
USING IMAGES This is the bottom of the page. Note the alignment of having text before and after, at the top, in the middle and at the bottom. Code is on.
Pertemuan 1 Desain web Pertemuan 1
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
4.01 Cascading Style Sheets
Hyperlinks, Images, Comments, and More…
Images in HTML PowerPoint How images are used in HTML
Presentation transcript:

<html> <head> <title> Images in HTML PowerPoint </title> </head> <body> How images are used in HTML </body> </html>

Adding Images in HTML Images are defined with the <img> tag Image tags do not have closing tags The src tag must be included; src stands for “source” and this references the URL of the picture The alt tag is optional but recommended; alt stands for alternative text & is used to provide short descriptive info for an image if the user can not view the image

Adding Images in HTML Cont. Only 3 types of images are displayed by all browsers .jpg .gif .png The browser displays the image where you place the <img> tag. Example: If you put an image tag between two paragraphs, the browser shows the first paragraph, then the image, and then the second paragraph. **There are some very important differences between these file types but we will discuss those at a later date.**

Adding Images in HTML Cont. For images embedded with text, images can “float” with the text. The align tag can be added to the img tag to make the image either align left or right Images can be resized using HTML tags but it is good practice to keep the picture proportional (this is done to avoid “stretching” of pictures) Height & Width can be added to the tag to resize the image

Adding Images - REVIEW Code View: Browser View: <img src=“car.gif” alt=“green racecar” height=“95” width=“151” align=“right”> Browser View: NOTE: Alternative text is shown when the cursor is placed over the object

Hyperlinking Images & Text in HTML Both text and images can be linked to other pages or images via the hyperlink tag Example: <a href=“http://www.google.com”>image or text that will be hyperlinked </a> - a space must be between the a & href - the website that the image or text is leading to must be in quotes - be sure to include </a> or everything past this tag will be hyperlinked - web addresses should be written with http://

Styling HTML with CSS CSS was introduced together with HTML 4, to provide a better way to style HTML elements. CSS can be added to HTML in the following ways: Inline - using the style attribute in HTML elements Internal - using the <style> element in the <head> section External - using an external CSS file

Inline Styles An inline style can be used if a unique style is to be applied to one single occurrence of an element. To use inline styles, use the style attribute in the relevant tag. The style attribute can contain any CSS property. The example below shows how to change the text color and the left margin of a paragraph:

Inline Styles <p style="color:blue;margin-left:20px;">This is a paragraph.</p>

HTML Style Example Background Color <!DOCTYPE html> < html> < body style="background-color:yellow;"> < h2 style="background-color:red;">This is a heading</h2> < p style="background-color:green;">This is a paragraph.</p> < /body> < /html>

HTML Style Example Font, Color, and Size <!DOCTYPE html> < html> < body> < h1 style="font-family:verdana;">A heading</h1> < p style="font-family:arial;color:red;font-size:20px;">A paragraph.</p> < /body> < /html>

HTML Style Example Text Alignment <!DOCTYPE html> < html> < body> < h1 style="text-align:center;">Center-aligned heading</h1> < p>This is a paragraph.</p> < /body> < /html>

HTML <blockquote> Tag The <blockquote> tag defines a long quotation. Browsers usually indent <blockquote> elements. <blockquote> < p>Here is a long quotation here is a long quotation</p> < /blockquote>

HTML <blockquote> Tag Here comes a long quotation: <blockquote>This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation. This is a long quotation.</blockquote> Notice that a browser inserts white space before and after a blockquote element. It also inserts margins for the blockquote element.

Assignment Summer Vacation Due Tuesday