HTML
HTML
HTML
HTML CSS JS
HTML is the code that is used to structure a web page and its
content.
index.html
Content
Element
Basic HTML Page
<!DOCTYPE html> tells browser you are using HTML5
</body>
</html>
Quick Points
HTML tag is the parent of the head & and body tag
Most of HTML elements have opening & and closing tags with
content in between
<html> = <HTML>
<p> = <P>
<head> = <HEAD>
<body> = <BODY>
Basic HTML Tags
HTML Attributes
Attributes are used to add more information to the tag
<html lang="en">
Heading Tag
Used to display headings in HTML
h1 (most important)
h2
h3
h4
h5
h6 (least important)
Paragraph Tag
<br>
Bold, Italic & Underline Tags
<hr>
Subscript & Superscript Tag
H2O
<sup> superscript </sup>
n
A +B
Pre Tag
<pre> This
is a sample
text.
</pre>
Page Layout Techniques
<header>
<main>
<footer>
Inside Main Tag
clickable pic
Revisiting Image Tag
<img src="link" height=50px >
set height
set width
Div Tag
unordered ordered
<ul> <ol>
<li> Apple </li> <li> Apple </li>
<li> Mango </li> <li> Mango </li>
</ul> </ol>
Tables in HTML
Student Data
Name Roll No
Pankaj 1639
thead & tbody in Tables
colspan="n"
used to create cells that span over multiple columns
Data
Pankaj 1639
Deepesh 1890
Form in HTML
<form>
form content
</form>
Action in Form
</label>
<label for="id2">
</label>
Class & Id
<div id="id1" class="group1">
</div>
</div>
Checkbox
<label for="id1">
</label>
<label for="id2">
</textarea>
Select
<select name="city" id="city">
</select>
iframe Tag
Attributes
• controls
• height
• width
• loop
• autoplay