HTML5 Introduction
What is HTML5?
HTML stands for Hyper Text Markup Language, it is easy and fun to learn.
HTML describes the structure of web pages.
HTML5 is the fifth and current major version of the HTML standard.
Why learn HTML5?
It is essential to learn HTML if you want to build web sites, you can't build one if you don't know HTML because it's one of the prerequisites in learning other languages used for web development.
Try it Yourself
For you to learn faster and see how our examples would actually look like simlarly on a real browser we have implemented a simple Try it Yourself Editor with syntax highlighting where you can play and experiment with the example codes given.
Example Explained
- <!DOCTYPE html>: this declares the document type which is HTML5
- <html>: this element encloses everything inside of an html document; it includes tags, elements, style sheets, scripts, text, multimedia and a lot more
- <head>: this element encloses the metadata of a document which will not be displayed on the main content of a web page; this could include style sheets, scripts, <title>, <meta> tags and a lot more
- <title>: this element defines the title of a web page; it appears on the upper-part of a browser
- <body>: this element encloses elements like <h1>, <p>, <img>, <b>, <i> and a lot more
- <h1>: this element defines a heading
- <p>: this element defines a paragraph
HTML Tags
HTML Tags are element names surrounded by angle brackets.
In HTML we start and end tags. Look at the example below.
Start Tag and End Tag
- Start tag also called "opening a tag". Example: <p>
- End tag - also called "ending a tag". Example: </p>
This is the basic structure of any HTML page. Memorize them!
This is best for learing
ReplyDelete