HTML Basics

HTML Introduction HTML Basic HTML Comments HTML Tags/Elements HTML Attributes HTML Formatting HTML Block and Inline HTML Charsets HTML Classes HTML Colors HTML Div HTML Headings HTML Id HTML Iframes HTML Images HTML File Paths HTML Tables HTML Layout HTML Lists HTML Links <a> HTML Paragraphs HTML Quotations HTML JavaScript HTML Emojis HTML URL Encode HTML Entities HTML Computercode HTML Symbols HTML Styles

HTML Forms

HTML Forms HTML Form Elements HTML Form Attributes HTML Input Attributes HTML Input Regex HTML Input Form Attributes HTML Input Types

HTML SEO

HTML Head HTML Page Title HTML Responsive HTML Semantics HTML Favicon

HTML Graphics

HTML Canvas HTML SVG

HTML Media

HTML Media HTML Audio HTML Video

HTML Reference

a abbr acronym address applet area article aside audio b base basefont bdi bdo big blockquote body br button canvas caption center cite code col colgroup data datalist dd del details dfn dialog dir div dl DOCTYPE dt em embed fieldset figcaption figure font footer form frame frameset h1_-_h6 head header hgroup hr html i iframe img input ins kbd label legend li link main map mark menu meta meter nav noframes noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script search section select small source span strike strong style sub summary sup svg table tbody td template textarea tfoot th thead time title tr track tt u ul var video wbr

HTML Basic Tutorial

HTML (HyperText Markup Language) is the standard markup language for creating web pages. It defines the structure of the content on a web page using a system of tags and attributes.

HTML Tags

HTML tags are keywords surrounded by angle brackets used to define the structure of a web page. Tags usually come in pairs, with an opening tag and a closing tag.

Example:

<p>This is a paragraph.</p>

In the example above, the <p> tag is the opening tag and the </p> tag is the closing tag. The content between the opening and closing tags is the paragraph content.

HTML Attributes

HTML attributes provide additional information about an element. They are always included in the opening tag and are written as name/value pairs.

Example:

<a href="https://www.example.com">Link</a>

In the example above, the href attribute specifies the URL that the link should go to. The attribute value is enclosed in double quotes.

HTML Elements

HTML elements are made up of tags, attributes, and content. They can be nested within each other to create a hierarchy of elements on a web page.

Example:

<div>
  <p>This is a paragraph inside a div.</p>
</div>

In the example above, the <div> element contains a <p> element. This is an example of nesting elements within each other.

HTML Lists

HTML provides several types of lists for organizing content, including ordered lists (<ol>), unordered lists (<ul>), and definition lists (<dl>).

Example:

<ul>
  <li>Item 1</li>
  <li>Item 2</li>
</ul>

In the example above, the <ul> tag creates an unordered list, and the <li> tags create list items within the list.

Conclusion

HTML is the foundation of web development and is essential for creating web pages. By understanding HTML tags, attributes, elements, and lists, you can create well-structured and organized web content.