0% found this document useful (0 votes)
8 views3 pages

HTML Commands and Tags Explained

This document provides an overview of various HTML commands, categorized into sections such as Document Structure, Headings and Paragraphs, Text Formatting, Links and Images, Lists, Tables, Forms, Multimedia, and Semantic Elements. Each section includes specific HTML tags along with their descriptions. It serves as a reference guide for understanding the structure and functionality of HTML elements.

Uploaded by

cijava8341
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

HTML Commands and Tags Explained

This document provides an overview of various HTML commands, categorized into sections such as Document Structure, Headings and Paragraphs, Text Formatting, Links and Images, Lists, Tables, Forms, Multimedia, and Semantic Elements. Each section includes specific HTML tags along with their descriptions. It serves as a reference guide for understanding the structure and functionality of HTML elements.

Uploaded by

cijava8341
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

HTML Commands - Extended

1. Document Structure Tags


Tag Description

<!DOCTYPE html> Defines the document type to be HTML5.


<html> The root element of an HTML page.
<head> Contains meta-information about the HTML document.
<title> Specifies the title of the document.
<body> Contains the visible page content.

2. Headings and Paragraphs


Tag Description

<h1> to <h6> Defines HTML headings.


<p> Defines a paragraph.
<br> Inserts a line break.
<hr> Defines a thematic break (horizontal rule).

3. Text Formatting and Semantics


Tag Description

<b> Bold text (stylistic only).


<strong> Important text (semantic meaning).
<i> Italic text (stylistic only).
<em> Emphasized text (semantic meaning).
<mark> Marked/highlighted text.
<small> Defines smaller text.
<del> Deleted text.
<sub> Subscript text.
<sup> Superscript text.
<code> Defines computer code.
<pre> Preformatted text.
<blockquote> Defines a quoted section.

4. Links and Images


Tag Description

<a> Defines a hyperlink.


<img> Defines an image (uses src attribute).
<link> Links an external resource (like CSS).

5. Lists
Tag Description

<ul> Defines an unordered list.


<ol> Defines an ordered list.
<li> Defines a list item.
<dl> Defines a description list.
<dt> Defines a term in a description list.
<dd> Describes a term in a description list.

6. Tables
Tag Description

<table> Defines a table.


<tr> Defines a table row.
<th> Defines a header cell in a table.
<td> Defines a standard cell in a table.
<caption> Adds a caption to a table.

7. Forms
Tag Description

<form> Defines an HTML form.


<input> Defines an input field (various types).
<textarea> Defines a multi-line text input control.
<button> Defines a clickable button.
<select> Defines a dropdown list.
<option> Defines an option in a dropdown list.
<label> Defines a label for a form element.

8. Multimedia
Tag Description
<audio> Embeds audio content.
<video> Embeds video content.
<source> Specifies media resources for <audio> or <video>.
<iframe> Embeds another webpage into the current document.

9. Semantic Elements
Tag Description

<header> Represents a header for a document or section.


<nav> Defines navigation links.
<section> Defines a section in the document.
<article> Defines an independent piece of content.
<aside> Defines content aside from the main content.
<footer> Represents a footer for a document or section.
<main> Specifies the main content of a document.

You might also like