Print Page | Close Window

h1 with class

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=31742
Printed Date: 28 March 2024 at 9:30pm
Software Version: Web Wiz Forums 12.07 - https://www.webwizforums.com


Topic: h1 with class
Posted By: Roberto Randall
Subject: h1 with class
Date Posted: 11 May 2022 at 3:09pm
I am looking for a way to create a button to insert into a text "<h1 class="myclass">xxxx<h1>.

The forum only has to put "<h1>", but I want to create a style so that my users can also have a different format.

I know it's done with JavaScript, but I can't find a way to do it.

Does anyone know how it can be done?

Thank you,

-------------
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat



Replies:
Posted By: WebWiz-Bruce
Date Posted: 12 May 2022 at 12:25pm
This is not done with JavaScript but with CSS, see below;

https://www.w3schools.com/tags/tag_hn.asp" rel="nofollow - https://www.w3schools.com/tags/tag_hn.asp


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Roberto Randall
Date Posted: 12 May 2022 at 3:35pm
So that's why I didn't get anything.

In css yes I know. The nice thing was to have a button that did like the bold button but put h1 with class.

Thank you.

-------------
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.07 - https://www.webwizforums.com
Copyright ©2001-2024 Web Wiz Ltd. - https://www.webwiz.net