JS, CSS style reference writing

Time:2021-6-12

CSS:
1.

The relative server path of asp.net
<link type=”text/css” href=”/css/css.css” rel=”stylesheet”/>
2.
<style type=”text/css”>
  .txtClass {
  font-size: 12px;
  }
</syle>
JS: tags cannot be abbreviated, they must be < script > < / script >
1.
< script type = “text / JavaScript” SRC = <% = resolveurl (“~ / JS / jquery-1.4.2. Mini. JS”)% > “> < / script > asp.net relative server path
<script type=”text/javascript” src=”/js/jquery-1.4.2.mini.js” ></script>

2.
<script language=”javascript” type=”text/javascript”>
function check_up_message(text)
{
}
</script>