全部科目 > 程序员 >
2021年上半年 上午试卷 综合知识
第 70 题
知识点 程序设计语言的基本成分   HTML   文本  
关键词 加粗  
章/节 软件基础知识  
 
 
HTML中,要对文本进行加粗显示,应使用( )标记对。
 
  A.  <a></a>
 
  B.  <b ></b>
 
  C.  <c></c>
 
  D.  <d></d>




 
 
相关试题     软件基础知识 

  第34题    2017年下半年  
将源程序中多处使用的同一个常数定义为常量并命名,( )。

  第25题    2012年下半年  
某企业有生产部和销售部,生产部负责生产产品并送入仓库,销售部从仓库取产品销售。假设仓库可存放n件产品。用PV操作实现他们之间的同步过程如下图所示。
<..

  第41题    2024年上半年  
在计算机系统中,构成虚拟存储器(22)。

 
知识点讲解
· 程序设计语言的基本成分
· HTML
· 文本
 
        程序设计语言的基本成分
        程序设计语言的基本成分包括数据、运算、控制和传输等。
               程序设计语言的数据成分
               程序设计语言包括语法、语义、语用三个方面。语法表示程序的结构,即表示构成语言的各记号间的组合规则;语义表示程序的含义,即表示按照各种方法所使用的各个记号的特定含义;语用表示程序与使用者的关系。
               程序设计语言的数据成分指的是一种程序设计语言的数据类型。数据是程序操作的对象,具有存储类、类型、名称、作用域和生存期等属性,使用时要为它分配内存空间。数据名称由用户通过标识符命名,标识符是由字母、数字和下画线组成;类型说明数据占用内存的大小和存放形式;存储类说明数据在内存中的位置和生存期;作用域则说明可以使用数据的代码范围;生存期说明数据占用内存的时间范围。从不同角度可将数据进行不同的划分。
               1)常量和变量
               按照程序运行时数据的值能否改变,数据分为常量和变量。程序中的数据对象可以具有左值和右值。左值指存储单元(或地址、容器),右值是指值(或内容)。变量具有左值和右值,在程序运行的过程中其右值可以改变;常量只有右值,在程序运行的过程中其右值不能改变。
               2)全局量和局部量
               按数据的作用域范围,数据可分为全局变量和局部变量。系统为全局变量分配的存储空间在程序运行的过程中一般是不改变的,而为局部变量分配的存储单元在程序运行的过程中是动态改变的。
               3)数据类型
               按照数据组织形式的不同可将数据分为基本类型、用户定义类型、构造类型及其他类型。
               程序设计语言的运算成分
               程序设计语言的运算成分指明允许使用的运算符及运算规则。大多数高级程序设计语言的基本运算可以分成算术运算、关系运算和逻辑运算等,有些语言如C(C++)还提供位运算。运算符号的使用与数据类型密切相关。为了确保运算结果的唯一性,运算符号要规定优先级和结合性,必要时还要使用圆括号。
               程序设计语言的控制成分
               控制成分指明语言允许表述的控制结构,程序员使用控制成分来构造程序中的控制逻辑。理论上已经证明,可计算问题的程序都可以用顺序、选择和重复这三种控制结构来描述。
               程序设计语言的传输成分
               程序设计语言的传输成分指明语言允许的数据传输方式,如数据的输入和输出等。
 
        HTML
        HTML即超文本标记语言(Hypertext Markup Language),是用于描述网页文档的一种标记语言。HTML是组织多媒体文档的重要语言,它不仅可以用来编写Web网页,还可以用来制作光盘上的多媒体节目。HTML可以用来编排文档、创建列表、建立链接、插入声音和视频。
        ①HTML简介。
        万维网(Web)是一个信息资源网络,它之所以能够使这些信息资源为广大用户所利用,主要依靠以下三个基本技术。
        . 指定网上信息资源地址的统一命名方法:URL(Uniform Resource Locator)。
        . 存取资源的协议:超文本传送协议(Hypertext Transfer Protocol, HTTP)。
        . 在资源之间很容易浏览的超文本链接技术:源于HyperText的HyperLink。
        为了出版可在全球发行的信息,人们需要一种所有计算机都能理解的出版语言,这就是HTML语言。HTML可用于以下方面。
        . 出版联网文档,这种文档包含标题、文字、表格、列表、图像以及声音和视频文件等。
        . 通过超文本链接可以检索和阅读联网信息。
        . 设计交易单(FORM/form)。这是一种用来从读者处收集信息的Web文档,可以与远程服务单位进行交易,例如查找信息以预约旅馆的房间、订购产品等。多数交易单至少有一个可供输入文本数据(例如名字或者搜索关键字)的文本域。很多较为精致复杂的表单还包括用于切换选项的复选框、从几个选项中选择其一的单选按钮和执行任务(例如提交表单)的按钮。
        ②HTML的基本概念。
        一个HTML文档通常由文档头(head)、文档名称(title)、表格(table)、段落(paragraph)和列表((list)等成分构成,它们是文本文档的基本构件,并且使用HTML规定的标签(tag)标识这些元素。
        HTML标签由三部分组成:左尖括号(<)、“标签名称”和右尖括号(>)。标签通常是成对出现的,左尖括号表示开始的开始标签(start tag),右尖括号表示结束的结束标签(end tag)。例如,

分别表示一级标题的开始标签和结束标签,H1是一级标签的名称。除了在结束标签名称前面加一个斜杠符号(/)之外,开始标签的名称和结束标签的名称都是相同的。
        某些元素还可以包含属性(attribute)。属性指背景颜色、字体属性(大小、颜色、正体、斜体等)、对齐方式等,它是包含在开始标签中的附加信息。例如,

表示这段文字是居中对齐的。同样可以指定图像的对齐属性(如图像在顶部、底部或中间)。

        注意,HTML标签名称中的字母不区分大小写。例如,与<TITLE>或者<TiTlE>都是等效的。此外,Web浏览器不一定支持所有HTML标签。如果一个浏览器遇到它不认识的标签,那么它就不予理睬,但在这对标签之间的文本仍然会显示在计算机屏幕上。 </span> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td align="center" valign="" bgcolor="" width="100%" style=" " > <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr > <td height=""> <table width="100%" border="0" bgcolor="" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="bottom" width="100%" height="28"> <span class="word_content_v2">        ③HTML文档的结构。 </span> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td align="center" valign="" bgcolor="" width="100%" style=" " > <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr > <td height=""> <table width="100%" border="0" bgcolor="" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="bottom" width="100%" height="28"> <span class="word_content_v2">        HTML文挡是一种没有格式的文档,也称ASCII文件。因此,HTML文档可以使用任何一种文本编辑器进行编写。例如,Windows系统中的记事本(Notepad)、写字板(Wordpad),当然也可以使用字处理软件,例如微软公司的Word等。 </span> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td align="center" valign="" bgcolor="" width="100%" style=" " > <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr > <td height=""> <table width="100%" border="0" bgcolor="" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="bottom" width="100%" height="28"> <span class="word_content_v2">        每个HTML文档都是由标签<HTML>开始、以标签</HTML>结束的。每个HTML文档都分成两个组成部分:文档头(head)和正文(body),并分别用<HEAD>…</HEAD>和<BODY>…</BODY>进行标记。文档头标签<HEAD>…</HEAD>之间所包含的内容是文档的名称(title)。 </span> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td align="center" valign="" bgcolor="" width="100%" style=" " > <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr > <td height=""> <table width="100%" border="0" bgcolor="" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="bottom" width="100%" height="28"> <span class="word_content_v2">        下图是利用记事本编写的一个简单的HTML示例代码,将其保存后,利用IE浏览器打开后的效果如下图所示。 </span> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td align="center" valign="" bgcolor="" width="100%" style=" " > <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr > <td height=""> <table width="100%" border="0" bgcolor="" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="bottom" width="100%" height="28"> <span class="word_content_v2">        <a href="https://www.rkpass.cn/ruankao_work_version_0103/content_image/9/9787302532279_0063_0037.jpg" target="_blank"><img alt="" width="205.53" height="84.89" src="https://www.rkpass.cn/ruankao_work_version_0103/content_image/9/9787302532279_0063_0037.jpg" /></a> </span> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td align="center" valign="" bgcolor="" width="100%" style=" " > <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr > <td height=""> <table width="100%" border="0" bgcolor="" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="bottom" width="100%" height="28"> <span class="word_content_v2">        HTML的编辑及效果图 </span> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td width="100%" align="center" colspan="" height="30" bgcolor=""></td> </tr> </table> <!--一个完整知识点的区域 结束--> </td> </tr> </table> <table width="100%" border="0" bgcolor="#ffffff" align="center" cellpadding="0" cellspacing="0" > <tr> <td width="100%" height="13" bgcolor="#f8f8f8" align="center"><span id="mao_zsd_202102091159029044394"> </span> </td> </tr> <tr> <td width="100%" align="center"> <!--一个完整知识点的区域 开始--> <table width="100%" border="0" bgcolor="" align="center" cellpadding="0" cellspacing="0" > <tr> <td width="100%" align="center" colspan="" height="" bgcolor=""> <table width="100%" border="0" bgcolor="" align="center" cellpadding="0" cellspacing="0" style=" BACKGROUND: #ffffff; RIGHT: 0px; TOP: 0px; left: 0px;POSITION: relative; HEIGHT: 32px;" > <tr> <td width="100%" align="left" colspan="2" height="30"></td> </tr> <tr> <td width="100%" colspan="2" align="left" valign="top"> <table width="100%" border="0" bgcolor="" align="left" cellpadding="0" cellspacing="0" > <tr> <td align="center" valign="" width="100%"> <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="search_kemu"> <tr> <td align="center" valign="" bgcolor="" width="100%" style=" " > <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr > <td height=""> <table width="100%" border="0" bgcolor="" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="" width="100%" height="6"> <span class="word_title_v2_blue">        文本</span> </td> </tr> <tr> <td align="left" valign="" width="100%" height="10"></td> </tr> <tr> <td align="left" valign="" width="100%" height="1" bgcolor="#e4e4e4"></td> </tr> <tr> <td align="left" valign="" width="100%" height="6"></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td align="center" valign="" bgcolor="" width="100%" style=" " > <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr > <td height=""> <table width="100%" border="0" bgcolor="" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="bottom" width="100%" height="28"> <span class="word_content_v2">        文本指各种字符,包括数字、字母和文字等。文本可以先在Word文字处理软件中编辑制作,然后导入集成到多媒体系统中,也可以直接在图形/图像设计软件中编辑制作。 </span> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td width="100%" align="center" colspan="" height="30" bgcolor=""></td> </tr> </table> <!--一个完整知识点的区域 结束--> </td> </tr> </table> <table width="100%" border="0" bgcolor="#f8f8f8" align="center" cellpadding="0" cellspacing="0" > <tr> <td width="100%" height="13" bgcolor="#f8f8f8" align="center"> </td> </tr> </table> <script type="text/javascript" src="https://www.rkpass.cn/ad/ad_i_350_60.jsp?from=i_timu_pc"></script> <table width="100%" border="0" bgcolor="#f8f8f8" align="center" cellpadding="0" cellspacing="0" > <tr> <td width="100%" height="13" bgcolor="#f8f8f8" align="center"> </td> </tr> </table> <script type="text/javascript" src="https://www.rkpass.cn/ad/ad_i_zishiying_zhengfangxing.jsp?from=i_timu"></script> <!--知识点区域结束--> <br> <br> </td> </tr> </table> <script type="text/javascript" src="../tk_tishi_unsubscribe.jsp"></script> <!--任何页面都有foot_x--> <!-- <script type="text/javascript"> /*移动-方块*/ var cpro_id = "u2014899"; </script> <script src="http://cpro.baidustatic.com/cpro/ui/cm.js" type="text/javascript"></script> --> <table width="100%" border="0" align="center" cellpadding="0" bgcolor="#f1f1f1" cellspacing="0" > <tr> <td width="100%" align="left" colspan="2" height="1" bgcolor="#e0e0e0"></td> </tr> <tr align="center"> <td width="100%" align="center" valign="middle"> <br> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" > <tr align="center" > <td align="center" > 更多复习资料<br>请登录电脑版软考在线 www.rkpass.cn <br><br> <span class="hui_xiao">京B2-20210865</span> <span class="hui_xiao">|</span> <span class="hui_xiao">京ICP备2020040059号-5</span> <br> <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010502032051" ><img src="https://www.rkpass.cn/image/gongan.png" width="20" height="20" border="0"/><span class="hui_xiao">京公网安备 11010502032051号</span></a> <span class="hui">|</span> <a href="https://www.rkpass.cn/image/yyzz.jpg" target="_blank"><span class="hui">营业执照</span></a> <br> <span class="hui_xiao"> Copyright ©2000-2025 All Rights Reserved <br>软考在线版权所有</span> </td> </tr> </table> </td> </tr> </table> <!--任何页面都有foot_y--> <table width="100%" border="0" align="center" cellpadding="0" bgcolor="#f1f1f1" cellspacing="0" > <tr align="center"> <td width="100%" align="center" valign="middle"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" > <tr align="center" > <td align="center" > <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?f7e4c3c7e4d92abbcc231d25f16df4c3"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <!-- <script src="http://s25.cnzz.com/stat.php?id=5504760&web_id=5504760" language="JavaScript"></script> --> </td> </tr> </table> <br> </td> </tr> </table> </body> </html>