Simplified HTML Notes
What is HTML?
HTML stands for Hyper Text Markup Language. It is used to describe the structure of web pages using
markup tags.
HTML Tags
Tags are keywords inside angle brackets like <html>. Most tags come in pairs: opening tag <p> and
closing tag </p>.
HTML Elements
Elements consist of a start tag, content, and end tag. Some are empty like <br>. Elements can have
attributes.
Headings and Paragraphs
<h1> to <h6> define headings (h1 being most important). <p> defines paragraphs.
Links
<a href='url'>Link</a> defines a hyperlink. 'href' is an attribute that holds the link's
destination.
Images
<img src='image.jpg' alt='desc' width='100' height='100'> defines an image. 'src' specifies path and
'alt' alternative text.
Text Formatting
Tags like <b>, <i>, <strong>, <em> are used for bold, italic, and emphasized text.
Lists
Ordered list: <ol>, Unordered list: <ul>, List item: <li>, Definition list: <dl>, <dt>, <dd>.
Tables
<table> creates tables with rows <tr> and cells <td>. Use <th> for headers.
Simplified HTML Notes
Forms
Use <form> to create user input forms. <input> types include text, password, checkbox, radio,
submit.
Iframes
Use <iframe src='url'> to embed a webpage inside another.
HTML Colors
Colors use HEX codes like #FF0000 or RGB values like rgb(255,0,0).
HTML Comments
Comments are added using <!-- This is a comment -->.