-
Notifications
You must be signed in to change notification settings - Fork 1
Editing web pages (Under Construction
Inside of the .razor files in the Pages folder, the text is marked up with various HTML tags. The tags look like this:
<p>Hello World, leave me alone.</p>
HTML tags tell the web browser how text should be displayed on a page and where it goes.
The markup for the Code for the Carolina's web pages is typically set up this way:
-
<h1></h1>
= The main header for a page, typically its title (only one set of these tags should be used on each page) -
<h2></h2>
= Subheadings -
<p></p>
= Regular paragraphs and body text
If you want to create new subheadings, type a set of <h2>
tags and type between the opening and closing tag. If you want to add a new paragraph to a page, type a set of <p>
tags and type between the opening and closing tag.
If you want to edit text on any of our web pages, simply find the text you want to edit between a set of these tags and then change the text the way you would a normal Word document (just with tags at the start and end of your paragraphs and headings).
As Code for the Carolinas takes on new projects, new web pages will inevitably be required.
To streamline adding new pages to the site, a file named "Boilerplate.razor" had been added to the Pages file that already has many of the basic elements you will need. All you need to do is copy and paste "Boilerplate.razor", rename the copy, then go to where the file says @page "/placeNameHere"
and replace placeNameHere
with what you want the page to be called.