Lecture 3: HTML5: HTML History, Tags, Element
Lecture 3: HTML5: HTML History, Tags, Element
Lecture 3: HTML5: HTML History, Tags, Element
<head>
<title>Hello World </title>
</head>
<body>
</body>
</html>
Tree structure of HTML
html
head body
title p
History of HTML
HTML, initially defined by a single person, Tim berner Lee in 1991
◦ A HTML document contains only text.
From 1993 to 1997, HTML was being defined by the elements that browser
software developers chose to implement. - The “War” Years
HTTP4
Following the “war” years, the standards community pushes for further changes
in HTML standards.
◦ In particular, the W3C has attempted to clean up the definition of HTML.
<h1> defines the most important heading and <h6> defines the least important
heading.
Browsers automatically add some empty space before and after each heading.
Comment
Comments can be added into the HTML code to make it readable and
understandable.
The href is the most important attribute, which indicates the link’s destination.
◦ E.g., <a href=“http://www.yahoo.com”>GO TO YAHOO</a>
You need to use the src attribute. The value of this attribute is the URL of the
image.
◦ Syntax: <img src=“sampleImage.JPEG” alt=“hint”>
alt defines the text for an image when the image cannot be displayed.
The width and height attributes define the size of the image.
Next Class
Tables
Lists
Blocks
◦ Div and span
Inline Style