Last post Apr 03, 2019 04:01 PM by bruce (sqlwork.com)
Apr 02, 2019 06:38 PM|ddesaraju|LINK
I am using HTML for a while now. I need some clarifications though.
Sorry for multiple questions but am trying to get a conceptual knowledge in these topics.
Apr 03, 2019 05:43 AM|Jenifer Jiang|LINK
You could also put the <script> in the head, but you should add
$( document ).ready() in your script.
For more, you could refer to: https://developer.yahoo.com/performance/rules.html?guccounter=1#css_top
By adding semantic tags to your document, you provide additional information about that document, which aids in communication.
Specifically, semantic tags make it clear to the browser what the meaning of a page and its content is.
For more, you could refer to: https://www.lifewire.com/why-use-semantic-html-3468271
It was realised that if Microsoft just "fixed" the IE rendering engine lots of existing sites would not render properly.
So the way it works is if you put any valid DOCTYPE declaration at all in your page the assumption is that you know what you're doing and your browser will render in a standards compliant way, and if you don't put one in it will render in the old "wrong"
For more, you could refer to:
About the conceptual knowledge of HTML, I suggest you could refer to the following sites to learn:
And you also could search by Chrome to find the answer to your questions.
Besides, I suggest that you could make demos when learning, then if you have issues with your code, you could come to community to ask for help.
Apr 03, 2019 04:01 PM|bruce (sqlwork.com)|LINK
web standards have changed over time. originally script tags and css tags belonged in the <head> because they are not content. CSS like still belong in the head (so its can be applied to html as its rendered), but for faster site loading, the current trend
is to move all scripts to end of the document.
at one time xml was popular, and there was a trend to make website xml friendly, and use xhtml syntax. DOCTYPE define the html as a xhtml document. but this is not all obsolete with html 5. you should just have a <html> tag.
semantics is import when non-humans are reading the document, say search engines, and site indexers. if your site is trying to get a high SEO rating you better be using semantics. you should use the semantic version of div (which is just a block element)
to structure your page.
the page. Often there are contact obligations for a page to be "valid" html. the data-* is a supported method that allows additional attributes to be added to an element and still be valid html.
store and fetch data stored by the browser (local storage). different browser have different local storage options. name/value pairs are the most common, but the webkit browsers (chrome. safari) also support sqlite databases. to make it safe to use local
storage on shared computers (where the storage was only need for one session, the session feature was added. session storage is not saved to disk, and is deleted on browser exit.
when your browser open a new window via an anchor with a target, current browser security allows the new page to access the opener.
<a rel="noopener" target="_blank" href="....">
disables this feature (not supported by IE/edge)