Class-Notes
Class-Notes
Content
Element
Basic HTML Page
<!DOCTYPE html> tells browser you are using HTML5
</body>
</html>
Quick Points
Html tag is parent of head & body tag
<p> = <P>
<head> = <HEAD>
<body> = <BODY>
Level 2
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
Used to add paragraphs in HTML
relative url
Br Tag
Used to add next line(line breaks) to your page
<br>
Bold, Italic & Underline Tags
Used to highlight text in your page
<hr>
Subscript & Superscript Tag
Used to display a horizontal ruler, used to separate content
H 2O
<sup> superscript </sup>
n
A +B
Pre Tag
Used to display text as it is (without ignoring spaces & next line)
<pre> This
is a sample
text.
</pre>
Level 3
Page Layout Techniques
using Semantic tags for layout
using the Right Tags
<header>
<main>
<footer>
Inside Main Tag
Section Tag For a section on your page
<section>
clickable pic
Revisiting Image Tag
<img src="link" height=50px >
set height
set width
Div Tag
Div is a container used for other HTML elements
unordered ordered
<ul> <ol>
<li> Apple </li> <li> Apple </li>
<li> Mango </li> <li> Mango </li>
</ul> </ol>
Tables in HTML
Tables are used to represent real life table data.
<tr> used to display table row
<td> used to display table data
Student Data
Name Roll No
Shradha 1664
thead & tbody in Tables
Data
Shradha 1664
Aman 1890
Form in HTML
Forms are used to collect data from the user
Eg- sign up/login/help requests/contact me
<form>
form content
</form>
Action in Form
Action attribute is used to define what action needs to be
performed when a form is submitted
<label for="id2">
<input type="radio" value="class X" name="class" id="id2">
</label>
Class & Id
<div id="id1" class="group1">
</div>
</div>
Checkbox
<label for="id1">
<input type="checkbox" value="class X" name="class" id="id1">
</label>
<label for="id2">
<input type="checkbox" value="class X" name="class" id="id2">
</label>
Textarea
<textarea name="feedback" id="feedback" placeholder="Please add Feedback">
</textarea>
Select
<select name="city" id="city">
<option value="Delhi"> Delhi </option>
<option value="Mumbai"> Delhi </option>
</select>
iframe Tag
website inside website
Attributes
- controls
- height
- width
- loop
- autoplay
All the very best in your future
journey :)