How to make text underlined in HTML
How to make text underlined in HTML problem You wish to make some text appear in underlined format. In this post we will see how to do that using HTML tags. SOLUTION We can use the Underline tag <u>. It has an opening and a closing tag for us to enclose the text we wish […]
How to make text Italic in HTML
How to make text Italic in HTML problem You’re learning HTML and wish to format some text into Italic. In this post we will see two ways to do this. SOLUTION 1 Using the Italic <i> tag. This tag has an opening and a closing tag. For example, if we want to make a line […]
How to make text bold in HTML
How to make text bold in HTML problem You’re learning how to create webpages with HTML and wish to add some bold formatting on the text appearing on the screen. In this post we will see two ways to accomplish this. SOLUTION Using the <b> tag. Let’s say we have a line of text and […]
How to add a list in HTML
How to add a list in html problem You’re learning HTML and wish to place some information on your webpage as a list, either bullet point or numbered list. In this post we will see how to do that. SOLUTION Using the <ul> tag or the <ol> tag. Both of the tags have opening and […]
How to add a text field in HTML
How to add a text field in HTML problem You’re learning HTML and wish to add a text field/ text box on your web page so the user can type some text inside e.g. the name of a place. In this post we will see how to add one. SOLUTION Using the <input> tag. With […]
How to add a video in HTML
How to add a video in HTML problem You’re learning HTML and wish to place a video item on your page. In this post we will see how to load and play a video from a local video file and remotely via a URL. SOLUTION Using the <video> tag. It has an opening and closing […]
How to add a horizontal line in HTML
How to add a horizontal line in HTML problem You’re learning HTML and wish to add a horizontal line in your page. SOLUTION Using the <hr> tag. The thematic break (horizontal rule) element. For example we have two paragraphs of text and we wish to place a line between them. hr.html First paragraph Second paragraph […]
How to add an image into an HTML page
How to add an image into an html file problem You’re learning HTML and wish to add an image into your page. In this post we will see how to use the <img> tag to load an image that is stored locally and also from a remote source. SOLUTION Using the <img> tag. Let’s suppose […]
How to create a table in HTML
How to create a table in HTML problem You wish to add a table in your HTML page. This post shows how to create a simple table with couple of rows and columns. SOLUTION In HTML, we can use the <table> tag to specify an element that will be table. Tables are usually for tabular […]
html add action on click of a button
html add action on click of a button Problem You are designing a webpage and wish to place a button that does something when you click it. This post we will use a simple HTML code that has a button and when you click it shows a hello popup. Solution A simple HTML page with […]