HTML 5 Tag Explanation: HTML code is used in the HTML document that represents different types of images, text, formation, base, and so on. Below you can see those document outline tags, tags for formation, tags for tables,and images. Let’s see more in detail about the Tags of HTML5.
HTML 5
HTML5 Tags:
HTML 5 code for Document outline
Code
Description
<!DOCTYPE>
For the Version of (x)HTML
<html>
Represents an HTML document
<head>
This tag is for page information
<body>
This tag represents the contents of the page
<!– —>
Tag for Comments
HTML 5 Tag explanation for Page Information
Tag
Description
<base/>
This represents the base URL
<meta/>
This one is for Metadata
<title/>
Represents the title
<link/>
A link to CSS
<style>
To insert CSS
<script>
To insert JavaScript
HTML 5 Tag explanation for Document Structure
Tags
Description
<h[1-6]>
Represents heading
<div>
This one represents the page section
<span>
Represents inline section
<p>
To represent a paragraph
<br/> or <br>
This represents a Line break
<hr/> or <hr>
For Horizontal rule
HTML 5 Anchor links
Tags
Description
<a href=”URL”>
This tag is for Anchor link
<a href=”mailto:”>
It is for Email link
<a href=”tel:”>
This code is for Phone dial Link
<a id=”name”>
Tag represents Anchor
<a href=”#name”>
Code for Link to anchor
<a target=”_value”>
This tag specifies the Link Location
<a title=”title”>
This tag is for the extra information that is shown as a tooltip text when the mouse moves over the element
<a download=”name”> or<a download>
It represents the one that will be downloaded, the value of the attribute will be the name of the downloaded file
<a hreflang=”language-code”>
This code specifies the language of the anchor link
<a rel=”value”>
It represents the relationship with the current document
1 Default value Decimal numbers 1,2,3,4
a Alphabetical(lowercase) a, b, c, d
A Alphabetical (uppercase) A, B, C, D
i Roman numerals (lowercase) i, ii, iii, iv
I Roman numerals (uppercase) I, II, III, IV