HTML Basic 📌
In this lecture, we are going to talk about some basic HTML example.
HTML Documents
- All HTML documents need to declare the document type. <!DOCTYPE html>
- All HTML documents start with <html> tag itself
- All HTML documents end with </html> tag itself
- All HTML document contains the visual part of the <body> tag
HTML Headings
- Headings are used to create a title for the HTML document.
- There are 6 types of heading h1 is the most important heading & h6 is the less important heading. h1
heading is also important from an SEO perspective.
This is our code preview
-
Heading number 1
-
Heading number 2
-
Heading number 3
-
Heading number 4
-
Heading number 5
-
Heading number 6
-
HTML Paragraphs
HTML paragraphs are defined with the <p> tag
HTML Links
HTML links are defined with the <a> tag
- The link's destination is specified in the href attribute.
- Attributes are used to provide additional information about HTML elements.
- You will learn more about attributes in a later chapter.
HTML Images
HTML images are defined with the <img> tag
- We use (src) for source file.
- We use (alt) for alternative text.
- We use (width) for width of image.
- We use (height) for height of image.
- We use (title) for title of image.
Html Media tag
- There are some special tags which are used to add Videos & Audios in your Html page!
- You can add videos in your HTML page using the <video> tag
- By the use of this tag you'll get some features in your video like:
- Play/Pause
- Volume
- Fullscreen
- etc.
- Similarly, you can add audios in your HTML page using the <audio> tag
- You'll get the same features like video, here too!