Professional Documents
Culture Documents
DEVELOPMENT
BASIC
WEB DEVELOPMENT - BASIC
1st Session 3rd Session
History, Requirements, Understanding Web Server HTML Coding continuation
EXAM
2nd Session
HTML Basics, Definitions and Coding 4th Session
HTML in Action, Uploading files in Web Server,
Complete Simple Live Web Page
HTML IN-DEPTH - CASE STUDY
CASE STUDY #6 – Change the Link Text to Buttons
MENU Links
1. Open page page4.html & page3.html & page2.html & page1.html
2. Remove Menu
1. PAGE 1 and link to page1.html
2. PAGE 2 and link to page2.html
3. PAGE 3 and link to page3.html
4. PAGE 4 and link to page4.html
3. Create a Button with following label:
1. PAGE 1 and link to page1.html
2. PAGE 2 and link to page2.html
3. PAGE 3 and link to page3.html
4. PAGE 4 and link to page4.html
4. Then save accordingly
LET’S MAKE WEBSITE!
HTML Page Structure
HTML - BASIC
EXAMPLE
<!DOCTYPE html>
<html>
<body>
</body>
</html>
HTML - BASIC
HTML Headings HTML HTML LINKS HTML IMAGES HTML HTML LISTS
HTML headings are defined BUTTONS HTML LISTS ARE DEFINED
with the <h1> to <h6> tags. PARAGRAPHS HTML LINKS ARE HTML IMAGES ARE
WITH THE <UL>
HTML DEFINED WITH DEFINED WITH THE <IMG> HTML
(UNORDERED/BULLET LIST)
<h1> defines the most PARAGRAPHS ARE THE <A> TAG: TAG. BUTTONS ARE OR THE <OL>
important heading. <h6> DEFINED WITH
defines the least important DEFINED WITH (ORDERED/NUMBERED
heading: THE <P> TAG: EXAMPLE THE SOURCE FILE (SRC), THE LIST) TAG, FOLLOWED BY
<BUTTON> <LI> TAGS (LIST ITEMS):
<A ALTERNATIVE TEXT (ALT),
Example HREF="HTTPS://WWW.KM3
<h1>This is heading 1</h1> EXAMPLE WIDTH, AND HEIGHT ARE TAG:
3.COM">THIS IS A EXAMPLE (UNORDERED)
<h2>This is heading 2</h2> <P>THIS IS A LINK</A> PROVIDED AS ATTRIBUTES:
<h3>This is heading 3</h3> <UL>
PARAGRAPH.</P> EXAMPLE <LI>KUTCH</LI>
<P>THIS IS ANOTHER <BUTTON>CLICK <LI>NEPH</LI>
PARAGRAPH.</P> EXAMPLE
ME</BUTTON> <LI>AMIE</LI>
<IMG SRC=”IMAGE.JPG"
ALT=”KM33.COM" WIDTH="104"
</UL>
HEIGHT="142">
HTML - BASIC
HTML Lists Example (ordered)
HTML lists are defined with the <ul> <ol>
(unordered/bullet list) or the <ol> <li>Kutch</li>
(ordered/numbered list) tag, followed <li>Neph</li>
<li>Amie</li>
by <li> tags (list items): </ol>
Example (unordered) Example (ordered and start with number 3)
<ul> <ol start=3>
<li>Kutch</li> <li>Kutch</li>
<li>Neph</li> <li>Neph</li>
<li>Amie</li> <li>Amie</li>
</ol>
</ul>
HTML IN-DEPTH - ATTRIBUTES
HTML Attributes
href Attribute
HTML Styles
HTML IN-DEPTH - HEADINGS
HTML Headings
Headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important heading.
Example
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
CASE STUDY
HTML IN-DEPTH - HEADINGS
Headings Are Important
Search engines use the headings to index the structure and content of your web pages.
<h1> headings should be used for main headings, followed by <h2> headings, then the less important
<h3>, and so on.
Note: Use HTML headings for headings only. Don't use headings to make text BIG or bold.
Bigger Headings
Each HTML heading has a default size. However, you can specify the size for any heading with the style
attribute, using the CSS font-size property:
Example
<h1 style="font-size:60px;">Heading 1</h1>
HTML IN-DEPTH - HEADINGS
HTML Horizontal Rules
The <hr> tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule.
The <hr> element is used to separate content (or define a change) in an HTML page:
Example
<h1>This is heading 1</h1>
<p>This is some text.</p>
<hr>
<h2>This is heading 2</h2>
<p>This is some other text.</p>
<hr>
HTML IN-DEPTH - HEADINGS
HTML Paragraphs
The HTML <p> element defines a paragraph:
Example
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
HTML IN-DEPTH - HEADINGS
HTML Display
You cannot be sure how HTML
will be displayed.
Use <br> if you want a line break (a new line) without starting a new paragraph:
Example
<p>This is<br>a paragraph<br>with line breaks.</p>
CASE STUDY
HTML IN-DEPTH - HEADINGS
The HTML <pre> Element
The HTML <pre> element defines preformatted text.
The text inside a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both
spaces and line breaks:
Example
<pre>
My Bonnie lies over the ocean.
<tagname style="property:value;">
HTML IN-DEPTH - STYLES
HTML Background Color
The background-color property defines the background color for an HTML element.
Example
<body style="background-color:powderblue;">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
HTML IN-DEPTH - STYLES
HTML Text Color
The color property defines the text color for an HTML element:
Example
<h1 style="color:blue;">This is a heading</h1>
<p style="color:red;">This is a paragraph.</p>
HTML Fonts
The font-family property defines the font to be used for an HTML element:
Example
<h1 style="font-family:verdana;">This is a heading</h1>
<p style="font-family:courier;">This is a paragraph.</p>
CASE STUDY
HTML IN-DEPTH - STYLES
HTML Text Size
The font-size property defines the text size for an HTML element:
Example
<h1 style="font-size:300%;">This is a heading</h1>
<p style="font-size:50px;">This is a paragraph.</p>
Example
<h1 style="text-align:center;">Centered Heading</h1>
<p style="text-align:center;">Centered paragraph.</p>
CASE STUDY
HTML IN-DEPTH - STYLES
Tag Description
Tag Description
HTML <b> and <strong> Elements
The HTML <b> element defines bold text, without any extra importance. <b> Defines bold text
Tag Description
HTML <i> and <em> Elements
<b> Defines bold text
Tag Description
HTML <small> Element
The HTML <small> element defines smaller text: <b> Defines bold text
The HTML <mark> element defines marked or highlighted text: <ins> Defines inserted text
Tag Description
HTML <del> Element
The HTML <del> element defines deleted (removed) text. <b> Defines bold text
The HTML <ins> element defines inserted (added) text. <ins> Defines inserted text
Tag Description
HTML <sub> Element
The HTML <sub> element defines subscripted text. <b> Defines bold text
The HTML <sup> element defines superscripted text. <ins> Defines inserted text
https://en.wikipedia.org/wiki/Web_colors
HTML IN-DEPTH - COLORS
Background Color
You can set the background color for HTML elements:
Example
<h1 style="background-color:DodgerBlue;">Hello World</h1>
<p style="background-color:Tomato;">Lorem ipsum...</p>
https://en.wikipedia.org/wiki/Web_colors
HTML IN-DEPTH - COLORS
Text Color
You can set the color of text:
Example
<h1 style="color:Tomato;">Hello World</h1>
<p style="color:DodgerBlue;">Lorem ipsum...</p>
<p style="color:MediumSeaGreen;">Ut wisi enim...</p>
https://en.wikipedia.org/wiki/Web_colors
HTML IN-DEPTH - COLORS
Border Color
You can set the color of borders:
Example
<h1 style="border:2px solid Tomato;">Hello World</h1>
<h1 style="border:2px solid DodgerBlue;">Hello World</h1>
<h1 style="border:2px solid Violet;">Hello World</h1>
https://en.wikipedia.org/wiki/Web_colors
HTML IN-DEPTH - COLORS
Color Values
In HTML, colors can also be specified using RGB values, HEX values, HSL values, RGBA values, and
HSLA values:
Example
<h1 style="background-color:rgb(255, 99, 71);">...</h1>
<h1 style="background-color:#ff6347;">...</h1>
<h1 style="background-color:hsl(9, 100%, 64%);">...</h1>
https://en.wikipedia.org/wiki/Web_colors
<h1 style="background-color:rgba(255, 99, 71, 0.5);">...</h1>
<h1 style="background-color:hsla(9, 100%, 64%, 0.5);">...</h1>
HTML IN-DEPTH –COMBINE STYLES
HTML IN-DEPTH – CASE STUDY
CASE STUDY #7 (Headings) Output
Mark up the following text with appropriate tags:
"Universal Studios Presents" is the most important content.
"Jurassic Park" is the next most important content.
"About" is of lesser importance than Jurassic Park.
The last sentence is just a paragraph.
HTML to fix
Headings
HTML IN-DEPTH – CASE STUDY
CASE STUDY #8 (Paragraphs)
Fix the display of the text below. Display the text over 4 lines using <br> elements.
Output
HTML to fix
Paragraphs
HTML IN-DEPTH – CASE STUDY
CASE STUDY #9 (Paragraphs)
Output
HTML to fix
Paragraphs
HTML IN-DEPTH – CASE STUDY
CASE STUDY #10 (Styles)
Styles
HTML IN-DEPTH – CASE STUDY
CASE STUDY #11 (Styles)
Styles
QUIZ
https://tinyurl.com/yav5tef3
PROJECT