In this shot, we'll create an HTML element with a visual non-editable prefix.
In the example below, we'll create an HTML element with a visual and non-editable prefix country code
. And an input element that will accept the phone number. Let's look at the code below:
In the HTML tab,
form
element.div
with class = "content"
.span
element with class = "prefix"
.input
element of type tel
.In the CSS tab,
The output shows an HTML element with a visual non-editable prefix (country code
) and an input element that accepts the phone number.