<ion-header [translucent]="true"> <ion-toolbar> <ion-buttons slot="start"> <ion-back-button defaultHref="home"></ion-back-button> </ion-buttons> <ion-title> User Registration </ion-title> </ion-toolbar> </ion-header> <ion-content [fullscreen]="true"> <form [formGroup]="UserForm" (ngSubmit)="onSubmit(UserForm.value)" style="padding:2%;"> <ion-item no-padding> <ion-label position="floating">FirstName</ion-label> <ion-input type="text" formControlName="FirstName"></ion-input> </ion-item> <ion-label *ngIf="!UserForm.controls.FirstName.valid && (UserForm.controls.FirstName.dirty || submitAttempt)" style="color: #f34e4e; font-size: 13px;margin-left: 13px;">*FirstName is required</ion-label> <ion-item no-padding> <ion-label position="floating">LastName</ion-label> <ion-input type="text" formControlName="LastName"></ion-input> </ion-item> <ion-label *ngIf="!UserForm.controls.LastName.valid && (UserForm.controls.LastName.dirty || submitAttempt)" style="color: #f34e4e; font-size: 13px;margin-left: 13px;">*LastName is required</ion-label> <ion-item no-padding> <ion-label position="floating">CompanyName</ion-label> <ion-input type="text" formControlName="CompanyName"></ion-input> </ion-item> <ion-label *ngIf="!UserForm.controls.CompanyName.valid && (UserForm.controls.CompanyName.dirty || submitAttempt)" style="color: #f34e4e; font-size: 13px;margin-left: 13px;">*CompanyName is required</ion-label> <ion-item no-padding> <ion-label position="floating">CompanyType</ion-label> <ion-input type="text" formControlName="CompanyType"></ion-input> </ion-item> <ion-label *ngIf="!UserForm.controls.CompanyType.valid && (UserForm.controls.CompanyType.dirty || submitAttempt)" style="color: #f34e4e; font-size: 13px;margin-left: 13px;">*CompanyType is required</ion-label> <ion-item no-padding> <ion-label position="floating">MobileNumber</ion-label> <ion-input type="Mobile" formControlName="MobileNumber"></ion-input> </ion-item> <ion-label *ngIf="!UserForm.controls.MobileNumber.valid && (UserForm.controls.MobileNumber.dirty || submitAttempt)" style="color: #f34e4e; font-size: 13px;margin-left: 13px;">*Enter Valid MobileNumber</ion-label> <ion-item no-padding> <ion-label position="floating">Email</ion-label> <ion-input type="Email" formControlName="Email"></ion-input> </ion-item> <ion-label *ngIf="!UserForm.controls.Email.valid && (UserForm.controls.Email.dirty || submitAttempt)" style="color: #f34e4e; font-size: 13px;margin-left: 13px;">*Enter Valid Emailid</ion-label> <ion-item no-padding> <ion-label position="floating">Password</ion-label> <ion-input type="password" formControlName="pwd"></ion-input> </ion-item> <ion-label *ngIf="!UserForm.controls.pwd.valid && (UserForm.controls.pwd.dirty || submitAttempt)" style="color: #f34e4e; font-size: 13px;margin-left: 13px;">*Enter Valid min. 6 character password</ion-label> <ion-item no-padding> <ion-label position="floating">ConfirmPassword</ion-label> <ion-input type="Confirmpassword" formControlName="Confirmpassword"></ion-input> </ion-item> <ion-label *ngIf="!UserForm.controls.Confirmpassword.valid && (UserForm.controls.Confirmpassword.dirty || submitAttempt)" style="color: #f34e4e; font-size: 13px;margin-left: 13px;">*Enter Valid min. 6 character password</ion-label> <ion-button color="primary" expand="block" [disabled]="!UserForm.valid" type="submit" style="margin-top:5%;background-color:#000 !important;border-radius:50px;color:#fff !important;">SUBMIT</ion-button> </form> </ion-content>
Write, Run & Share HTML code online using OneCompiler's HTML online Code editor for free. It's one of the robust, feature-rich online Code editor for HTML language, running on the latest version HTML5. Getting started with the OneCompiler's HTML compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as HTML
. You can also specify the stylesheet information in styles.css
tab and scripts information in scripts.js
tab and start coding.
HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991. Almost every web page over internet might be using HTML.
<!DOCTYPE html>
<html>
and ends with </html>
<h1>
to <h6>
where <h1>
is the highest important heading and <h6>
is the least important sub-heading.<p>..</p>
tag.<a>
tag.
<a href="https://onecompiler.com/html">HTML online compiler</a>
<img>
tag, where src
attribute consists of image name.<button>..</button>
tag<ul>
for unordered/bullet list and <ol>
for ordered/number list, and the list items are defined in <li>
.<a href="https://onecompiler.com/html">HTML online compiler</a>
CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.
Below is a sample style sheet which displays heading in green and in Candara font with padding space of 25px.
body{
padding: 25px;
}
.title {
color: #228B22;
font-family: Candara;
}
<table>
tag.<tr>
tag<th>
tag<td>
tag<caption>
tag<script>
is the tag used to write scripts in HTML<script src="script.js"></script>