Author: Awais Farooq
-
CSS IDs
HTML “id” is an attribute used to uniquely identify an element within a web page. It serves as a label for that element and enables JavaScript and CSS to target it specifically. This identification helps in applying custom styles, making interactive features, and navigating within the webpage with precision. “id” values must be unique within…
-
CSS Classes
In HTML, a class is an attribute that can be applied to one or more elements and is used to style and categorize elements based on common characteristics or purpose. Classes allows multiple elements to share the same styling rules. By assigning the same class to multiple elements, you can apply CSS styles or JavaScript functionality to…
-
Style Sheet
CSS, or Cascading Style Sheets, is a tool that defines how web documents look on screens or in print. Since its introduction in 1994, the W3C has encouraged the use of style sheets for web design. CSS lets you control the presentation of your content, whether it’s on a screen, in print, or for accessibility, making…
-
Meta Tags
HTML lets you specify metadata, which is additional important information about a document, in a variety of ways. The META elements can be used to include name/value pairs describing properties of the HTML document, such as author, expiry date, a list of keywords, document author etc. The <meta> tag is used to provide this extra…
-
Phrase Tags
The phrase tags have been designed for specific purposes, though they are displayed in a similar way as other basic tags like <b>, <i>, <pre>, and <tt>, as you have seen in the previous chapter. This chapter will take you through all the important phrase tags, so let’s start seeing them one by one. Emphasized Text Content that is…
-
Comments
A comment in HTML is like a note for yourself and others reading your code. It is a good practice to add comments into your HTML code, especially in complex documents, to indicate sections of a document, and any other notes to anyone looking at the code. Comments are completely ignored by web browsers, so…
-
Quotations
Quotations in HTML allow you to include and format quoted text within your web content. HTML provides tags such as <blockquote>, <q>, <cite>, <address>, <bdo> and <abbr> to structure and style quotes. These tags help maintain proper formatting and semantics, enhancing the presentation and meaning of quoted content on web pages. Incorporating quotes is essential…
-
Paragraphs
In HTML, a paragraph is a block-level element used to structure and format text content on a webpage. A paragraph is basically a collection of words and punctuations together. It allows developers to organize and present textual information in a coherent and readable manner. Paragraphs typically create space above and below the text, separating it…
-
Headings
HTML headings are used to define the hierarchy (levels) and structure of content on a web page. They create a visual hierarchy, with the highest level heading which is h1 indicating the most important content or the main heading, and lower-level headings like h2, h3, h4, etc. for subtopics. Headings are crucial for structuring content…
-
Formatting
If you use a word processor, you must be familiar with the ability to make text bold, italicized, or underlined; these are just three of the ten options available to indicate how text can appear in HTML and XHTML. Bold Text Any content enclosed within <b>…</b> element, is displayed in bold as shown in the example below…