Course Content
HTML Forms
HTML forms are an essential part of web development and provide a way for users to input and submit data to a server. Forms allow users to enter data such as text, numbers, checkboxes, radio buttons, and more. When a user submits a form, the data is typically sent to a server for further processing.
0/6
HTML Graphics
HTML provides various ways to incorporate graphics into web pages.
0/2
HTML Media
HTML provides built-in support for embedding and displaying various types of media content on web pages.
0/5
HTML APIs
HTML APIs, also known as browser APIs or web APIs, are a set of interfaces and methods provided by web browsers to interact with and manipulate web content, access device features, and perform various tasks. These APIs are implemented in JavaScript and are accessible to web developers when creating web applications. Here are some commonly used HTML APIs:
0/5
HTML Examples
Creating a Simple Web Page, Adding Links and Images and more
0/4
HTML5 for Free | HTML5 – Unleashing the Potential of Web Development
About Lesson

HTML provides various tags and attributes to format and style text within web pages. Here are some commonly used HTML text formatting elements:

  1. <strong>: Specifies strong importance or emphasis. By default, it renders text in bold.
<p>This is <strong>important</strong> text.</p>
  1. <em>: Represents emphasized text. By default, it renders text in italics.
<p>This is <em>emphasized</em> text.</p>
  1. <u>: Underlines text.
<p>This is <u>underlined</u> text.</p>
  1. <s>: Renders text with a strikethrough effect.
<p>This is <s>strikethrough</s> text.</p>
  1. <sub>: Renders text as subscript, appearing slightly below the baseline.
<p>This is H<sub>2</sub>O.</p>
  1. <sup>: Renders text as superscript, appearing slightly above the baseline.
<p>This number is 10<sup>2</sup>.</p>
  1. <mark>: Highlights text with a background color to indicate relevance or significance.
<p>This is <mark>highlighted</mark> text.</p>
  1. <small>: Renders text in a smaller font size, typically used for disclaimers or fine print.
<p>This is <small>smaller</small> text.</p>
  1. <code>: Represents computer code or inline code snippets.
<p>Use the <code>print()</code> function to display output.</p>
  1. <pre>: Preserves white space and renders text exactly as it appears in the HTML code, useful for displaying code blocks or preformatted text.
<pre>
function greet() {
    console.log("Hello, World!");
}
</pre>

These elements can be combined with other HTML elements to format and style text according to your specific requirements. It’s important to use these elements semantically, meaningfully, and in accordance with their intended purposes to maintain accessibility and semantic structure within your web pages.

Join the conversation