2 questions 👇 | Sololearn: Learn to code for FREE!

+10

2 questions 👇

1. Is it possible to use xhtml tags in html5? 2. What is better for size of the text? (% or px or vw ...)

3/8/2019 12:22:34 PM

FirstSoloKiller

11 Answers

New Answer

+6

I guess that XHTML is not another version of HTML. It's a convention to write better HTML. The only difference is that you have to follow a strict rule to write XHTML codes. For 2nd question for recommendation is to use px. % will make the text size relative to screen (bigger screen bigger test and vice-versa). No idea about vw. If you want to add responsiveness use media queries instead.of using relative values

+10

Seniru Pasan yes. I was use media queries and px for size of the text. A question: some useful tags example iframe is not in html. What tag can we replace for it?

+8

Seniru Pasan thanks

+6

FirstSoloKiller iframe is still supported in html https://www.w3schools.com/tags/tag_iframe.asp Only the frame element was deprecated. NOTE: Some browsers are not implementing iframe feature

+4

You might find this useful: https://www.sololearn.com/Discuss/1389639/?ref=app

+2

I think that is possible... Why don't you try ?

+1

Stock to html5 as it is the most recent. px are what I use most of the time. However, there are times when I need to create large divs in relation to my screen. Here I find the % handy

+1

1.yes 2.em

0

0

Most commonly text size unit is "rem"

0

Use em instead of px or vw. Good for users with custom fonts and also every benefit of using px…