SlideShare a Scribd company logo
1 of 53
Basic <HTML>
from w3school lessons
by Niciuzza, nicha.in.th
Hyper Text Markup Language
=
HTML
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
<!DOCTYPE html>
<head>
</head>
<body>
<div class="wrapper">
<header id="logocompany">
<h1 id="wegetlogo"><a href="" title="
WeGetHosting.com"><img src="img/logo.png" alt="
WeGetHosting.com"></a></h1>
</header>
.....
</div>
</body>
</html>
HTML is a markup language
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
HTML is a markup language
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
HTML
have many many
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
TAGS
<tagname>content</tagname>
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
TAGs
are usually place inside
<Angle Brackets>
a TAG means a type of content
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
<p> = Paragraph
<a> = Anchor Link
<h1> = Header 1
HTML documents
contain
TAGs & TEXTs
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
HTML documents
is
Web Page
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
<!DOCTYPE html>
<head>
</head>
<body>
<div class="wrapper">
<header id="
logocompany">
<h1 id="logo"><a
href="" title="P&THosting.com"
><img src="img/logo.png" alt="
WeGetHosting.com"></a></h1>
</header>
.....
</div>
</body>
</html>
HTML page structure
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
<html>
</html>
<body>
</body>
<h1>This a heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
HTML
HTML Versions
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
1991
1993
1995
1997
1999
2000
2012
2013
<!DOCTYPE>
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HTML 4.01
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
XHTML 1.0
<!DOCTYPE html>
HTML5
HTML Tags You Must Know
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
● Headings
● Paragraphs
● Link
● Image
<h1>This is Heading</h1>
<p>This is Paragraph</p>
<a href="http://nicha.in.th">This is a link</a>
<img src="w3schools.jpg" width="104" height="142">
<p>Hello World</p>
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
open TAG
Content
close TAG
HTML Elements
HTML Element Syntax
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
<a href="default.htm">This is a
link</a>
<img src="w3schools.jpg" width="104"
height="142" />
HTML Element Nested
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
<html>
</html>
<body>
</body>
<h1>This a heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
HTML Attributes
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
<a href="nicha.in.th">This is a link</a>
href = a attribute of <a>
Attributes Value should be inside "Double Quote" or 'Single Quote'.
But Double Quote is Recommended.
HTML Attributes
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
<img src="pic.jpg" width="104" height="142">
One Tag may have many attributes
HTML Attributes
that can use in any tags
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
class: Specifies one or more classnames for an element
id: Specifies a unique id for an element
style: Specifies an inline CSS style for an element
title: Specifies extra information about an element (displayed as a tool
tip)
<h1>HTMl H1 Heading</h1>
<h2>HTML H2 Heading</h2>
<h3>HTML H3 Heading</h3>
<h4>HTML H4 Heading</h4>
<h5>HTML H5 Heading</h5>
<h6>HTML H6 Heading</h6>
HTML Heading
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
HTMl H1 Heading
HTML H2 Heading
HTML H3 Heading
HTML H4 Heading
HTML H5 Heading
HTML H6 Heading
● Don't use Heading for Bold or Big text.
● Use them as a hierarchy.
<!-- This is a comment -->
HTML Comments
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
● Comments make code more readable and understandable.
● Comments are ignored by the browser and are not displayed.
<p>This is a paragraph.
Tincidunt pellentesque
ridiculus, dignissim nec!
Tincidunt et proin porttitor?
Augue ac cras! Integer augue
sit turpis magna et dolor
cras.</p>
HTML Paragraphs
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Line Break. <br>
This is a paragraph. Tincidunt
pellentesque ridiculus, dignissim nec!
Tincidunt et proin porttitor? Augue ac
cras! Integer augue sit turpis magna et
dolor cras.
<p>This is a paragraph.<br>
Tincidunt pellentesque
ridiculus, dignissim nec!<br>
Tincidunt et proin porttitor?
<br> Augue ac cras! Integer
augue sit turpis magna et
dolor cras.</p>
This is a paragraph.
Tincidunt pellentesque ridiculus,
dignissim nec!
Tincidunt et proin porttitor?
Augue ac cras! Integer augue sit turpis
magna et dolor cras.
<p><b>This text is bold</b></p>
<p><strong>This text is strong</strong></p>
<p><i>This text is italic</i></p>
<p><em>This text is emphasized</em></p>
HTML Text Formatting
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
This text is bold
This text is strong
This text is italic
This text is emphasized
<p><b>This text is bold</b></p>
<p><strong>This text is strong</strong></p>
<p><i>This text is italic</i></p>
<p><em>This text is emphasized</em></p>
HTML Text Formatting
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
● Many Browsers Often renders <strong> as <b>, and <em> as <i>.
● <strong>, <em> mean "Important".
● <b>, <i> defines bold or italic text only.
Ref: http://www.w3schools.com/html/html_formatting.asp
<a href="url">Link text</a>
HTML Links
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
● <a> defines a hyperlink.
● Hyperlink is a word, group of words, or image that you
can click on to jump to another document.
Link text
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>
HTML <head>&<title>
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
● <head> instruct the browser where to find style sheets, provide meta
information, and more.
● <title> defines the title of the document.
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
HTML <link>,<style>
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_head.asp
● <link> instruct the browser where to find style sheets or script.
● <style> is used to define style information for an HTML document
<head>
<style type="text/css">
body {background-color:yellow}
p {color:blue}
</style>
</head>
<img src="picture_url" alt="some_text">
HTML Images
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_images.asp
<img> is empty, it contains attributes only and no closing tag.
<img> Attributes
● src = source (of image)
● alt = alternate text for an image, This text will show when image doesn't
display.
● width = width of image
● height = height of image
<table border="1">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
HTML Table
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
● A table is divided into rows with <tr> ("table row").
● each row is divided into data cells with <td> ("table data") and contain
the data of the table which can be text, links, images, lists, forms, other
tables, etc.
<table border="1" cellpadding="10"
>
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
HTML Table Attribute
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_tables.asp
● border = border of the table
● cellspacing = space between each cells
● cellpadding = space inside each cells
<table border="1" cellspacing="10"
>
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
HTML Order Lists
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_lists.asp
● <ol> is defined as order list.
● <li> is under <ol>, defined as each list item.
<ol>
<li>The first list item </li>
<li>The second list item </li>
<li>The third list item </li>
</ol>
HTML Unorder Lists
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_lists.asp
● <ul> is defined as Unorder List.
● <li> is under <ul>, defined as each list item.
<ul>
<li>The first list item </li>
<li>The second list item </li>
<li>The third list item </li>
</ul>
HTML Description Lists
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_lists.asp
● <dl> is defined as Description List.
● <dt> is under <dl>, defined as terms/names.
● <dd> is defined as description of each term/name.
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
HTML Nested Lists
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_lists.asp
<ul>
<li>Coffee</li>
<li>Tea
<ul>
<li>Black tea</li>
<li>Green tea
<ul>
<li>China</li>
<li>Africa</li>
</ul>
</li>
</ul>
</li>
<li>Milk</li>
</ul>
HTML Block Element
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_blocks.asp
● Block level elements normally start (and end) with a
new line.
● Examples: <h1>, <p>, <ul>, <table>, etc.
HTML Inline Element
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_blocks.asp
● Inline elements are normally displayed without
starting a new line.
● Examples: <b>, <td>, <a>, <img>
HTML <div>
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_blocks.asp
● <div> is Block Elements.
● <div> is used as a container for grouping other HTML
elements.
● <div> is used for creating layout of web instead of
using <table>
HTML <span>
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_blocks.asp
● <span> is Inline Elements.
● <span> is used as a container for text.
HTML Table layouts
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_layout.asp
<!DOCTYPE html>
<html>
<body>
<table width="500" border="0">
<tr>
<td colspan="2" style="background-color:#FFA500;">
<h1>Main Title of Web Page</h1>
</td>
</tr>
<tr>
<td style="background-color:#FFD700;width:100px;">
<b>Menu</b><br>HTML<br>CSS<br>JavaScript
</td>
<td style="background-color:#EEEEEE;height:200px;width:400px;">
Content goes here</td>
</tr>
<tr>
<td colspan="2" style="background-color:#FFA500;text-align:center;">
Copyright © W3Schools.com</td>
</tr>
</table>
</body>
</html>
HTML Table layouts
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_layout.asp
HTML Table layouts
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_layout.asp
● Table layout is the old way to create layout of web
● Tables were designed for presenting tabular data -
NOT as a layout tool!
HTML Layouts with <div>
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_layout.asp
<!DOCTYPE html>
<html>
<body>
<div id="container" style="width:500px">
<div id="header" style="background-color:#FFA500;">
<h1 style="margin-bottom:0;">Main Title of Web Page</h1>
</div>
<div id="menu" style="background-color:#FFD700;height:200px;width:100px;float:left;">
<b>Menu</b><br>HTML<br>CSS<br>JavaScript
</div>
<div id="content" style="background-color:#EEEEEE;height:200px;width:400px;float:
left;">Content goes here</div>
<div id="footer" style="background-color:#FFA500;clear:both;text-align:center;">
Copyright © W3Schools.com</div>
</div>
</body>
</html>
HTML Layouts with <div>
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_layout.asp
HTML Forms and Inputs
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_forms.asp
● <form> are used to pass data to a server.
● <input> is used to select user information.
<form>
First name: <input type="text" name="firstname"><br>
Last name: <input type="text" name="lastname">
</form>
HTML Forms and Inputs
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_forms.asp
● Text Field : <input type="text"> defines a one-line input field that a user
can enter text into.
name: <input type="text" name="name"
>
● Password : <input type="password"> defines a password field
Password: <input type="password"
name="pwd">
HTML Forms and Inputs
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_forms.asp
● Radio Button : <input type="radio"> that let a user select ONLY ONE of
a limited number of choices.
<input type="radio" name="sex" value="male"
>Male<br>
<input type="radio" name="sex" value="
female">Female
● Checkbox : <input type="password"> that let a user select ZERO or
MORE options of a limited number of choices.
<input type="checkbox" name="vehicle"
value="Bike">I have a bike<br>
<input type="checkbox" name="vehicle"
value="Car">I have a car
HTML Forms and Inputs
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_forms.asp
● Submit : <input type="submit"> is used to send form data to a server.
<form name="input" action="html_form_action.asp" method="get">
Username: <input type="text" name="user">
<input type="submit" value="Submit">
</form>
HTML Color Values
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_colors.asp
● HTML using a hexadecimal notation (HEX) for the combination of Red,
Green, and Blue color values (RGB).
HTML Color Values
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_colornames.asp
● 141 color names are defined in the HTML and CSS color specification (17
standard colors plus 124 more)
● The 17 standard colors are: aqua, black, blue, fuchsia, gray, green, lime,
maroon, navy, olive, orange, purple, red, silver, teal, white, and yellow.
HTML Entities
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/tags/ref_entities.asp
HTML Quick List
BASIC HTML for Web Designer by Niciuzza, nicha.in.th
Ref: http://www.w3schools.com/html/html_quick.asp
Enjoy
and
May HTML be with You.
BASIC HTML for Web Designer by Niciuzza, nicha.in.th

More Related Content

What's hot

Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basicsEliran Eliassy
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to htmlpalhaftab
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation Salman Memon
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet pptabhilashagupta
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsSun Technlogies
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS PresentationShawn Calvert
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSSMario Hernandez
 
Html text and formatting
Html text and formattingHtml text and formatting
Html text and formattingeShikshak
 
Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for studentsvethics
 
Html links
Html linksHtml links
Html linksJayjZens
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html NotesNextGenr
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmleShikshak
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginnersjeroenvdmeer
 

What's hot (20)

Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to html
 
Html ppt
Html pptHtml ppt
Html ppt
 
Css selectors
Css selectorsCss selectors
Css selectors
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
 
Html
HtmlHtml
Html
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Intro to html 5
Intro to html 5Intro to html 5
Intro to html 5
 
Html 5
Html 5Html 5
Html 5
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Html text and formatting
Html text and formattingHtml text and formatting
Html text and formatting
 
Php.ppt
Php.pptPhp.ppt
Php.ppt
 
Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
 
Html links
Html linksHtml links
Html links
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginners
 

Viewers also liked

Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTMLMayaLisa
 
[Basic HTML/CSS] 1. html - basic tags
[Basic HTML/CSS] 1. html - basic tags[Basic HTML/CSS] 1. html - basic tags
[Basic HTML/CSS] 1. html - basic tagsHyejin Oh
 
How to Make HTML and CSS Files
How to Make HTML and CSS FilesHow to Make HTML and CSS Files
How to Make HTML and CSS FilesLearningNerd
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvikasgaur31
 
Digital Pulse Summit - Marketing with Mobile in Mind & Its Effect on Social &...
Digital Pulse Summit - Marketing with Mobile in Mind & Its Effect on Social &...Digital Pulse Summit - Marketing with Mobile in Mind & Its Effect on Social &...
Digital Pulse Summit - Marketing with Mobile in Mind & Its Effect on Social &...Digital Clarity Group
 
Front End Web Development Basics
Front End Web Development BasicsFront End Web Development Basics
Front End Web Development BasicsTahir Shahzad
 
Girls Can Code - 2/10/17
Girls Can Code - 2/10/17Girls Can Code - 2/10/17
Girls Can Code - 2/10/17Kayla Leung
 
[Basic HTML/CSS] 7. project
[Basic HTML/CSS] 7. project[Basic HTML/CSS] 7. project
[Basic HTML/CSS] 7. projectHyejin Oh
 
Girls Can Code - 1/27/17
Girls Can Code - 1/27/17Girls Can Code - 1/27/17
Girls Can Code - 1/27/17Kayla Leung
 
Lesson plan: HTML Formatting Texts and Paragraphs
Lesson plan: HTML Formatting Texts and ParagraphsLesson plan: HTML Formatting Texts and Paragraphs
Lesson plan: HTML Formatting Texts and ParagraphsKeith Borgonia Manatad
 
separating content and layout, HTML CSS and some web history
separating content and layout, HTML CSS and some web historyseparating content and layout, HTML CSS and some web history
separating content and layout, HTML CSS and some web historyLon Barfield
 
Learn HTML & CSS From Scratch in 30 Days
Learn HTML & CSS From Scratch in 30 DaysLearn HTML & CSS From Scratch in 30 Days
Learn HTML & CSS From Scratch in 30 DaysJonathan Grover
 
ICT for Teachers in Basic Education
ICT for Teachers in Basic EducationICT for Teachers in Basic Education
ICT for Teachers in Basic Educationischool webboard
 

Viewers also liked (20)

Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html basic
Html basicHtml basic
Html basic
 
[Basic HTML/CSS] 1. html - basic tags
[Basic HTML/CSS] 1. html - basic tags[Basic HTML/CSS] 1. html - basic tags
[Basic HTML/CSS] 1. html - basic tags
 
How to Make HTML and CSS Files
How to Make HTML and CSS FilesHow to Make HTML and CSS Files
How to Make HTML and CSS Files
 
HTML Basic
HTML BasicHTML Basic
HTML Basic
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Digital Pulse Summit - Marketing with Mobile in Mind & Its Effect on Social &...
Digital Pulse Summit - Marketing with Mobile in Mind & Its Effect on Social &...Digital Pulse Summit - Marketing with Mobile in Mind & Its Effect on Social &...
Digital Pulse Summit - Marketing with Mobile in Mind & Its Effect on Social &...
 
Front End Web Development Basics
Front End Web Development BasicsFront End Web Development Basics
Front End Web Development Basics
 
Girls Can Code - 2/10/17
Girls Can Code - 2/10/17Girls Can Code - 2/10/17
Girls Can Code - 2/10/17
 
[Basic HTML/CSS] 7. project
[Basic HTML/CSS] 7. project[Basic HTML/CSS] 7. project
[Basic HTML/CSS] 7. project
 
Girls Can Code - 1/27/17
Girls Can Code - 1/27/17Girls Can Code - 1/27/17
Girls Can Code - 1/27/17
 
Html basic
Html basicHtml basic
Html basic
 
Basics of Html
 Basics of Html Basics of Html
Basics of Html
 
Basic html
Basic htmlBasic html
Basic html
 
Lesson plan: HTML Formatting Texts and Paragraphs
Lesson plan: HTML Formatting Texts and ParagraphsLesson plan: HTML Formatting Texts and Paragraphs
Lesson plan: HTML Formatting Texts and Paragraphs
 
separating content and layout, HTML CSS and some web history
separating content and layout, HTML CSS and some web historyseparating content and layout, HTML CSS and some web history
separating content and layout, HTML CSS and some web history
 
Learn HTML & CSS From Scratch in 30 Days
Learn HTML & CSS From Scratch in 30 DaysLearn HTML & CSS From Scratch in 30 Days
Learn HTML & CSS From Scratch in 30 Days
 
ICT for Teachers in Basic Education
ICT for Teachers in Basic EducationICT for Teachers in Basic Education
ICT for Teachers in Basic Education
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 

Similar to Basic html

Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5Terry Ryan
 
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)christopherfross
 
Hypertext_markup_language
Hypertext_markup_languageHypertext_markup_language
Hypertext_markup_languageIshaq Shinwari
 
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmCaracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmMaria S Rivera
 
Web design and Development
Web design and DevelopmentWeb design and Development
Web design and DevelopmentShagor Ahmed
 
Diazo: Bridging Designers and Programmers
Diazo: Bridging Designers and ProgrammersDiazo: Bridging Designers and Programmers
Diazo: Bridging Designers and ProgrammersTsungWei Hu
 
Class 1 handout (2) html exercises
Class 1 handout (2) html exercisesClass 1 handout (2) html exercises
Class 1 handout (2) html exercisesErin M. Kidwell
 
Semantic HTML5
Semantic HTML5Semantic HTML5
Semantic HTML5Terry Ryan
 
Web technologies: Lesson 2
Web technologies: Lesson 2Web technologies: Lesson 2
Web technologies: Lesson 2nhepner
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup languageBasmaa Mostafa
 
Computer application html
Computer application htmlComputer application html
Computer application htmlPrashantChahal3
 
01. 02. html web engineering html &amp; introduction
01. 02. html   web engineering html &amp; introduction01. 02. html   web engineering html &amp; introduction
01. 02. html web engineering html &amp; introductionN Gull
 
Basics of html for web development by software outsourcing company india
Basics of html for web development   by software outsourcing company indiaBasics of html for web development   by software outsourcing company india
Basics of html for web development by software outsourcing company indiaJignesh Aakoliya
 
#3 HTML & CSS [know-how]
#3 HTML & CSS [know-how]#3 HTML & CSS [know-how]
#3 HTML & CSS [know-how]Dalibor Gogic
 

Similar to Basic html (20)

Html and html5 cheat sheets
Html and html5 cheat sheetsHtml and html5 cheat sheets
Html and html5 cheat sheets
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Zen
ZenZen
Zen
 
Zen based theming
Zen based themingZen based theming
Zen based theming
 
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)
 
Hypertext_markup_language
Hypertext_markup_languageHypertext_markup_language
Hypertext_markup_language
 
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De HtlmCaracteristicas Basicas De Htlm
Caracteristicas Basicas De Htlm
 
Html intro
Html introHtml intro
Html intro
 
Web design and Development
Web design and DevelopmentWeb design and Development
Web design and Development
 
Diazo: Bridging Designers and Programmers
Diazo: Bridging Designers and ProgrammersDiazo: Bridging Designers and Programmers
Diazo: Bridging Designers and Programmers
 
Class 1 handout (2) html exercises
Class 1 handout (2) html exercisesClass 1 handout (2) html exercises
Class 1 handout (2) html exercises
 
Html2
Html2Html2
Html2
 
Semantic HTML5
Semantic HTML5Semantic HTML5
Semantic HTML5
 
Web technologies: Lesson 2
Web technologies: Lesson 2Web technologies: Lesson 2
Web technologies: Lesson 2
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup language
 
Computer application html
Computer application htmlComputer application html
Computer application html
 
01. 02. html web engineering html &amp; introduction
01. 02. html   web engineering html &amp; introduction01. 02. html   web engineering html &amp; introduction
01. 02. html web engineering html &amp; introduction
 
Basics of html for web development by software outsourcing company india
Basics of html for web development   by software outsourcing company indiaBasics of html for web development   by software outsourcing company india
Basics of html for web development by software outsourcing company india
 
#3 HTML & CSS [know-how]
#3 HTML & CSS [know-how]#3 HTML & CSS [know-how]
#3 HTML & CSS [know-how]
 

Recently uploaded

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Recently uploaded (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

Basic html

  • 1. Basic <HTML> from w3school lessons by Niciuzza, nicha.in.th
  • 2. Hyper Text Markup Language = HTML BASIC HTML for Web Designer by Niciuzza, nicha.in.th
  • 3. <!DOCTYPE html> <head> </head> <body> <div class="wrapper"> <header id="logocompany"> <h1 id="wegetlogo"><a href="" title=" WeGetHosting.com"><img src="img/logo.png" alt=" WeGetHosting.com"></a></h1> </header> ..... </div> </body> </html> HTML is a markup language BASIC HTML for Web Designer by Niciuzza, nicha.in.th
  • 4. HTML is a markup language BASIC HTML for Web Designer by Niciuzza, nicha.in.th
  • 5. HTML have many many BASIC HTML for Web Designer by Niciuzza, nicha.in.th TAGS
  • 6. <tagname>content</tagname> BASIC HTML for Web Designer by Niciuzza, nicha.in.th TAGs are usually place inside <Angle Brackets>
  • 7. a TAG means a type of content BASIC HTML for Web Designer by Niciuzza, nicha.in.th <p> = Paragraph <a> = Anchor Link <h1> = Header 1
  • 8. HTML documents contain TAGs & TEXTs BASIC HTML for Web Designer by Niciuzza, nicha.in.th
  • 9. HTML documents is Web Page BASIC HTML for Web Designer by Niciuzza, nicha.in.th
  • 10. BASIC HTML for Web Designer by Niciuzza, nicha.in.th <!DOCTYPE html> <head> </head> <body> <div class="wrapper"> <header id=" logocompany"> <h1 id="logo"><a href="" title="P&THosting.com" ><img src="img/logo.png" alt=" WeGetHosting.com"></a></h1> </header> ..... </div> </body> </html>
  • 11. HTML page structure BASIC HTML for Web Designer by Niciuzza, nicha.in.th <html> </html> <body> </body> <h1>This a heading</h1> <p>This is a paragraph.</p> <p>This is another paragraph.</p>
  • 12. HTML HTML Versions BASIC HTML for Web Designer by Niciuzza, nicha.in.th 1991 1993 1995 1997 1999 2000 2012 2013
  • 13. <!DOCTYPE> BASIC HTML for Web Designer by Niciuzza, nicha.in.th <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> HTML 4.01 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> XHTML 1.0 <!DOCTYPE html> HTML5
  • 14. HTML Tags You Must Know BASIC HTML for Web Designer by Niciuzza, nicha.in.th ● Headings ● Paragraphs ● Link ● Image <h1>This is Heading</h1> <p>This is Paragraph</p> <a href="http://nicha.in.th">This is a link</a> <img src="w3schools.jpg" width="104" height="142">
  • 15. <p>Hello World</p> BASIC HTML for Web Designer by Niciuzza, nicha.in.th open TAG Content close TAG HTML Elements
  • 16. HTML Element Syntax BASIC HTML for Web Designer by Niciuzza, nicha.in.th <a href="default.htm">This is a link</a> <img src="w3schools.jpg" width="104" height="142" />
  • 17. HTML Element Nested BASIC HTML for Web Designer by Niciuzza, nicha.in.th <html> </html> <body> </body> <h1>This a heading</h1> <p>This is a paragraph.</p> <p>This is another paragraph.</p>
  • 18. HTML Attributes BASIC HTML for Web Designer by Niciuzza, nicha.in.th <a href="nicha.in.th">This is a link</a> href = a attribute of <a> Attributes Value should be inside "Double Quote" or 'Single Quote'. But Double Quote is Recommended.
  • 19. HTML Attributes BASIC HTML for Web Designer by Niciuzza, nicha.in.th <img src="pic.jpg" width="104" height="142"> One Tag may have many attributes
  • 20. HTML Attributes that can use in any tags BASIC HTML for Web Designer by Niciuzza, nicha.in.th class: Specifies one or more classnames for an element id: Specifies a unique id for an element style: Specifies an inline CSS style for an element title: Specifies extra information about an element (displayed as a tool tip)
  • 21. <h1>HTMl H1 Heading</h1> <h2>HTML H2 Heading</h2> <h3>HTML H3 Heading</h3> <h4>HTML H4 Heading</h4> <h5>HTML H5 Heading</h5> <h6>HTML H6 Heading</h6> HTML Heading BASIC HTML for Web Designer by Niciuzza, nicha.in.th HTMl H1 Heading HTML H2 Heading HTML H3 Heading HTML H4 Heading HTML H5 Heading HTML H6 Heading ● Don't use Heading for Bold or Big text. ● Use them as a hierarchy.
  • 22. <!-- This is a comment --> HTML Comments BASIC HTML for Web Designer by Niciuzza, nicha.in.th ● Comments make code more readable and understandable. ● Comments are ignored by the browser and are not displayed.
  • 23. <p>This is a paragraph. Tincidunt pellentesque ridiculus, dignissim nec! Tincidunt et proin porttitor? Augue ac cras! Integer augue sit turpis magna et dolor cras.</p> HTML Paragraphs BASIC HTML for Web Designer by Niciuzza, nicha.in.th Line Break. <br> This is a paragraph. Tincidunt pellentesque ridiculus, dignissim nec! Tincidunt et proin porttitor? Augue ac cras! Integer augue sit turpis magna et dolor cras. <p>This is a paragraph.<br> Tincidunt pellentesque ridiculus, dignissim nec!<br> Tincidunt et proin porttitor? <br> Augue ac cras! Integer augue sit turpis magna et dolor cras.</p> This is a paragraph. Tincidunt pellentesque ridiculus, dignissim nec! Tincidunt et proin porttitor? Augue ac cras! Integer augue sit turpis magna et dolor cras.
  • 24. <p><b>This text is bold</b></p> <p><strong>This text is strong</strong></p> <p><i>This text is italic</i></p> <p><em>This text is emphasized</em></p> HTML Text Formatting BASIC HTML for Web Designer by Niciuzza, nicha.in.th This text is bold This text is strong This text is italic This text is emphasized
  • 25. <p><b>This text is bold</b></p> <p><strong>This text is strong</strong></p> <p><i>This text is italic</i></p> <p><em>This text is emphasized</em></p> HTML Text Formatting BASIC HTML for Web Designer by Niciuzza, nicha.in.th ● Many Browsers Often renders <strong> as <b>, and <em> as <i>. ● <strong>, <em> mean "Important". ● <b>, <i> defines bold or italic text only. Ref: http://www.w3schools.com/html/html_formatting.asp
  • 26. <a href="url">Link text</a> HTML Links BASIC HTML for Web Designer by Niciuzza, nicha.in.th ● <a> defines a hyperlink. ● Hyperlink is a word, group of words, or image that you can click on to jump to another document. Link text
  • 27. <!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> The content of the document...... </body> </html> HTML <head>&<title> BASIC HTML for Web Designer by Niciuzza, nicha.in.th ● <head> instruct the browser where to find style sheets, provide meta information, and more. ● <title> defines the title of the document.
  • 28. <head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head> HTML <link>,<style> BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_head.asp ● <link> instruct the browser where to find style sheets or script. ● <style> is used to define style information for an HTML document <head> <style type="text/css"> body {background-color:yellow} p {color:blue} </style> </head>
  • 29. <img src="picture_url" alt="some_text"> HTML Images BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_images.asp <img> is empty, it contains attributes only and no closing tag. <img> Attributes ● src = source (of image) ● alt = alternate text for an image, This text will show when image doesn't display. ● width = width of image ● height = height of image
  • 30. <table border="1"> <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table> HTML Table BASIC HTML for Web Designer by Niciuzza, nicha.in.th ● A table is divided into rows with <tr> ("table row"). ● each row is divided into data cells with <td> ("table data") and contain the data of the table which can be text, links, images, lists, forms, other tables, etc.
  • 31. <table border="1" cellpadding="10" > <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table> HTML Table Attribute BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_tables.asp ● border = border of the table ● cellspacing = space between each cells ● cellpadding = space inside each cells <table border="1" cellspacing="10" > <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table>
  • 32. HTML Order Lists BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_lists.asp ● <ol> is defined as order list. ● <li> is under <ol>, defined as each list item. <ol> <li>The first list item </li> <li>The second list item </li> <li>The third list item </li> </ol>
  • 33. HTML Unorder Lists BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_lists.asp ● <ul> is defined as Unorder List. ● <li> is under <ul>, defined as each list item. <ul> <li>The first list item </li> <li>The second list item </li> <li>The third list item </li> </ul>
  • 34. HTML Description Lists BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_lists.asp ● <dl> is defined as Description List. ● <dt> is under <dl>, defined as terms/names. ● <dd> is defined as description of each term/name. <dl> <dt>Coffee</dt> <dd>- black hot drink</dd> <dt>Milk</dt> <dd>- white cold drink</dd> </dl>
  • 35. HTML Nested Lists BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_lists.asp <ul> <li>Coffee</li> <li>Tea <ul> <li>Black tea</li> <li>Green tea <ul> <li>China</li> <li>Africa</li> </ul> </li> </ul> </li> <li>Milk</li> </ul>
  • 36. HTML Block Element BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_blocks.asp ● Block level elements normally start (and end) with a new line. ● Examples: <h1>, <p>, <ul>, <table>, etc.
  • 37. HTML Inline Element BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_blocks.asp ● Inline elements are normally displayed without starting a new line. ● Examples: <b>, <td>, <a>, <img>
  • 38. HTML <div> BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_blocks.asp ● <div> is Block Elements. ● <div> is used as a container for grouping other HTML elements. ● <div> is used for creating layout of web instead of using <table>
  • 39. HTML <span> BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_blocks.asp ● <span> is Inline Elements. ● <span> is used as a container for text.
  • 40. HTML Table layouts BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_layout.asp <!DOCTYPE html> <html> <body> <table width="500" border="0"> <tr> <td colspan="2" style="background-color:#FFA500;"> <h1>Main Title of Web Page</h1> </td> </tr> <tr> <td style="background-color:#FFD700;width:100px;"> <b>Menu</b><br>HTML<br>CSS<br>JavaScript </td> <td style="background-color:#EEEEEE;height:200px;width:400px;"> Content goes here</td> </tr> <tr> <td colspan="2" style="background-color:#FFA500;text-align:center;"> Copyright © W3Schools.com</td> </tr> </table> </body> </html>
  • 41. HTML Table layouts BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_layout.asp
  • 42. HTML Table layouts BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_layout.asp ● Table layout is the old way to create layout of web ● Tables were designed for presenting tabular data - NOT as a layout tool!
  • 43. HTML Layouts with <div> BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_layout.asp <!DOCTYPE html> <html> <body> <div id="container" style="width:500px"> <div id="header" style="background-color:#FFA500;"> <h1 style="margin-bottom:0;">Main Title of Web Page</h1> </div> <div id="menu" style="background-color:#FFD700;height:200px;width:100px;float:left;"> <b>Menu</b><br>HTML<br>CSS<br>JavaScript </div> <div id="content" style="background-color:#EEEEEE;height:200px;width:400px;float: left;">Content goes here</div> <div id="footer" style="background-color:#FFA500;clear:both;text-align:center;"> Copyright © W3Schools.com</div> </div> </body> </html>
  • 44. HTML Layouts with <div> BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_layout.asp
  • 45. HTML Forms and Inputs BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_forms.asp ● <form> are used to pass data to a server. ● <input> is used to select user information. <form> First name: <input type="text" name="firstname"><br> Last name: <input type="text" name="lastname"> </form>
  • 46. HTML Forms and Inputs BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_forms.asp ● Text Field : <input type="text"> defines a one-line input field that a user can enter text into. name: <input type="text" name="name" > ● Password : <input type="password"> defines a password field Password: <input type="password" name="pwd">
  • 47. HTML Forms and Inputs BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_forms.asp ● Radio Button : <input type="radio"> that let a user select ONLY ONE of a limited number of choices. <input type="radio" name="sex" value="male" >Male<br> <input type="radio" name="sex" value=" female">Female ● Checkbox : <input type="password"> that let a user select ZERO or MORE options of a limited number of choices. <input type="checkbox" name="vehicle" value="Bike">I have a bike<br> <input type="checkbox" name="vehicle" value="Car">I have a car
  • 48. HTML Forms and Inputs BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_forms.asp ● Submit : <input type="submit"> is used to send form data to a server. <form name="input" action="html_form_action.asp" method="get"> Username: <input type="text" name="user"> <input type="submit" value="Submit"> </form>
  • 49. HTML Color Values BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_colors.asp ● HTML using a hexadecimal notation (HEX) for the combination of Red, Green, and Blue color values (RGB).
  • 50. HTML Color Values BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_colornames.asp ● 141 color names are defined in the HTML and CSS color specification (17 standard colors plus 124 more) ● The 17 standard colors are: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, orange, purple, red, silver, teal, white, and yellow.
  • 51. HTML Entities BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/tags/ref_entities.asp
  • 52. HTML Quick List BASIC HTML for Web Designer by Niciuzza, nicha.in.th Ref: http://www.w3schools.com/html/html_quick.asp
  • 53. Enjoy and May HTML be with You. BASIC HTML for Web Designer by Niciuzza, nicha.in.th