HTML
HTML
LANGUAGE
DEVELOPED BY TIM BERNERS-LEE IN 1991
HTML is the standard language for creating web pages.
It structures web content using elements enclosed in tags.
Works with CSS and JavaScript for styling and functionality.
HTML Editors & Basic Structure
• Editors: Notepad, VS Code, Sublime Text, Brackets.
• HTML files use .html extension.
• Basic Structure:
1. <!DOCTYPE html>
2. <html>
3. <head>
4. <title>Title of the page</title>
5. </head>
6. <body>
7. <h1>Welcome to HTML</h1>
8. </body>
9. </html>
Elements & Attributes
• Elements: Basic building blocks of HTML.
a. Block Elements: <div>, <p>, <h1>, <section>, <article>
b. Inline Elements: <span>, <a>, <img>
• Types of CSS:
a.Inline CSS: Applied directly to an element using the style attribute.
Example: <p style="color: red;">Text</p>.
b.Internal CSS: Defined inside a <style> tag within the <head> section of an
HTML file.
c.External CSS: Written in a separate .css file and linked using
<link rel="stylesheet" href="style.css">.
• Colors in HTML:
a.Color Names: red, blue, green.
b.Color Values: #FF5733 (Hex), rgb(255,0,0), hsl(120, 100%, 50%).