Found 609 Articles for Front End Scripts

How to set text font family in HTML?

Samual Sam
Updated on 31-Oct-2023 03:43:24

22K+ Views

To change the text font family in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML tag, with the CSS property font-family. HTML5 do not support the tag, so the CSS style is used to add font size.Just keep in mind, the usage of style attribute overrides any style set globally. It will override any style set in the HTML tag or external style sheet.ExampleYou can try to run the following code to change the text font family in an HTML pageLive Demo ... Read More

How to change text font in HTML?

Sai Subramanyam
Updated on 06-Sep-2023 14:02:36

40K+ Views

To change the text font in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML tag, with the CSS property font-family, font-size, font-style, etc.HTML5 do not support the tag, so the CSS style is used to change font. The tag deprecated in HTML5.Just keep in mind, the usage of style attribute overrides any style set globally. It will override any style set in the HTML tag or external style sheet.ExampleYou can try to run the following code to change the font in HTMLLive ... Read More

How to set src to the img tag in HTML from another domain?

Akshaya Akki
Updated on 09-Jan-2020 08:54:02

2K+ Views

To use an image on a webpage, use the tag. The tag allows you to add image source, alt, width, height, etc. The src is to add the image URL. The alt is the alternate text attribute, which is text that is visible when the image fails to load. With HTML, add the image source as another domain URL. For that, add the src attribute as a link to another domain.The following are the attributes:Sr.No.Attribute & Description1altThe alternate text for the image2heightThe height of the image3ismapThe image as a server-side image-map4longdescThe URL to a detailed description of an image5srcThe ... Read More

How to make text italic in HTML?

Lakshmi Srinivas
Updated on 09-Jan-2020 08:31:12

16K+ Views

To make text italic in HTML, use the … tag or … tag. Both the tags have the same functioning, but tag is a phrase tag, which renders as emphasized text.Just keep in mind that you can get the same result in HTML with CSS font-style property.ExampleYou can try to run the following code to make text italic in HTML using … tagLive Demo           HTML italic text               Products                Our products: Online HTML Editor and Online Image Editor. ... Read More

How to make text bold in HTML?

Monica Mona
Updated on 06-Sep-2023 14:16:19

37K+ Views

To make text bold in HTML, use the … tag or … tag. Both the tags have the same functioning, but tag adds semantic strong importance to the text. The tag is a physical markup element, but do not add semantic importance.Just keep in mind that you can get the same result in HTML with CSS font-weight property.ExampleYou can try to run the following code to make text bold in HTML using … tagLive Demo           HTML text bold               Our Products       Developed ... Read More

How to set src to the img tag in html from the system drive?

Manikanth Mani
Updated on 09-Jan-2020 08:42:43

18K+ Views

To use an image on a webpage, use the tag. The tag allows you to add image source, alt, width, height, etc. The src is to add the image URL. The alt is the alternate text attribute, which is text that is visible when the image fails to load.With HTML, add the image source as the path of your system drive. For that, add the src attribute as a link to the path of system drive where the image is stored. For example, file:/D:/images/logo.pngThe following are the attributes:Sr.No.Attribute & Description1AltThe alternate text for the image2HeightThe height of the image3IsmapThe ... Read More

How to change font size in HTML?

Syed Javed
Updated on 31-Aug-2023 02:03:07

115K+ Views

To change the font size in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML tag, with the CSS property font-size. HTML5 do not support the tag, so the CSS style is used to add font size.Just keep in mind, the usage of style attribute overrides any style set globally. It will override any style set in the HTML tag or external style sheet.ExampleYou can try to run the following code to change the font size in an HTML page, Live Demo     ... Read More

How to create a link to send email with a subject in HTML?

Ayyan
Updated on 09-Jan-2020 06:49:01

18K+ Views

To create a link to send email, use tag, with href attribute. The mail to link is added inside the tag. To add a subject, you need to add ? and then include the subject. All this comes inside the tag.Just keep in mind to add the email address where you want to receive the email in the mail to link. Also, the spaces between words for the subject shouldn’t be space, instead include %20. This is to ensure the browser displays the text properly.ExampleYou can try to run the following code to create a link to ... Read More

What is the difference between HTML tags <div> and <span>?

Bhanu Priya
Updated on 04-Oct-2023 16:21:13

2K+ Views

We can use both DIV and SPAN tags as a Container, as they both have their own specialty. Both are HTML5 tags. First let us discuss about DIV Tag in detail with examples. DIV TAG DIV helps in separating the data like text, images, navigation bar etc., we can also create particular sections by using the DIV tag, it consists of open and close tags , both open and close tags are compulsory if we want to divide the page. DIV tags can be styled with CSS or manipulated with JavaScript, it is easily styled by using the class ... Read More

Advertisements