Hypertext Markup Language (HTML)
HTML Notes with Examples
1. Introduction to HTML
1.1 What is HTML?
- HTML (Hypertext Markup Language) is the standard language used to create web pages.
- It provides the structure of a web page by defining elements such as headings, paragraphs, links, images, forms, and more.
1.2 Structure of an HTML Document
An HTML document is structured with various elements, which are enclosed within tags. Each HTML document begins with the <!DOCTYPE html> declaration, followed by the root <html> tag, which contains the <head> and <body> sections.
2. HTML Tags and Elements
2.1 Basic HTML Tags
<html>: The root element of an HTML document.<head>: Contains metadata about the document (title, link to CSS files, etc.).<body>: Contains the visible content of the web page (text, images, etc.).<title>: Sets the title of the web page (appears on the browser tab).<h1>to<h6>: Header tags, with<h1>being the largest and<h6>being the smallest.<p>: Paragraph tag for text.
2.2 Empty Tags
Some HTML tags don't have closing tags. These are called empty tags:
<img>: Embeds an image.<br>: Inserts a line break.<hr>: Creates a horizontal rule (line).
3. HTML Attributes
3.1 Common HTML Attributes
Attributes provide additional information about HTML elements. They are written in the opening tag.
href: Used in<a>to specify the link destination.src: Used in<img>to specify the image source.alt: Provides alternative text for an image.class: Used to assign a class to an element for styling.id: Used to assign a unique identifier to an element.style: Used to add inline CSS styles.
4. HTML Text Formatting Tags
4.1 Text Tags
<b>: Bold text.<i>: Italic text.<u>: Underlined text.<strong>: Strong emphasis (usually bold).<em>: Emphasized text (usually italic).
4.2 Line Breaks and Paragraphs
<br>: Creates a line break.<p>: Defines a paragraph.
5. HTML Lists
5.1 Unordered List (<ul> and <li>)
An unordered list uses bullet points.
5.2 Ordered List (<ol> and <li>)
An ordered list uses numbered items.
6. HTML Links and Images
6.1 Hyperlinks
The <a> tag is used to create hyperlinks.
6.2 Images
The <img> tag is used to display images.
7. HTML Tables
7.1 Table Structure
A basic table is created using the following tags:
<table>: Defines the table.<tr>: Defines a table row.<th>: Defines a table header.<td>: Defines a table data cell.
8. HTML Forms
8.1 Form Elements
HTML forms allow users to enter data. The form is defined with the <form> tag, and input fields are defined with tags like <input>, <textarea>, <select>, and <button>.
<input>: Used to create various types of input fields (text, password, radio, checkbox).<textarea>: Used to create multi-line text inputs.<select>: Used to create a dropdown list.
9. HTML Comments
HTML comments are used to add notes or explanations within the code. They are ignored by the browser.
10. HTML Meta Tags
Meta tags provide metadata about the HTML document, such as character encoding and viewport settings.
11. HTML Responsive Design
11.1 Viewport Meta Tag
The viewport meta tag is used to control the layout on mobile devices.
This helps the webpage adapt its layout to different screen sizes.
Assessment: Regular Tests, Assignments, and Final Project Evaluation
Certification: Certificate of Completion from Disha Institute
Number of Days Depends on your practice and feedback. The more you practice and review your work, the faster you will complete the course.
For Batch time and Fess contact to Below Address and Number.
(MCA / Bsc. I.T / ‘A’ / ‘O’ / CCC / Govt. Certified Domain Skill Trainer )
Disha Institute 153 Vijay Nagar Opp. Rg Pg College W.K Road Meerut
(9411617329 , 9458516690)
Comments
Post a Comment