Basic examples of HTML

This article will give some basic HTML text examples  . Don't worry if you see unlearned bookmarks. You will soon learn about them in the upcoming lessons.

HTML Text

  1. All HTML documents must begin with -!DOCTYPE html-
  2. As for the HTML text content, it starts with -html- and ends with -/html-
  3. The HTML text that will display is the part that is contained within the 2 tags  -body- and -/body-

HTML title

The title of the HTML document is defined by the markup -h1- and  tags -/h1-

-h1- indicates that it is the most important title, and  -h6- indicates that it is the least important.

Text paragraphs in HTML

Paragraphs are identified by bookmarks  -p- and end with -/p-

Links in HTML

Paths are identified by tags  -a- and -/a-

  1. The destination of this path is specified in the attribute href.
  2. Attributes are used to provide additional information to an element in HTML.
  3. You will learn about   HTML elements and attributes in the next lesson.

Images in HTML

The image is identified by the tag -img-

The alt (src), text  source file  (alt), width and  height the properties of the image.

Buttons in HTML

Buttons identified by tags -button-

List in HTML

Lists are identified by tags  -ul- (bulleted/  -ol- unordered lists ) or (bulleted / ordered lists), followed by a tag  -li- (item list)

4.5 ★ | 2 Vote

May be interested

  • Style properties in HTMLStyle properties in HTML
    the style attribute specifies the style for the html element.
  • Text in HTMLText in HTML
    the element in html is used to define a paragraph of text.
  • How to Use Text Color Tags in HTMLHow to Use Text Color Tags in HTML
    this article explains how to change the font color in html documents. although the html style tag is obsolete in html5, you can use css to color content on an html page. if you use an older version of html, you can use the html text color tag as needed.
  • Format text in HTMLFormat text in HTML
    format elements in html help determine the style and importance of text.
  • Elements in HTMLElements in HTML
    the html element usually goes in pairs, including the opening tag, closing tag, and the content inside the two tags.
  • Symbol - Icon in HTMLSymbol - Icon in HTML
    html has many mathematical, technical and monetary symbols that cannot be used to write.
  • Initially learn about WebMatrixInitially learn about WebMatrix
    in the following series, we will introduce some basic steps to build a simple web application using webmatrix, css, html, html5, asp.net, sql, database ... here, we will jointly build a basic web application to manage your favorite movie listings, including creating databases, creating and authorizing accounts, editing and deleting databas
  • Common HTML mistakes that you should avoid for better web programmingCommon HTML mistakes that you should avoid for better web programming
    learning html is not difficult, but when running it in the browser, errors often occur. here are common html errors and how to handle them for better web development.
  • How to insert spaces in HTMLHow to insert spaces in HTML
    this tutorial explains how to insert spaces and line breaks in html. because no matter how many times you type a space, html will display a space so to insert more than one space, you will need to use the html tag.
  • Image img in HTMLImage img in HTML
    when you visit the website, you will often see images of all sizes and positions on the page. images in html web pages will help to enrich the content as well as increase the aesthetics of the page.