Definitions of HTML Tags
Definitions of HTML Tags
HTML: Hyper Text Markup Language, the standard markup language for
Web pages.
HTML5: The latest version of HTML
The <!DOCTYPE html> declaration defines that this document is an HTML5 document
This is the second element in your web page. There must be a closing tag like this
</html> at the end of your web page.
The <head> element contains meta information about the HTML page
This is the third element in your web page. There must be a closing tag like this
</head> at the end of the head section of your web page.
The <title> element specifies a title for the HTML page (which is shown in the browser's title
bar or in the page's tab)
This element goes inside the head section of your web age. There must be a closing
tag like this </title> at the end of the title. The title of the page is what you want to be
shown in the browser’s title bar or in the page’s tab. Here is an example:
The <body> element defines the document's body, and is a container for all the visible
contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
This element goes after the closing tag for the head section. There must be a closing
tag like this </body> at the end of all the contents of your web page.
This element defines a first level heading. There must be a closing tag like this </h1>
at the end of the heading. Here is an example:
This element defines a paragraph. There must be a closing tag like this </p> at the
end of the paragraph. Here is an example:
You can have as many paragraphs of any length in your web page as you want.
This element is used to create a link to another web page. There must be a closing
tag like this </a> at the end of the link. The page being linked to is specified with the
href attribute. Here is an example:
The link's destination is specified in the href attribute. The web page this link
links to is the home page of the website with the URL https://www.w3schools.com.
Notice the URL is enclosed in quotes.
This element is used to insert an image into a web page. This element
does not need a closing tag. Key attributes of this element include name
of the source image file (src), alternative text (alt), width, and height.
The first example shows the width and height expressed as the number of
pixels. You get this information from your image editor.
<audio controls>
</audio>
</video>
You can copy the code to include a YouTube video from YouTube by
clicking on the Share button and then the embed option under Share.