Part 1: Understanding HTML Basics
Senior Full-Stack Developer
HTML stands for HyperText Markup Language
Hypertext means "Text within Text"
A markup language is used to define text documents within tags
Simple syntax with clear tag structure
Can be integrated with CSS and JavaScript
Easy to create hyperlinks between pages
Continuous evolution with new standards
Supported by all modern browsers
Creates only static web pages
Lacks built-in security features
Simple pages need many tags
No centralized language structure
Can become complex for huge websites
Basic text editor included with Windows
Enhanced text editor with syntax highlighting
Sophisticated text editor for code
Hackable text editor for the 21st Century
Most popular code editor with extensive features
Save HTML files with .html extension (e.g., hello.html)
Structure
Defines the content and layout of web pages
Presentation
Styles and makes HTML look beautiful
Behavior
Makes web pages interactive and dynamic
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
<!-- CSS -->
<style>
body { font-family: Arial; }
.highlight { color: blue; }
</style>
</head>
<body>
<!-- HTML -->
<h1 class="highlight">Hello World!</h1>
<!-- JavaScript -->
<script>
document.querySelector('h1').addEventListener('click', function() {
alert('Hello from JavaScript!');
});
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello World!</h1>
<p>Welcome to my first web page.</p>
<p>This is created using HTML.</p>
</body>
</html>
Welcome to my first web page.
This is created using HTML.
hello.html.html extensionA tag is a command that tells the web browser how to display content on a web page.
< ><tagname> and end with </tagname>An HTML element consists of:
Empty elements (void elements) don't require closing tags:
Attributes provide additional information about HTML elements:
name="value"<a href="https://devvoltz.com" target="_blank">Visit DevVoltz</a>
<img src="image.jpg" alt="Description" width="500">
You've learned HTML Fundamentals
HyperText Markup Language basics
Advantages and disadvantages
Tools for writing HTML code
HTML with CSS & JavaScript
Created hello.html
HTML building blocks
Create an HTML file with:
Next: Learn about DOCTYPE, head section, and body structure