HTML CSS JavaScript

本文阐述了现代网页设计中结构(HTML)、表现(CSS)与行为(JavaScript)三者的分离原则及其重要性,强调了内容独立于样式和交互的设计理念。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 The modern understanding of a web page is that it consists of three distinct parts:

   1. Content (HTML)
   2. Presentation (CSS)
   3. Behavior (JavaScript)

These should be kept separate, ideally each in its own file (or files). What it means for JavaScript is that there should be no inline such as onclick, onmouseover, etc. Ideally there should be little to no inline scripts.

The idea is that content (the text on the page) is independent of:

    * how it looks like, so the page should be usable even with CSS disabled, or not supported by the browser, and
    * how it behaves, meaning the page should be usable even with JavaScript disabled. The content should be accessible independent of any mouseovers, animations, and so on.

 

也就是说:

我们使用js框架将结构(HTML)和行为分离(JS),用css将结构和表现分离

 

其他:

HTTP has two hurdles to address. It is stateless , and it is text based .

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值