What is the best way to italicize something in html?
Jul.19, 2008 in
Other
Henry J asked:
I have heard many older html tags are being deprecated. So what is the best way to italicize something?
CSS is now the thing to use but it seems cumbersome to italize just one word inside a sentence.
Please show the code to italicize this sentence.
I like super chocolate chip cookies. (super is the word to italicize).
would it be this? –
I like super chocolate chip cookies.
or is there a better way to do this?
Custom Search
July 23rd, 2008 at 5:03 pm
The way you did it should work fine, although you don’t necessarily need the and .
July 26th, 2008 at 6:01 am
I like super chocolate chip cookies.
That is the way to do it but I still think you should use CSS for that.
Using HTML to style text is very old school and considered to be sloppy work.
July 29th, 2008 at 1:38 am
There is a lot of hype about doing everything from style sheets, but it is totally pointless setting up a style in css, then declaring that style for one word, or even just one sentence in a whole web site. I prefer to create styles for anything used repeatedly in the site, as it allows changing every instance with one edit. This is useful even if it is only one or two words each time. Otherwise I always use in line italic or similar.
July 30th, 2008 at 3:04 am
the tag works, and I have faith that it will be supported in browsers for many years to come, but the ‘correct’ way to italicize something these days (If you’re NOT using css,) is using the tag.
This also goes for the ‘old’ tag. To make something bold, use