HTML.

Slides:



Advertisements
Similar presentations
Intro to HTML. HTML HTML = HyperText Markup Language Used to define the content of a webpage HTML is made up of tags and attributes Content.
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.
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.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
CSS(Cascading Style Sheets )
กระบวนวิชา 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.
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
Chapter 4 – Intermediate HTML 4 Outline 4.1 Unordered Lists 4.2 Nested and Ordered Lists 4.3 Basic HTML Tables 4.4 Intermediate HTML Tables and Formatting.
XHTML II DIGITAL MEDIA: COMMUNICATION AND DESIGN F2007.
 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.
Using HTML Tables.
HTML. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
Chapter 5 Working with Tables. Agenda Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
CS105 Introduction to Computer Concepts HTML
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
HTML II ECT 270 Robin Burke. 2 Outline Review Images text flow links Image maps Colors Tables.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
CS134 Web Design & Development Creating a Basic Web Page Exerted from Mehmud Abliz slides.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
Getting Started with HTML Please use speaker notes for additional information!
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
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 Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
Lab 3 Html basics.
Let’s Try It! Open Notepad
Web Protocols, Technologies and Applications
INTRO TO WEB DEVELOPMENT html
HTML Basics.
LAB Work 01 MBA 61062: E-Commerce
Semester - Review.
Unit 3 - Review.
Elements of HTML Web Design – Sec 3-2
>> HTML: Tables.
Elements of HTML Web Design – Sec 3-2
LAB Work 02 MBA 61062: E-Commerce
Chapter 1: Introduction to XHTML (part 1)
Elements of HTML Web Design – Sec 3-2
Web Design & Development
The Internet 10/25/11 XHTML Tables
HTML Intro.
Software Engineering for Internet Applications
Computers and Scientific Thinking David Reed, Creighton University
Using HTML Tables SWBAT: - create tables using HTML
Marking Up with XHTML Tags describe how a web page should look
Web Protocols, Technologies and Applications
Introduction to HTML.
Using tables in HTML Goes in order with Examples at my site.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Images in HTML PowerPoint How images are used in HTML
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

HTML

Goals How to use the Komodo editor HTML coding and testing List and Images Tables and Links At least 2 pages and navigation http://www.w3schools.com

Browser and Web Server

Basic Syntax of HTML <> denotes tags For example: <strong> indicates the following text will be bold Most tags require and opening and closing tags to stop </strong> indicates the closing tag Example: <strong> Bold me! </strong> but not me! The result of the above will be: Bold me! but not me!

Important note on style tags HTML used to have style tags: <b></b>, <i></i>, etc… *These tags have been deprecated* -meaning: WE DON’T USE THEM ANYMORE HTML was never meant to be about styles, that’s why we have CSS. Instead lets use phrase tags: <strong></strong>; <em></em>; etc. These tags describe the text that surrounds it We can use CSS to style these elements even further.

Example of phrase tags <p> This is an <strong>example</strong> </p> This is an example Phrase tags are better suited to be used with HTML

HTML Tag Rules Whitespace are ignored Attribute values are enclosed in single or double quotes Beware: HTML does no checking for syntax errors – it interprets what it can and ignores the rest. You will need to be the error checker for yourself

Start and End of HTML <html> </html> Start and end of HTML <head> </head> Start and end of head section <body> </body> Start and end of body

Basic Structure of HTML Page <!DOCTYPE html> <html> <head> <title> The Title </title> </head> <body> <strong>Test Page</strong> with text </html>

Syntax Headers Paragraphs <h1> Header 1 </h1> - largest <h6> Header 3 </h6> - smallest Paragraphs <p> Paragraph </p>

More Syntax Next Line Changing text Comment <br/> <strong> </strong> <em> </em> <u> underline </u> (use CSS to do this now: style=“text-decoration: underline”) Comment <!-- Comment, does not show up on a browser -->

Linking Web Pages <a href=“url_here”> Link Text </a> The URL can be: a page you created or an external link (MUST HAVE HTTP) <a href=“aboutMe.html”> About Me </a> <a href =“http://www.mtsu.edu”> MTSU </a> MTSU

Useful Attributes for Links target=“_blank” – opens the link in a new window title=“example of a link here” – the alt text of the link Can anchor pages: Add id=“linkName” inside of any tag Then add, <a href="#linkName">here</a> to go to the anchor. 

More Syntax!   one space <marquee> Text scrolling </marquee> **Again, this is HTML 4 and should really be done with CSS**

Styling

Styling Three ways to style HTML Inline* Internal Style sheet <p style=“color:blue”>This is a blue paragraph.</p> Internal Style sheet All styling is done in the <head></head> tags of the HTML code External Style sheet* Styling is put in a separate file(s) *What we’re using in this class

Inline styling Appropriate when you want a unique style to be applied to one single occurrence of an element. Use the style attribute in the relevant tag. It can contain any CSS property. Example: <p style=“color:blue; margin-left:20px”>This is a paragraph.</p>

What if I want to just style one word in a Sentence? Since the style attribute allows us to style an element. What’s the best way to style just one word in an element? <span></span> tags can go around one or more words! Example <p> My favorite font is <span style=“font-family: Futura”>Futura</span>!</p>

Lists

Lists Two types of lists Ordered: Unordered First entry Second entry Third entry Unordered Entry

Ordered Lists <ol> <li> First Entry </li> <li> Second Entry </li> <li> Third Entry </li> </ol>

Order List Attributes Compact – less space between lines and indentation <ol compact="compact"> Start – specifies the start number <ol start="50"> Type – specifies the type of order (1, A, a, I, i) <ol type="I">

Unordered Lists <ul> <li> Entry </li> </ul>

Unordered Lists Attributes Compact <ul compact="compact"> Type (disc, square, circle) <ul type="square">

Lists Within Lists First Entry Second Entry Third Entry Sub Entry <ol> <li> First Entry </li> <ul> <li> Sub Entry </li> </ul> <li> Second Entry </li> <li> Third Entry </li> </ol> First Entry Sub Entry Second Entry Third Entry

Images

Inserting Images Two ways to insert: Use an Internet link Copy the image to your account, then link it <img src=“www.some_site.com/image.jpg” /> <img src=“image.jpg” />

What is the Difference? Link: You just include the URL Taking up the resources of whatever site you got the link from Copying: have to download the image Include the location and image name.

Attributes of Inserting Images Alt – the alternative text of the picture this shows up when you scroll over an image Width – specifies the width of the image Height – specifies the height of the image Align – specifies the alignment (top, bottom, middle, left, right) (Going to use CSS for this) <img src=“image.jpg" alt=“My Picture" width="304" height="228" />

Making an Image Your Background For color: <body style=“background-color:“color"> For background image: <body background="bgimage.jpg">

Making a Picture a Link <a href=“url”> <img src=“image.jpg” /> </a>

Tables

Tables <table> </table> : Start and end of the table <th> </th> : Start and end of a header cell <tr> </tr> : Start and end of a row <td> </td> : Start and end of a table data cell

Tables <table border=1> <tr> <th> Header 1 </th> <th> Header 2 </th> </tr> <td> Data 1 </td> <td> Data 2 </td> </table> Header 1 Header 2 Data 1 Data 2

Attributes of Tables table: align, bgcolor, border, cell padding, cell spacing, frame, rules, summary, width tr: align, bgcolor, charoff, valign th & td: abbr, align, axis, bgcolor, char, charoff, colspan, height, nowrap, rowspan, scope, valign, width

Changing your Webpage Layout Div: http://www.w3schools.com/html/html_layout.asp