answersLogoWhite

0

How do you highlight words using HTML?

Updated: 8/11/2023
User Avatar

Fwhorsegirl

Lvl 1
14y ago

Best Answer

text

for example:

this text would have a yellow background

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

You can only underline text in basic HTML. Using CSS, you can add padding and a border. [div style="padding:3px;border:1px solid black"]Hello world![/div] -- replacing [ with < and ] with >, the previous code would create a 1px black border around the words "Hello world!" with a 3px space between the border and the text.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

There are two ways to italicize text in a web document.

The first involves using an HTML 4/5 element that is specifically designed to italicize text. That element is . To use the italics element in text, you simply surround your text with and . For instance

This paragraph is really short.

Would render in the browser looking something like

This paragraph is really short.

You can similarly use (the emphasis tag) for effect like this. However, italicizing emphasized text is a generally accepted browser behavior, and cannot be relied on.

On the modern web we seek to separate structure from presentation. Making text italic isn't really a structural function. Instead, we should surround the text with a structural tag, and use CSS to make the text italic.

This paragraph is also really short.

Then we'd apply a CSS rule to the span tag like so:

span { font-style: italic; }

Those two things together would give us a rendering similar to

This paragraph is also really short.

It's worthwhile to note that in most cases, using the tags around text you want to italicize is correct. (In both of these examples, the italics are being used to emphasize the text.) But when you are using italics for another reason, for instance the title of a book, then you wouldn't want to use the tag. Strictly speaking, a books title is not in italics for emphasis.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

Type the following into the template. Remember to replace CONTENT with the content you want italicized.

<i>CONTENT</i>

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you highlight words using HTML?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you change HTML attribute using HTML dom?

You can change HTML attributes easily. Using Dom that can be done using JavaScript.


How do you remove ActiveX from HTML code?

Not sure what you are trying to do or what kind of ActiveX calls you have in your HTML code. However, the easiest way to remove anything from an HTML document is to highlight what you do not want and press the delete key.


Why are there quotes around words in sentences?

It shows that somebody's talking. In addition, you can highlight a word or words by using double quotes if you were defining or explaining the term(s).


How do you make a personal bio data using HTML?

bio data using html


How do highlight words on the iPhone 4?

switch over the htc and then u'll be able to highlight it


How do you hide the text in HTML document?

Simply highlight the text, and press ctrl 9 (On a Mac, command 9)


Benefits of using HTML?

The main benefit of using HTML is its easy syntax. The tags are very powerful to use.


What has the author Tom Savola written?

Tom Savola has written: 'Using HTML' -- subject(s): Hypertext systems, HTML (Document markup language) 'Using HTML'


How do you code a flv to play in my HTML website?

You simply import the video into HTML. You would do this on the HTML side using your HTML editor such as dreamweaver.


Coding for creating HTML editor using java applet?

&lt;html&gt; &lt;body&gt; java applets&lt;/body&gt;&lt;/html&gt;


How to create thumbnail images using HTML and css?

Thumbnail images can be made using HTML and CSS. HTML will import the image and CSS would give the thumbnail style.


What is navigation in HTML?

navigation in HTML means the user movement around a website using links, by inserting links into your HTML code as below, you give the user the ability to move from one page to another, &lt;a href="page1.HTML"&gt;go to page 1&lt;/a&gt; this will show as a link like: go to page 1 when you click on it you will go to: page1.HTML You can also add links using images like so, &lt;a href="page1.HTML"&gt;&lt;img src="imagename.jpg" /&gt;&lt;/a&gt; this will show imagename.jpg and when clicked on you will go to: page1.HTML