SlideShare a Scribd company logo
Web Programming
LEC # 4, 5, 6
2

Outlines



HTML



HTML Forms
3

HTML



What is HTML?


HTML is a language for describing web pages.



HTML stands for Hyper Text Markup Language



HTML is a markup language



A markup language is a set of markup tags



The tags describe document content



HTML documents contain HTML tags and plain text



HTML documents are also called web pages
4

HTML Tags



HTML markup tags are usually called HTML tags



HTML tags are keywords (tag names) surrounded by angle
brackets like <html>



HTML tags normally come in pairs like <b> and </b>



The first tag in a pair is the start tag, the second tag is the end
tag



The end tag is written like the start tag, with a forward
slash before the tag name



Start and end tags are also called opening tags and closing
tags
<tagname>content</tagname>
5

HTML Headings



<h1>This is heading 1 - 24 points</h1>



<h2>This is heading 2- 18 points </h2>



<h3>This is heading 3- 14 points </h3>



<h4>This is heading 4- 12 points </h4>



<h5>This is heading 5- 10 points </h5>



<h6>This is heading 6- 08 points</h6>
6

HTML <p> and <pre> tag

Tag

Purpose

<pre>

Defines preformatted text

<p>

Define paragraph

<p>This is some text in a paragraph.</p>
Align= left, right, center, justify
7

HTML Text Formatting

Tag

Purpose

<b> and <strong>

To Bold Text

<i> and <em>

To italic Text

<sup>

Defines subscripted text

<sup>

Defines superscripted text

<small>

Defines smaller text

<big>

Defines bigger text

<ins>

Defines inserted text

<del>

Defines deleted text

<mark>

Defines marked/highlighted text
8

HTML Comments



The comment tag is used to insert comments in the
source code. Comments are not displayed in the
browsers.



You can use comments to explain your code, which
can help you when you edit the source code at a
later date. This is especially useful if you have a lot of
code.



<!-- Comments here -->
9

HTML Images



In HTML, images are defined with the <img> tag.



The <img> tag is empty, which means that it contains attributes only ,
and has no closing tag.



To display an image on a page, you need to use the src attribute. Src
stands for "source". The value of the src attribute is the URL of the image
you want to display.



Syntax for defining an image:
<img src="url" alt="some_text">
10

HTML Images Cont.…


<img border="2" src="WTH.jpg" alt=" Road map " width="304"
height="228" title="Hello">
Attribute Purpose
1

Border

Define the border around the image

2

Src

Defines the path of image

3

Width

Defines the width of image

4

Height

Defines the height of image

5

Title

Defines the tool tip

6

Alt

Specifies extra information about an element

7

hspace

Specifies the whitespace on left and right side of an
image

8

Vspace

specifies the whitespace on top and bottom of an image
11

HTML Font



The <font> tag specifies the font face, font size, and
font color of text.
Attribute
Purpose
Color

Defines the color of text. Values can be defined
in the form of RGB code, name of color

Size

Size of the font

Face

Family of the font

<p> <font size="3" color="red" face="Times New Roman" >
This is some text!</font></p>
12

HTML Tables



Tables are defined with the <table> tag.



A table is divided into rows (with the <tr> tag), and
each row is divided into data cells (with the <td>
tag). td stands for "table data," and holds the
content of a data cell. A <td> tag can contain
text, links, images, lists, forms, other tables, etc.
13

HTML Tables Cont.…

Tag

Purpose

<table>

Defines a Table

<th>

Define Table Heading

<tr>

Defines table Row

<td>

Defines Table data

<caption>

Defines Caption of the Table
14

HTML Tables Cont.…
Attribute

Purpose

Align

To align the contents ( left, center, right)

Border

Create border

Cellpadding

create more white space between the cell
content and its borders.

Cellspacing

increase the distance between the cells.
15

HTML Lists



Type of Lists are


Ordered List ( <ol> )



Un- Ordered List ( <ul> )



Description List ( <dl> )

Ordered list uses the numbers
Unordered list uses the Built
A description list is a list of terms/names, with a description of each
term/name.
16

HTML Ordered List



An ordered list starts with the <ol> tag. Each list item
starts with the <li> tag.



The list items are marked with numbers.

<ol>
<li> CPU</li>

<li> RAM </li>
<li> USB </li>
<li> Laptop </li>

</ol>
17

HTML Ordered List Cont.…



By Default its numbered list. If we want to changes
its default type of list we can do it via Type attribute:

<ol type= "A">
<li> CPU</li>
<li> RAM </li>

<li> USB </li>
<li> Laptop </li>

</ol>
18

HTML Un Ordered List



An unordered list starts with the <ul> tag. Each list
item starts with the <li> tag.



It have three types


Disc



Circle



Square

By default un-ordered list is Disc type
19

HTML Description Lists



A description list is a list of terms/names, with a
description of each term/name.



The <dl> tag defines a description list.



The <dl> tag is used in conjunction with


<dt> (defines terms/names)



<dd> (describes each term/name):
20

Description Lists Example



<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>

<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
21

HTML Hyperlinks (Links)



The HTML <a> tag defines a hyperlink.



A hyperlink (or link) is a word, group of words, or image that you can
click on to jump to another document.



When you move the cursor over a link in a Web page, the arrow will
turn into a little hand.



The most important attribute of the <a> element is the href attribute,
which indicates the link's destination.



By default, links will appear as follows in all browsers:


An unvisited link is underlined and blue



A visited link is underlined and purple



An active link is underlined and red
HTML Links - The id / name
Attribute


The id attribute can be used to create a bookmark
inside an HTML document.



Tip: Bookmarks are not displayed in any special way.
They are invisible to the reader.



An anchor with an id inside an HTML document:
<a id="tips">Useful Tips Section</a>



Create a link to the "Useful Tips Section" inside the
same document:



<a href="#tips">Visit the Useful Tips Section</a>

22
HTML Links - The id / name
Attribute

23



Or, create a link to the "Useful Tips Section" from
another page:



<a href="html_links.htm#tips">
Visit the Useful Tips Section</a>
24

HTML Link



Opens specified link on another window.



<a href="http://www.w3schools.com"
target="_blank">

Visit W3Schools.com! </a>
25

Image as Link
<a href="default.asp">
<img src=“image.gif" alt="HTML tutorial" width="42"
height="42">
</a>
26

HTML Iframes ( inline Frames)



An iframe is used to display a web page within a web page.

Syntax for adding an iframe:
<iframe src="URL"></iframe>


Iframe - Set Height and Width



The height and width attributes are used to specify the height
and width of the iframe.



The attribute values are specified in pixels by default, but they
can also be in percent (like "80%").
27

HTML Iframes



<iframe src="demo_iframe.htm" width="200"
height="200“></iframe>



Iframe - Remove the Border

<iframe src="demo_iframe.htm"
frameborder="0"></iframe>
28

Use iframe as a Target for a Link



<iframe src="demo_iframe.htm“
name="iframe_a">



</iframe>
<p>
<a href=http://www.w3schools.com
target="iframe_a">W3Schools.com</a>
</p>
29

HTML <frameset> Tag



The <frameset> tag defines a frameset.



The <frameset> element holds one or more <frame> elements.
Each <frame> element can hold a separate document.



The <frameset> element specifies HOW MANY columns or rows
there will be in the frameset, and HOW MUCH percentage/pixels
of space will occupy each of them.
30

HTML <frameset> Tag



The <frameset> tag defines a frameset.



The <frameset> element holds one or more <frame> elements.
Each <frame> element can hold a separate document.



The <frameset> element specifies HOW MANY columns or rows
there will be in the frameset, and HOW MUCH percentage/pixels
of space will occupy each of them.

Attribute

Purpose

Rows

Specifies the number and size of columns in a frameset
(%, pixels, *)

Cols

Specifies the number and size of rows in a frameset
(%, pixels, *)
31

Example of Frameset
<frameset rows="25%,*,25%">

<frameset cols="25%,*,25%">

<frame src="headings.html">

<frame src="headings.html">

<frame src="Tables.html">

<frame src="Tables.html">

<frame src="textFormating.html"> <frame src="textFormating.html">
</frameset>

</frameset>
32

Block and inline Elements



Most HTML elements are defined as


block level elements



inline elements.



Block level elements normally start (and end)
with a new line when displayed in a browser.



Examples: <h1>, <p>, <ul>, <table>, <div>
33

HTML Inline Elements



Inline elements are normally displayed
without starting a new line.



Examples: <b>, <td>, <a>, <img>, <span>
34

The HTML <div> Element



The HTML <div> element is a block level element that can be
used as a container for grouping other HTML elements.



The <div> element has no special meaning. Except
that, because it is a block level element, the browser will display
a line break before and after it.



When used together with CSS, the <div> element can be used to
set style attributes to large blocks of content.



Another common use of the <div> element, is for document
layout. It replaces the "old way" of defining layout using tables.
Using <table> elements for layout is not the correct use of
<table>. The purpose of the <table> element is to display tabular
data.
35

The HTML <div> Element Cont.…



The <div> tag defines a division or a section in an HTML document.



The <div> tag is used to group block-elements to format them with
CSS.



Tip: The <div> element is very often used together with CSS, to
layout a web page.



Note: By default, browsers always place a line break before and
after the <div> element. However, this can be changed with CSS.
36

The HTML <span> Element



The HTML <span> element is an inline element that can be used as
a container for text.



The <span> element has no special meaning.



When used together with CSS, the <span> element can be used
to set style attributes to parts of the text.
37

HTML Layouts



Web page layout is very important to make your website
look good.



Design your webpage layout very carefully.
38

HTML Forms


HTML Forms are used to select different kinds of user
input.



HTML forms are used to pass data to a server.



An HTML form can contain input elements like text
fields, checkboxes, radio-buttons, submit buttons and
more. A form can also contain select
lists, textarea, fieldset, legend, and label elements.



The <form> tag is used to create an HTML form:



<form>
.
input elements
.
</form>
39

HTML Forms - The Input Element



The <input> element is used to select user
information.



An <input> element can vary in many
ways, depending on the type attribute. An <input>
element can be of type text
field, checkbox, password, radio button, submit
button, and more.
40

Text Fields




<input type="text"> defines a one-line input field that a user can enter
text into:

<form>
First name: <input type="text"
name="firstname"> <br>
Last name: <input type="text"
name="lastname">
</form>
41

Password Field



<input type="password"> defines a password field:



<form>

Password: <input
type="password" name="pwd">
</form>

Note: The characters in a password field are masked
(shown as asterisks or circles).
42

Radio Buttons


<input type="radio"> defines a radio button. Radio buttons let a user
select ONLY ONE of a limited number of choices:

<form>
<input type="radio" name=“choice"
value=“yes“ checked=“checked”>Yes
<br>
<input type="radio" name=“choice"
value=“no">No
</form>


Checked attributed defines that control is preselected when page
load.
43

Checkboxes



<input type="checkbox"> defines a checkbox.
Checkboxes let a user select ZERO or MORE options
of a limited number of choices.



<form>
<input type="checkbox" name="vehicle"
value="Bike">I have a bike<br>
<input type="checkbox" name="vehicle"
value="Car">I have a car
</form>
44

Submit Button



<input type="submit"> defines a submit button.



A submit button is used to send form data to a
server. The data is sent to the page specified in the
form's action attribute. The file defined in the action
attribute usually does something with the received
input:



<form name="input" action="html_form_action.php"
method="get">
Username: <input type="text" name="user">
<input type="submit" value="Submit">
</form>
45

Reset Button



Button used to clear all the field of form in which
reset button defined.



<input type=“reset" value=“Clear">
46

HTML <button> Tag



The <button> tag defines a clickable button.



Inside a <button> element you can put content, like
text or images. This is the difference between this
element and buttons created with the <input>
element.



Tip: Always specify the type attribute for a <button>
element. Different browsers use different default
types for the <button> element.
47

HTML <textarea> Tag



The <textarea> tag defines a multi-line text input
control.



A text area can hold an unlimited number of
characters, and the text renders in a fixed-width
font (usually Courier).



The size of a text area can be specified by the cols
and rows attributes, or even better; through CSS'
height and width properties.
48

HTML <textarea> Tag

Attribute

Purpose

Name

Specifies a name for a text area

Cols

Specifies the visible width of a text area

Rows

Specifies the visible number of lines in a text area

Disabled

Specifies that a text area should be disabled
49

HTML <select> Tag



The <select> element is used to create a drop-down
list.



The <option> tags inside the <select> element
define the available options in the list.



Tips and Notes



Tip: The <select> element is a form control and can
be used in a form to collect user input.
50

HTML <select> Tag



<select multiple size=“2”>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>



Note: Multiple shows that you can select more than one item from the drop
down menu.



Size shows number of visible items in a list.
51

References



http://www.w3schools.com/html/default.asp

More Related Content

What's hot

Html Slide Part-1
Html Slide Part-1Html Slide Part-1
Html Slide Part-1
AAKASH KUMAR
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
Mario Hernandez
 
Html basics
Html basicsHtml basics
Html basics
mcatahir947
 
Html
HtmlHtml
Html ppt
Html pptHtml ppt
Html ppt
Iblesoft
 
Understanding THML
Understanding THMLUnderstanding THML
Understanding THML
Hinopak Motors Limited
 
HTML
HTMLHTML
Html Ppt
Html PptHtml Ppt
Html Ppt
Hema Prasanth
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 
Html project
Html projectHtml project
Html project
arsh7511
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
Dave Kelly
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
c525600
 
Html basics
Html basicsHtml basics
Html basics
Vjay Vijju
 
Html, CSS & Web Designing
Html, CSS & Web DesigningHtml, CSS & Web Designing
Html, CSS & Web Designing
Leslie Steele
 
Html ppt
Html pptHtml ppt
Html ppt
santosh lamba
 
Basic-CSS-tutorial
Basic-CSS-tutorialBasic-CSS-tutorial
Basic-CSS-tutorial
tutorialsruby
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
Sayan De
 
HTML
HTMLHTML
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
eShikshak
 
CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout
Rachel Andrew
 

What's hot (20)

Html Slide Part-1
Html Slide Part-1Html Slide Part-1
Html Slide Part-1
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Html basics
Html basicsHtml basics
Html basics
 
Html
HtmlHtml
Html
 
Html ppt
Html pptHtml ppt
Html ppt
 
Understanding THML
Understanding THMLUnderstanding THML
Understanding THML
 
HTML
HTMLHTML
HTML
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Html project
Html projectHtml project
Html project
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Html basics
Html basicsHtml basics
Html basics
 
Html, CSS & Web Designing
Html, CSS & Web DesigningHtml, CSS & Web Designing
Html, CSS & Web Designing
 
Html ppt
Html pptHtml ppt
Html ppt
 
Basic-CSS-tutorial
Basic-CSS-tutorialBasic-CSS-tutorial
Basic-CSS-tutorial
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
HTML
HTMLHTML
HTML
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout CSS Day: CSS Grid Layout
CSS Day: CSS Grid Layout
 

Similar to Html

INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdf
DineshKumar522328
 
Html
HtmlHtml
Html presentation
Html presentationHtml presentation
Html presentation
Prashanthi Mamidisetty
 
Introduction to Html
Introduction to HtmlIntroduction to Html
Introduction to Html
Folasade Adedeji
 
Html tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.comHtml tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.com
ShwetaAggarwal56
 
HTML_HEADER PART TAGS .pptx
HTML_HEADER              PART TAGS .pptxHTML_HEADER              PART TAGS .pptx
HTML_HEADER PART TAGS .pptx
HARIPRIYAV25
 
Html
HtmlHtml
Final by smit parekh
Final  by smit  parekhFinal  by smit  parekh
Final by smit parekh
SMIT PAREKH
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratch
Ahmad Al-ammar
 
Intodcution to Html
Intodcution to HtmlIntodcution to Html
Intodcution to Html
Taha Malampatti
 
Html
HtmlHtml
Html starting
Html startingHtml starting
Html starting
Rahul Dihora
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
DaniyalSardar
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
BagHarki
 
Web Development 3 (HTML & CSS)
Web Development 3  (HTML & CSS)Web Development 3  (HTML & CSS)
Web Development 3 (HTML & CSS)
ghayour abbas
 
Chapter 2 Final.pptx
Chapter 2 Final.pptxChapter 2 Final.pptx
Chapter 2 Final.pptx
getnet51
 
HTML.pdf
HTML.pdfHTML.pdf
HTML 5 Topic 2
HTML 5 Topic 2HTML 5 Topic 2
HTML 5 Topic 2
Juvywen
 
HTML - part 1
HTML - part 1HTML - part 1
HTML - part 1
Fahad Masood
 
HTML 4.0
HTML 4.0HTML 4.0

Similar to Html (20)

INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdf
 
Html
HtmlHtml
Html
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Introduction to Html
Introduction to HtmlIntroduction to Html
Introduction to Html
 
Html tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.comHtml tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.com
 
HTML_HEADER PART TAGS .pptx
HTML_HEADER              PART TAGS .pptxHTML_HEADER              PART TAGS .pptx
HTML_HEADER PART TAGS .pptx
 
Html
HtmlHtml
Html
 
Final by smit parekh
Final  by smit  parekhFinal  by smit  parekh
Final by smit parekh
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratch
 
Intodcution to Html
Intodcution to HtmlIntodcution to Html
Intodcution to Html
 
Html
HtmlHtml
Html
 
Html starting
Html startingHtml starting
Html starting
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
Web Development 3 (HTML & CSS)
Web Development 3  (HTML & CSS)Web Development 3  (HTML & CSS)
Web Development 3 (HTML & CSS)
 
Chapter 2 Final.pptx
Chapter 2 Final.pptxChapter 2 Final.pptx
Chapter 2 Final.pptx
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
HTML 5 Topic 2
HTML 5 Topic 2HTML 5 Topic 2
HTML 5 Topic 2
 
HTML - part 1
HTML - part 1HTML - part 1
HTML - part 1
 
HTML 4.0
HTML 4.0HTML 4.0
HTML 4.0
 

More from Nisa Soomro

PHP Cookies and Sessions
PHP Cookies and SessionsPHP Cookies and Sessions
PHP Cookies and Sessions
Nisa Soomro
 
Form Handling using PHP
Form Handling using PHPForm Handling using PHP
Form Handling using PHP
Nisa Soomro
 
Connecting to my sql using PHP
Connecting to my sql using PHPConnecting to my sql using PHP
Connecting to my sql using PHP
Nisa Soomro
 
Basic of PHP
Basic of PHPBasic of PHP
Basic of PHP
Nisa Soomro
 
PHP Filing
PHP Filing PHP Filing
PHP Filing
Nisa Soomro
 
Html5
Html5Html5
HTML Basic Tags
HTML Basic Tags HTML Basic Tags
HTML Basic Tags
Nisa Soomro
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
Nisa Soomro
 
HTML Frameset & Inline Frame
HTML Frameset & Inline FrameHTML Frameset & Inline Frame
HTML Frameset & Inline Frame
Nisa Soomro
 
HTML Images
HTML Images HTML Images
HTML Images
Nisa Soomro
 
HTML Lists & Llinks
HTML Lists & LlinksHTML Lists & Llinks
HTML Lists & Llinks
Nisa Soomro
 
HTML Tables
HTML TablesHTML Tables
HTML Tables
Nisa Soomro
 
Html5 SVG
Html5 SVGHtml5 SVG
Html5 SVG
Nisa Soomro
 
Html5 Canvas Detail
Html5 Canvas DetailHtml5 Canvas Detail
Html5 Canvas Detail
Nisa Soomro
 
Html5 canvas
Html5 canvasHtml5 canvas
Html5 canvas
Nisa Soomro
 
Html5
Html5Html5
Web programming lec#3
Web programming lec#3Web programming lec#3
Web programming lec#3
Nisa Soomro
 

More from Nisa Soomro (17)

PHP Cookies and Sessions
PHP Cookies and SessionsPHP Cookies and Sessions
PHP Cookies and Sessions
 
Form Handling using PHP
Form Handling using PHPForm Handling using PHP
Form Handling using PHP
 
Connecting to my sql using PHP
Connecting to my sql using PHPConnecting to my sql using PHP
Connecting to my sql using PHP
 
Basic of PHP
Basic of PHPBasic of PHP
Basic of PHP
 
PHP Filing
PHP Filing PHP Filing
PHP Filing
 
Html5
Html5Html5
Html5
 
HTML Basic Tags
HTML Basic Tags HTML Basic Tags
HTML Basic Tags
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
HTML Frameset & Inline Frame
HTML Frameset & Inline FrameHTML Frameset & Inline Frame
HTML Frameset & Inline Frame
 
HTML Images
HTML Images HTML Images
HTML Images
 
HTML Lists & Llinks
HTML Lists & LlinksHTML Lists & Llinks
HTML Lists & Llinks
 
HTML Tables
HTML TablesHTML Tables
HTML Tables
 
Html5 SVG
Html5 SVGHtml5 SVG
Html5 SVG
 
Html5 Canvas Detail
Html5 Canvas DetailHtml5 Canvas Detail
Html5 Canvas Detail
 
Html5 canvas
Html5 canvasHtml5 canvas
Html5 canvas
 
Html5
Html5Html5
Html5
 
Web programming lec#3
Web programming lec#3Web programming lec#3
Web programming lec#3
 

Recently uploaded

“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
TIPNGVN2
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
Pixlogix Infotech
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 

Recently uploaded (20)

“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 

Html

  • 3. 3 HTML  What is HTML?  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is a markup language  A markup language is a set of markup tags  The tags describe document content  HTML documents contain HTML tags and plain text  HTML documents are also called web pages
  • 4. 4 HTML Tags  HTML markup tags are usually called HTML tags  HTML tags are keywords (tag names) surrounded by angle brackets like <html>  HTML tags normally come in pairs like <b> and </b>  The first tag in a pair is the start tag, the second tag is the end tag  The end tag is written like the start tag, with a forward slash before the tag name  Start and end tags are also called opening tags and closing tags <tagname>content</tagname>
  • 5. 5 HTML Headings  <h1>This is heading 1 - 24 points</h1>  <h2>This is heading 2- 18 points </h2>  <h3>This is heading 3- 14 points </h3>  <h4>This is heading 4- 12 points </h4>  <h5>This is heading 5- 10 points </h5>  <h6>This is heading 6- 08 points</h6>
  • 6. 6 HTML <p> and <pre> tag Tag Purpose <pre> Defines preformatted text <p> Define paragraph <p>This is some text in a paragraph.</p> Align= left, right, center, justify
  • 7. 7 HTML Text Formatting Tag Purpose <b> and <strong> To Bold Text <i> and <em> To italic Text <sup> Defines subscripted text <sup> Defines superscripted text <small> Defines smaller text <big> Defines bigger text <ins> Defines inserted text <del> Defines deleted text <mark> Defines marked/highlighted text
  • 8. 8 HTML Comments  The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers.  You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code.  <!-- Comments here -->
  • 9. 9 HTML Images  In HTML, images are defined with the <img> tag.  The <img> tag is empty, which means that it contains attributes only , and has no closing tag.  To display an image on a page, you need to use the src attribute. Src stands for "source". The value of the src attribute is the URL of the image you want to display.  Syntax for defining an image: <img src="url" alt="some_text">
  • 10. 10 HTML Images Cont.…  <img border="2" src="WTH.jpg" alt=" Road map " width="304" height="228" title="Hello"> Attribute Purpose 1 Border Define the border around the image 2 Src Defines the path of image 3 Width Defines the width of image 4 Height Defines the height of image 5 Title Defines the tool tip 6 Alt Specifies extra information about an element 7 hspace Specifies the whitespace on left and right side of an image 8 Vspace specifies the whitespace on top and bottom of an image
  • 11. 11 HTML Font  The <font> tag specifies the font face, font size, and font color of text. Attribute Purpose Color Defines the color of text. Values can be defined in the form of RGB code, name of color Size Size of the font Face Family of the font <p> <font size="3" color="red" face="Times New Roman" > This is some text!</font></p>
  • 12. 12 HTML Tables  Tables are defined with the <table> tag.  A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag). td stands for "table data," and holds the content of a data cell. A <td> tag can contain text, links, images, lists, forms, other tables, etc.
  • 13. 13 HTML Tables Cont.… Tag Purpose <table> Defines a Table <th> Define Table Heading <tr> Defines table Row <td> Defines Table data <caption> Defines Caption of the Table
  • 14. 14 HTML Tables Cont.… Attribute Purpose Align To align the contents ( left, center, right) Border Create border Cellpadding create more white space between the cell content and its borders. Cellspacing increase the distance between the cells.
  • 15. 15 HTML Lists  Type of Lists are  Ordered List ( <ol> )  Un- Ordered List ( <ul> )  Description List ( <dl> ) Ordered list uses the numbers Unordered list uses the Built A description list is a list of terms/names, with a description of each term/name.
  • 16. 16 HTML Ordered List  An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.  The list items are marked with numbers. <ol> <li> CPU</li> <li> RAM </li> <li> USB </li> <li> Laptop </li> </ol>
  • 17. 17 HTML Ordered List Cont.…  By Default its numbered list. If we want to changes its default type of list we can do it via Type attribute: <ol type= "A"> <li> CPU</li> <li> RAM </li> <li> USB </li> <li> Laptop </li> </ol>
  • 18. 18 HTML Un Ordered List  An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.  It have three types  Disc  Circle  Square By default un-ordered list is Disc type
  • 19. 19 HTML Description Lists  A description list is a list of terms/names, with a description of each term/name.  The <dl> tag defines a description list.  The <dl> tag is used in conjunction with  <dt> (defines terms/names)  <dd> (describes each term/name):
  • 20. 20 Description Lists Example  <dl> <dt>Coffee</dt> <dd>- black hot drink</dd> <dt>Milk</dt> <dd>- white cold drink</dd> </dl>
  • 21. 21 HTML Hyperlinks (Links)  The HTML <a> tag defines a hyperlink.  A hyperlink (or link) is a word, group of words, or image that you can click on to jump to another document.  When you move the cursor over a link in a Web page, the arrow will turn into a little hand.  The most important attribute of the <a> element is the href attribute, which indicates the link's destination.  By default, links will appear as follows in all browsers:  An unvisited link is underlined and blue  A visited link is underlined and purple  An active link is underlined and red
  • 22. HTML Links - The id / name Attribute  The id attribute can be used to create a bookmark inside an HTML document.  Tip: Bookmarks are not displayed in any special way. They are invisible to the reader.  An anchor with an id inside an HTML document: <a id="tips">Useful Tips Section</a>  Create a link to the "Useful Tips Section" inside the same document:  <a href="#tips">Visit the Useful Tips Section</a> 22
  • 23. HTML Links - The id / name Attribute 23  Or, create a link to the "Useful Tips Section" from another page:  <a href="html_links.htm#tips"> Visit the Useful Tips Section</a>
  • 24. 24 HTML Link  Opens specified link on another window.  <a href="http://www.w3schools.com" target="_blank"> Visit W3Schools.com! </a>
  • 25. 25 Image as Link <a href="default.asp"> <img src=“image.gif" alt="HTML tutorial" width="42" height="42"> </a>
  • 26. 26 HTML Iframes ( inline Frames)  An iframe is used to display a web page within a web page. Syntax for adding an iframe: <iframe src="URL"></iframe>  Iframe - Set Height and Width  The height and width attributes are used to specify the height and width of the iframe.  The attribute values are specified in pixels by default, but they can also be in percent (like "80%").
  • 27. 27 HTML Iframes  <iframe src="demo_iframe.htm" width="200" height="200“></iframe>  Iframe - Remove the Border <iframe src="demo_iframe.htm" frameborder="0"></iframe>
  • 28. 28 Use iframe as a Target for a Link  <iframe src="demo_iframe.htm“ name="iframe_a">  </iframe> <p> <a href=http://www.w3schools.com target="iframe_a">W3Schools.com</a> </p>
  • 29. 29 HTML <frameset> Tag  The <frameset> tag defines a frameset.  The <frameset> element holds one or more <frame> elements. Each <frame> element can hold a separate document.  The <frameset> element specifies HOW MANY columns or rows there will be in the frameset, and HOW MUCH percentage/pixels of space will occupy each of them.
  • 30. 30 HTML <frameset> Tag  The <frameset> tag defines a frameset.  The <frameset> element holds one or more <frame> elements. Each <frame> element can hold a separate document.  The <frameset> element specifies HOW MANY columns or rows there will be in the frameset, and HOW MUCH percentage/pixels of space will occupy each of them. Attribute Purpose Rows Specifies the number and size of columns in a frameset (%, pixels, *) Cols Specifies the number and size of rows in a frameset (%, pixels, *)
  • 31. 31 Example of Frameset <frameset rows="25%,*,25%"> <frameset cols="25%,*,25%"> <frame src="headings.html"> <frame src="headings.html"> <frame src="Tables.html"> <frame src="Tables.html"> <frame src="textFormating.html"> <frame src="textFormating.html"> </frameset> </frameset>
  • 32. 32 Block and inline Elements  Most HTML elements are defined as  block level elements  inline elements.  Block level elements normally start (and end) with a new line when displayed in a browser.  Examples: <h1>, <p>, <ul>, <table>, <div>
  • 33. 33 HTML Inline Elements  Inline elements are normally displayed without starting a new line.  Examples: <b>, <td>, <a>, <img>, <span>
  • 34. 34 The HTML <div> Element  The HTML <div> element is a block level element that can be used as a container for grouping other HTML elements.  The <div> element has no special meaning. Except that, because it is a block level element, the browser will display a line break before and after it.  When used together with CSS, the <div> element can be used to set style attributes to large blocks of content.  Another common use of the <div> element, is for document layout. It replaces the "old way" of defining layout using tables. Using <table> elements for layout is not the correct use of <table>. The purpose of the <table> element is to display tabular data.
  • 35. 35 The HTML <div> Element Cont.…  The <div> tag defines a division or a section in an HTML document.  The <div> tag is used to group block-elements to format them with CSS.  Tip: The <div> element is very often used together with CSS, to layout a web page.  Note: By default, browsers always place a line break before and after the <div> element. However, this can be changed with CSS.
  • 36. 36 The HTML <span> Element  The HTML <span> element is an inline element that can be used as a container for text.  The <span> element has no special meaning.  When used together with CSS, the <span> element can be used to set style attributes to parts of the text.
  • 37. 37 HTML Layouts  Web page layout is very important to make your website look good.  Design your webpage layout very carefully.
  • 38. 38 HTML Forms  HTML Forms are used to select different kinds of user input.  HTML forms are used to pass data to a server.  An HTML form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label elements.  The <form> tag is used to create an HTML form:  <form> . input elements . </form>
  • 39. 39 HTML Forms - The Input Element  The <input> element is used to select user information.  An <input> element can vary in many ways, depending on the type attribute. An <input> element can be of type text field, checkbox, password, radio button, submit button, and more.
  • 40. 40 Text Fields   <input type="text"> defines a one-line input field that a user can enter text into: <form> First name: <input type="text" name="firstname"> <br> Last name: <input type="text" name="lastname"> </form>
  • 41. 41 Password Field  <input type="password"> defines a password field:  <form> Password: <input type="password" name="pwd"> </form> Note: The characters in a password field are masked (shown as asterisks or circles).
  • 42. 42 Radio Buttons  <input type="radio"> defines a radio button. Radio buttons let a user select ONLY ONE of a limited number of choices: <form> <input type="radio" name=“choice" value=“yes“ checked=“checked”>Yes <br> <input type="radio" name=“choice" value=“no">No </form>  Checked attributed defines that control is preselected when page load.
  • 43. 43 Checkboxes  <input type="checkbox"> defines a checkbox. Checkboxes let a user select ZERO or MORE options of a limited number of choices.  <form> <input type="checkbox" name="vehicle" value="Bike">I have a bike<br> <input type="checkbox" name="vehicle" value="Car">I have a car </form>
  • 44. 44 Submit Button  <input type="submit"> defines a submit button.  A submit button is used to send form data to a server. The data is sent to the page specified in the form's action attribute. The file defined in the action attribute usually does something with the received input:  <form name="input" action="html_form_action.php" method="get"> Username: <input type="text" name="user"> <input type="submit" value="Submit"> </form>
  • 45. 45 Reset Button  Button used to clear all the field of form in which reset button defined.  <input type=“reset" value=“Clear">
  • 46. 46 HTML <button> Tag  The <button> tag defines a clickable button.  Inside a <button> element you can put content, like text or images. This is the difference between this element and buttons created with the <input> element.  Tip: Always specify the type attribute for a <button> element. Different browsers use different default types for the <button> element.
  • 47. 47 HTML <textarea> Tag  The <textarea> tag defines a multi-line text input control.  A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).  The size of a text area can be specified by the cols and rows attributes, or even better; through CSS' height and width properties.
  • 48. 48 HTML <textarea> Tag Attribute Purpose Name Specifies a name for a text area Cols Specifies the visible width of a text area Rows Specifies the visible number of lines in a text area Disabled Specifies that a text area should be disabled
  • 49. 49 HTML <select> Tag  The <select> element is used to create a drop-down list.  The <option> tags inside the <select> element define the available options in the list.  Tips and Notes  Tip: The <select> element is a form control and can be used in a form to collect user input.
  • 50. 50 HTML <select> Tag  <select multiple size=“2”> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select>  Note: Multiple shows that you can select more than one item from the drop down menu.  Size shows number of visible items in a list.