HyperText Markup Language

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

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.
Introduction to HTML & CSS
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
WeB application development
Teppo Räisänen LIIKE/OAMK 2010
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.
Creating a Web Page HyperText Markup Language. HTML Documents  Created using any text editor  Notepad  Vi, Pico, or Emacs  If using word-processor,
Basics of HTML.
CS 299 – Web Programming and Design Introduction to HTML.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
Computer Information Technology – Section 3-4. HTML – The Language of the Internet Objectives: The Student will: 1. Look at HTML 2. Understand the basic.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
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.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML Structure & syntax
HTML Structure & syntax
Lab 3 Html basics.
Basic concepts of web design
Fall 2016 CSULA Saloni Chacha
Introduction and HTML overview
Intro to HTML CS 1150 Spring 2017.
INTRO TO WEB DEVELOPMENT html
Introduction to HTML.
Web Basics: HTML/CSS/JavaScript What are they?
HTML Basics.
Introduction to HTML:.
HTML basics
Internet Exploration: HTML Basics
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
BHS Web Design Mr. Campbell
LAB Work 01 MBA 61062: E-Commerce
Intro to HTML CS 1150 Fall 2016.
Transcriptions Studio Workshop Fall 2006
XHTML/CSS Week 1.
Introduction to HTML.
Introduction to HTML.
Web Design and Development
Elements of HTML Web Design – Sec 3-2
Mansoor Ahmed Bughio.
HTML Lab 5 10/1/2015.
HTML.
Introduction to Web programming
Chapter 1: Introduction to XHTML (part 1)
Internet Exploration: HTML Basics
Elements of HTML Web Design – Sec 3-2
HTML (HyperText Markup Language)
Programming for webpages
Introduction to Web programming
Software Engineering for Internet Applications
Computers and Scientific Thinking David Reed, Creighton University
HTML 12/27/2018.
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Introduction to HTML.
Pertemuan 1b
HTML Basic Structure.
HTML Structure.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Web Application Development
Basic HTML Workshop.
Pertemuan 1 Desain web Pertemuan 1
HyperText Markup Language
Johan Ng and Muhammad Hazzry
HTML Structure & syntax
Web Programming and Design
HTML Introduction.
Presentation transcript:

HyperText Markup Language HTML HyperText Markup Language

Internet Client browser (Chrome, IE) sends request to server Server returns response to client Browser displays the response in IE or Chrome HTML is the language that define on how the response will be displayed on browser

How responses look on browser

What is HTML HTML documents are simply text documents with a specific form Documents comprised of content and markup tags Content: actual information being conveyed The markup tags tell the Web browser how to display the page An HTML file must have an htm or html file extension An HTML file can be created using a simple text editor

Our first HTML If you are running Windows, start Notepad If you are on a Mac, start SimpleText Type in the following: <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> </body> </html>

Our first HTML Save as index.html

Our first HTML Open in browser (double click)

Our first HTML Tag <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> </body> </html> Tag

Our first HTML Tag HTML tags are used to mark-up HTML elements Surrounded by angle brackets < and > HTML tags normally come in pairs, like <tagname> (start tag) and </tagname> (end tag) The text between the start and end tags is the element content Not case-sensitive Follow the latest web standards: Use lowercase tags <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> </body> </html> Tag

Our first HTML The <!DOCTYPE html> declaration defines this document to be HTML5 The <html> element is the root element of an HTML page The <head> element contains meta information about the document The <title> element specifies a title for the document The <body> element contains the visible page content The <h1> element defines a large heading The <p> element defines a paragraph Tag <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> </body> </html> Tag

HTML Page Structure

HTML Text Format

HTML Style Use the style attribute for styling HTML elements Use background-color for background color Use color for text colors Use font-family for text fonts Use font-size for text sizes Use text-align for text alignment

HTML Link <a href="url">link text</a>

Images <img src="url" alt="some_text" style="width:width;height:height;"> The alt attribute provides an alternate text for an image, if the 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).

Table <table style="width:100%">   <tr>     <th>Firstname</th>     <th>Lastname</th>      <th>Age</th>   </tr>   <tr>     <td>Jill</td>     <td>Smith</td>      <td>50</td>   </tr>   <tr>     <td>Eve</td>     <td>Jackson</td>      <td>94</td>   </tr> </table>

Table with style

List

List

Other html elements can be place inside <li><li> Links inside <li>

Block <div></div> is block tag We can define the style of a block. Everything inside the block will follow the style of the block <div style="background- color:black;color:white;padding:20px;">   <h2>London</h2>   <p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p> </div>

Block

Block If we change the block background color to green and the color to orange it becomes

Assignment Create this page from scratch

CSS Make the background blue (deepsky)blue

CSS Make the page center

Making the page center Set the text alignment of the body to be centered (text-align:center) Add a new block (div) that is the main div that cover all other divs Set the width of the div

CSS (work on the header) Combine the links and the header into one block <div> <ul> <li><a href="http://www.google.com">Home</a></li> <li><a href="http://www.indopenn.com">Products</a></li> <li><a href="http://www.yahoo.com">Services</a></li> </ul> <h1>Unyils's Web</h1> </div>

CSS (work on the header) Combine the links and the header into one block <div> <ul> <li><a href="http://www.google.com">Home</a></li> <li><a href="http://www.indopenn.com">Products</a></li> <li><a href="http://www.yahoo.com">Services</a></li> </ul> <h1>Unyils's Web</h1> </div>

CSS (work on the header) <div style="width:921px; display: inline"> <p> <ul style="list-style-type: none;float:left"> <li style="display:inline"><a href="http://www.google.com">Home</a></li> <li style="display:inline"><a href="http://www.indopenn.com">Products</a></li> <li style="display:inline"><a href="http://www.yahoo.com">Services</a></li> </ul> <h1 style="float:right">Unyils's Web</h1> </p> </div>

CSS (work on the header). Put them inside a table

Add Line below header <hr style="border-top: dotted 5px;" />

Main content in a table

After applying CSS

Resources https://www.w3schools.com/html/default.asp

Terima Kasih