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: 30 January 2023 at 1:24am
Software Version: Web Wiz Forums 12.05 - http://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


-------------
http://www.facebook.com/WebWiz" rel="nofollow - Find Web Wiz on Facebook
http://twitter.com/WebWizUK" rel="nofollow - Follow Web Wiz on Twitter


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.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net