How-to Articles – Popular HTML Questions in C# Examples
Welcome to the “How-to Articles” chapter. The articles in this chapter answer popular questions about how to work with HTML files. In addition, the articles contain C# examples that provide the necessary information about using the Aspose.HTML for .NET library to solve specific tasks.
This section is in progress and currently, the following topics are available:
- How to Change Text Color? – In this article, you will learn how to change color for text in paragraph, headers, etc. using Aspose.HTML for .NET.
- How to Change Background Color? – In this article, you will explore how to change background color for text in paragraphs, headers, or entire pages using Aspose.HTML for .NET.
- How to Change Border Color? – This article gives you information and C# examples on how to add or change border color for your text in HTML file. Here you learn different ways to make your HTML texts look good.
- How to Add Image to HTML? – In the article, you will learn how to insert an image in HTML using Aspose.HTML for .NET library.
- How to Add Alt Text to Images? – In the article, you will learn how to add alt text to images in HTML using Aspose.HTML for .NET. Automate detection of missing
altattributes, improve accessibility, and boost SEO with best practices and C# examples. - How to Resize Document? – In the article, you will learn how to resize HTML documents by setting rendering options when converting to PDF, XPS, DOCX, and image formats.
- How to Use CSS Selector? – In this article, discover how to effectively apply selectors to select the elements you want to style. QuerySelector() and QuerySelectorAll() are methods that are used to query DOM elements that match a CSS selector. You can select elements by class, id or name, or any complex CSS selector.
- How to Use XPath Query in HTML? – This article introduces how to use Evaluate() method to navigate through an HTML document and select nodes by various criteria. You will learn, with C# examples, how to select all Nodes with specified Name using XPath query.
- How To Use XPath To Select XML Nodes? – You will learn how to navigate through an XML document and select nodes using XPath. The article considers a С# example of selecting the required information from an XML file using XPath queries.
- How to Set Font Folder? – In this article, you will learn how to set font folder for HTML to PDF/Image rendering using the Aspose.HTML for .NET library. You get a step-by-step guide on setting a custom font folder and using it to access the necessary fonts, thus allowing you to create professional-looking documents.
- How to Serialize Input Value? – This article describes how to serialize input values in HTML forms or input fields using the Aspose.HTML for .NET library.
- How to Check if HTML Text Content is Empty? – This article provides a step-by-step solution to automate HTML content checks to identify empty HTML elements.
- How to Save a Webpage as a PDF? – This article explains how to load a web page from a URL and save it as a PDF using just a few lines of C# code.
- How to convert pixels to inches? – In the article, you will learn how to convert pixels to inches in C# using Aspose.HTML for .NET. Step-by-step example with explanation and accurate unit conversion.
Aspose.HTML offers free HTML Web Applications that are an online collection of converters, mergers, SEO tools, HTML code generators, URL tools, and more. The applications work on any operating system with a web browser and do not require any additional software installation. It’s a fast and easy way to efficiently and effectively solve your HTML-related tasks.
