Web Developent D2
Web Developent D2
Web1-M1 (1-3pm)
Day 2
Html Tag List
Root Tag
<html>
Document MetaData
<meta>, < head>, <title>, <link>, <style>
Section
<body>,<h1>-<h6>, <nav>, <main>, <section>,<footer>,<article>
Grouping Content
<div>,<p>,<ul>, <il>,<ol> <main>
!DOCTYPE html>
<html lang= en>
<head>
<Meta charset="utf-8“>
<Title> Block Elements</Title>
</head>
<body>
<div>My Important Heading</div>
</body>
</html>
Block Element & Inline Element
An inline element does not start on a new line and only takes up
as much width as necessary
<a>, <img>, <strong>, <br>, <em>
<!DOCTYPE html>
<html>
<head>
<Title> Inline Elements</Title>
</head>
<body>
<h1>My <br>Important Heading</h1>
</body>
</html>
Attributes List
• Href <!DOCTYPE html>
• Height <html lang=en>
<head>
• Width <Meta charset="utf-8">
• Class <Title>Attributes & Img Tag Example</Title>
• Id </head>
• Src <body>
• <h2>Images on Another website</h2>
Style
<img src="http://www.nerdist.com/wp-content/uploads/2016/03/Fiding-nemo-
• Title Bruce-marlin.jpg" alt="Fiding-nemo" width="400" height="300">
• Lang
</body>
</html>
Attributes List
• Href <!DOCTYPE html>
• Height <html lang=en>
<head>
• Width <Meta charset="utf-8">
• Class <Title>Attributes & Img Tag Example</Title>
• Id <img src="girl.jpg" alt="Girl in a jacket" width="500" height="600">
• Src </head>
• <body>
Style
<h2>Image Size</h2>
• Title <p> Sample of how to put images on your WebPage</p>
• Lang </body>
</html>
Attributes List
• Href <!DOCTYPE html>
• Height <html lang=en>
<head>
• Width <Meta charset="utf-8">
• Class <Title> Images Example</Title>
• Id </head>
• Src <body>
• <h2>Another Example</h2>
Style
<p>The alt attribute should reflect the image content, so users who
• Title cannot see the image gets an understanding of what the image
• Lang contains:</p>
<img src="Images/chania.jpg" alt="Flowers in Chania" width="460"
height="345">
</body>
</html>
Introduction to CSS (Cascading Style Sheets)
HTML without CSS
The first web page address was August 6, 1991.
http://info.cern.ch/hypertext/WWW/TheProject.html.
Introduction to CSS (Cascading Style Sheets)
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Structure Of HTML
<!DOCTYPE html> -> DOCTYPE declaration defines the document type.
<html> -> The text between <html> and </html> describes the web page.
<head> -> The text between <head> and </head> is the visible headpage
content.
<title> -> The text between <title> and </title> is the visible
title of the browser.
</title>
</head>
<body>-> The text between <body> and </body> is the visible page content
</body>
</html>
HTML Attributes
Html Attributes List Example
Ex.
<p title="I'm a tooltip">
This is a paragraph.
</p>
HTML Element
• An HTML element is defined by a starting tag. If the element contains
other content, it ends with a closing tag, where the element name is
preceded by a forward slash.
<!DOCTYPE html>
<html>
<head>
<title>TITLE WEBSIE</title>
<meta charset="UTF-8">
</head>
<body>
Slide Title
Product A Product B
• Feature 1 • Feature 1
• Feature 2 • Feature 2
• Feature 3 • Feature 3