All modern browsers support the following 140 color names (click on a color name, or a hex value, to view the color as the background-color along with different text colors): AliceBlue #F0F8FF Color Mixer Color Picker AntiqueWhite
All modern browsers support the following 140 color names (click on a color name, or a hex value, to view the color as the background-color along with different text colors): AliceBlue #F0F8FF Color Mixer Color Picker AntiqueWhite
Color NameColor CodeColor NameColor Code Red #FF0000 White #FFFFFF Cyan #00FFFF Silver #C0C0C0 Blue #0000FF Gray or Grey #808080 DarkBlue #00008B Black #000000 LightBlue #ADD8E6 Orange #FFA500 Purple #800080 Brown #A52A2A Yellow #FFFF00 Maroon #800000 Lime #00FF00 Green #008000 ...
HTML Color Names HTML Blocks Unordered Lists # The<ul>tag creates an unordered list. List items are added with nested<li>tags. Paper Pencils Scissors <ul><li>Paper</li><li>Pencils</li><li>Scissors</li></ul> For details on unordered lists, see ourHTML ul tag reference. ...
Color Name HEX Color Black #000000 Navy #000080 DarkBlue #00008B MediumBlue #0000CD Blue #0000FF DarkGreen #006400 Green #008000 Teal #008080 DarkCyan #008B8B DeepSkyBlue #00BFFF DarkTurquoise #00CED1 MediumSpringGreen #00FA9A Lime #00FF00 SpringGreen #00FF7F Aqua #00FFFF Cyan #00FFFF...
1、placeholder:提示文本 2、autofocus:自动获取焦点 3、autocomplete:自动完成:on 打开,off 关闭。 前提:必须成功提交过;添加 autocomplete 的元素必须有 name 属性。 4、required:必须输入,如果未输入将阻止表单提交 5、pattern:正则表达式验证 代码语言:javascript ...
定义列表(Definition List):用于表示一组术语及其对应的定义或描述,每个术语和对应的定义通常使用和标签进行标记。常见的例子包括词汇表、术语集合等。<dt><dd> 使用列表可以帮助用户更好地理清思路,易于阅读和理解内容。此外,列表还可以通过CSS样式进行美化,增加页面的吸引力和整体性。
水平线元素:<hr>,单标签,有颜色color、长度width、粗细size、对齐align等属性,CSS中可用border设置样式。<br> <hr width="80%" color="green" align="left" size=1 /> <hr width="80%" color="green" /> <hr width="300px" color="red" size="3" />...
Let’s look at an example. Say you want to change a paragraph of text to red. You’d use aCSS selectorto target the paragraph and define the color property with the HTML color name “red.” This seems easy enough, right? However, using HTML color names is not recommended. For one,...
:root{--green:#00FF00;--white:#FFFFFF;--black:#000000; }body{background:var(--bg);color:var(--fontColor);font-family: helvetica; }li{list-style: circle; }.list{list-style: square; }.light-theme{--bg:var(--green);--fontColor:var(--black); }.dark-theme{--bg:var(--black...