
HTML, or HyperText Markup Language, is the main language used to create or structure web pages. It combines two things: Hypertext, which links different web pages together, and Markup, which organizes the content using tags. These tags help in the structuring of the web pages so that computers can read and display the content correctly. HTML is easy to understand because it uses simple tags that tell the browser how to place content.
In this article, we have broken down some HTML basic concepts in a beginner-friendly manner, explaining what HTML is, how HTML works, and how to get started with your very first HTML document. Continue reading this article and by the end, you will have a solid understanding of this foundational web technology.
| HTML Tag Format |
| <!DOCTYPE html> <html lang="en"> ... </html> |
| Head tag in HTML |
| <head> <title>Page Title</title> <meta charset="UTF-8"> </head> |
| Body Tag In HTML |
| <body> <h1>Welcome to My Website</h1> <p>This is a paragraph of text.</p> </body> |
| Anchor Tag Syntax |
| <a href="https://www.pwskills.com">Visit Our Website </a> |
| HTML Unordered List Example |
| <ul> <li>Orange</li> <li>Mango</li> <li>Grapes</li> <li>Chiku</li> </ul> |
Output-
|
| HTML Ordered List Syntax |
| <ol> <li>Orange</li> <li>Mango</li> <li>Grapes</li> <li>Chiku</li> </ol> |
Output-
|
| <Img> tag in HTML |
| <img src="Cat.jpg" alt="This is a picture of a cat"> |
| <audio> tag in HTML Basics |
| <audio controls> <source src="audio.mp3" type="audio/mpeg"> </audio> |
| <Video> tag in HTML Basics |
| <video controls width="320" height="240"> <source src="video.mp4" type="video/mp4"> </video> |
| HTML Examples |
| <!DOCTYPE html> <html> <head> <title>PW Skills Web Page Example</title> <meta charset="UTF-8"> <style> body { font-family: Arial, sans-serif; } h1 { color: #333; } </style> </head> <body> <header> <h1>Welcome to PW Skills Blog Page</h1> <nav> <ul> <li><a href="#home">Home</a></li> <li><a href="#about">About</a></li> <li><a href="#contact">Contact</a></li> </ul> </nav> </header> <section id="home"> <h2>Home</h2> <p>This is the home section. Here you can find the latest updates.</p> </section> <section id="about"> <h2>About</h2> <p>This section tells you more about us. We are passionate about web development!</p> <ul> <li>Experienced Team</li> <li>Creative Designs</li> <li>Client Focused</li> </ul> </section> <section id="contact"> <h2>Contact</h2> <p>Feel free to reach out to us!</p> <p>Email: <a href="mailto:pwskills@gmail.com">Our Email Address</a></p> <p>Follow us on <a href="https://pwskills/instagram.com">Instagram</a></p> </section> <footer> <p>© 2024 PW Skills Web Page</p> <img src="pwskills.jpeg" alt="Banner Image"> </footer> </body> </html> |
Output-
![]() |
| Difference Between HTML and HTML 5 | ||
| Feature/Aspect | HTML | HTML5 |
| Definition | HTML (HyperText Markup Language) is the standard markup language used for creating web pages. | HTML5 is the latest version of HTML and introduces new elements, attributes, and functionalities. |
| DOCTYPE Declaration | Required to specify the type/version of HTML being used (e.g., <!DOCTYPE HTML>). | Simplified and standardized DOCTYPE declaration (<!DOCTYPE html>). |
| New Semantic Elements | Limited set of semantic tags (e.g., <div>, <span>, <header>, <footer>, etc.). | Introduces new semantic elements like <header>, <footer>, <nav>, <article>, <section>, <aside>, <main>, <figure>, and <figcaption>, which provide better structure and meaning to web content. |
| Audio and Video Support | Limited multimedia support requiring plugins (e.g., Flash). | Built-in support for <audio> and <video> elements, allowing native playback of audio and video content without plugins. |
| Canvas Element | Not available in previous versions. | Introduces the <canvas> element for drawing graphics, animations, charts, and more using JavaScript. |
| Form Enhancements | Basic form controls and validation. | Enhanced form controls (e.g., date, email, number, range, etc.) and built-in form validation features. |
| Local Storage | Limited storage options, primarily cookies. | Introduces Web Storage API (localStorage and sessionStorage) for storing key-value pairs locally in the browser, providing more efficient and larger storage options than cookies. |
| Geolocation API | Not available in previous versions. | Introduces Geolocation API for accessing user's geographical location, enabling location-based services and functionalities. |
| Web Workers | No support for multi-threading in browsers. | Introduces Web Workers API for running scripts in the background, allowing for multi-threading and improved performance. |
| Compatibility | Older browsers may have limited support or require workarounds for newer features. | Designed with backward compatibility in mind, but some features may require polyfills or fallbacks for older browsers. |
| Mobile Support | Limited mobile optimization and responsiveness. | Enhanced support for mobile devices, responsive design, and touch-based interactions, making it more mobile-friendly. |
| API Integration | Basic JavaScript functionalities. | Integrates with various JavaScript APIs, providing richer and more interactive web experiences. |
For Latest Tech Related Information, Join Our Official Free Telegram Group : PW Skills Telegram Group