This question already has answers here:
How to use HTML5 features with XHTML
(2 answers)
Closed 4 years ago.
I have seen on several occasions that some companies are looking for web developers who know how to program in html5 and xhtml. I wonder why they specify xhtml. I do not know if these languages are used separately or if you can join strengths in the same file.
I'm sorry if my English is not very good and if my question is novice. Thank you
XHTML is an older architecture based on html4, it's possible to keep old applications alive
You can read about this in this link : https://www.w3schools.com/html/html_xhtml.asp
Related
This question already has an answer here:
Consequences of not using a lang attribute in an html5 html tag
(1 answer)
Closed 5 years ago.
I just wanted to ask if the tag is really that important... Do I need to use it if I am developing a website?
Will it affect my code if I don't put it?
It's important for accessibility reasons, not codewise.
It's mainly used for translations "bot".
If you really want it to be perfect, then use <html lang="en-US"> or the appropriate country code for your language (like mine is fr-FRand not fr-CA since there are differencies between those two languagues).
This question already has answers here:
How to prevent your JavaScript code from being stolen, copied, and viewed? [closed]
(10 answers)
Closed 6 years ago.
i want to design my html page such that; if some body wants to copy my source code from browser it should appear as in encoded format.
Is it possible?
Thank you.
There are a lot of people who are afraid of copyright infringement, but as mplungjan said
If you put it on the web, it will be available to look at.
And that, unfortunately for you, is the case for every site from Google to Stack Overflow.
If there are any bad cases of your site being plagiarized you should think of suing.
This question already has answers here:
What are the new frames? [closed]
(3 answers)
Closed 8 years ago.
What is the best way to include html page to another html page? I've tried object and embed tags but no results, don't tell me that this question has been ask because using object or embed tags or even frames or iframes is not a solution!
So is there any way to do that ?
HTML is a document type, It isn't a programming language (PHP, Python, Perl...) or server-side technology (ASP.NET, JSP, Servlet). You can't embed HTML pages to other HTML page.
Use <iframe> tag in HTML. ( tutorial: http://www.w3schools.com/tags/tag_iframe.asp )
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm following a tutorial series on web development. While I already have a basic understanding of HTML and how to use it to structure a page, I'm indulging myself and watching the very beginner tutorials. The funny thing is, in these tutorials the author is using tags like address and cite. When he describes why one should use these tags, he explains it only as "semtantics."
While I feel like these tags may have been more prevalent ten years ago, I never run across anyone using them besides this guy. Given he is professional, I'm now conflicted on whether or not its really necessary to use them. What is the benefit?
According to the current HTML5.1 specification nightly (as modern as it gets):
The address element is valid perfectly fine to use and so is the cite element. While a lot of sites tend to mostly use tags like div and span you can feel safe to use both address and cite .
I think it's good practice that will help you later when you have to read your HTML again to insert changes. It improves accessibility of your document as well as lets parsers other than browsers understand it better.
(Note, address and cite are legal in the old HTML specification too)
The benefit of semantic tags is that they give your html some structure - by using them you are encoding meaning into your html that can be useful in all kinds of areas. Search engines often use semantic tags to assist in ranking pages, to use a simple example. Whilst it might not always seem necessary, it is good to get into the habit of using them wherever possible.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am designing a website which has to reach old and new browsers. With this in mind should I program in HTML5? Currently the website is only in html 5. The question is: Is it stupid in my case to use HTML5, should I use a "switch"(is this even possible) to redirect old browsers?
The question is, what aspects of html5 do you plan to use?
If your website is mostly static html & javascript, no audio and no embedded video, then I would say it use HTML4.
If your not using any tags in html5 dont rush it, no
If you're trying to reach a broad audience, I wouldn't necessarily jump into HTML 5 yet. It's still not supported widely or consistently enough to rely on it. However, there are several resources available if you want to give it a shot.
When Can I Use... should be a big help. It shows which features of HTML 5 are supported in which browsers fairly clearly. It would probably be good to research further about each tag you plan on using. Learn how the major browsers have implemented the tags, and if there's any quirks or bare-bones implementations that might be an obstacle to the average user.
I've heard Modernizr listed as a means of leveraging HTML 5 elements while maintaining backwards support for old browsers. Do note that I can't testify personally to how well it performs, having never used it before.