You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: challenges/01-responsive-web-design/basic-html-and-html5.json
+27-29Lines changed: 27 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,13 @@
37
37
"<hr>",
38
38
"To pass the test on this challenge, change your <code>h1</code> element's text to say \"Hello World\"."
39
39
],
40
-
"challengeSeed": ["<h1>Hello</h1>"],
40
+
"challengeSeed": [
41
+
"<h1>Hello</h1>"
42
+
],
41
43
"tests": [
42
44
{
43
-
"text":
44
-
"Your <code>h1</code> element should have the text \"Hello World\".",
45
-
"testString":
46
-
"assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your <code>h1</code> element should have the text \"Hello World\".');"
45
+
"text": "Your <code>h1</code> element should have the text \"Hello World\".",
46
+
"testString": "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your <code>h1</code> element should have the text \"Hello World\".');"
47
47
}
48
48
],
49
49
"type": "waypoint",
@@ -130,7 +130,9 @@
130
130
"<hr>",
131
131
"Add an <code>h2</code> tag that says \"CatPhotoApp\" to create a second HTML <code>element</code> below your \"Hello World\" <code>h1</code> element."
132
132
],
133
-
"challengeSeed": ["<h1>Hello World</h1>"],
133
+
"challengeSeed": [
134
+
"<h1>Hello World</h1>"
135
+
],
134
136
"tests": [
135
137
"assert(($(\"h2\").length > 0), 'message: Create an <code>h2</code> element.');",
136
138
"assert(code.match(/<\\/h2>/g) && code.match(/<\\/h2>/g).length === code.match(/<h2>/g).length, 'message: Make sure your <code>h2</code> element has a closing tag.');",
@@ -195,7 +197,10 @@
195
197
"<hr>",
196
198
"Create a <code>p</code> element below your <code>h2</code> element, and give it the text \"Hello Paragraph\"."
"Crie links para seções internas de uma página com elementos âncora",
773
+
"title": "Crie links para seções internas de uma página com elementos âncora",
771
774
"description": [
772
775
"Além de criar links externos, elementos âncora também podem ser usados para criar links internos, que são links que pulam para diferentes seções dentro de uma mesma página.",
773
776
"O formato é parecido com um link externo, só que, ao invés de uma URL no atributo <code>href</code>, você usa o símbolo <code>#</code> e uma palavra para descrever a seção para a qual você quer pular.",
"Используйте HTML5, чтобы сделать заполнение поля обязательным",
1700
+
"title": "Используйте HTML5, чтобы сделать заполнение поля обязательным",
1701
1701
"description": [
1702
1702
"Вы можете требовать заполнения определённых полей формы, таким образом пользователь не сможет отправить данные формы до их заполнения.",
1703
1703
"Например, если бы вы хотели сделать заполнение текстового поля обязательным, вы могли бы добавить слово <code>required</code> внутрь вашего элемента <code>input</code>: <code><input type=\"text\" required></code>",
@@ -1976,8 +1976,7 @@
1976
1976
]
1977
1977
},
1978
1978
"es": {
1979
-
"title":
1980
-
"Marca botones de radio y casillas de verificación por omisión",
1979
+
"title": "Marca botones de radio y casillas de verificación por omisión",
1981
1980
"description": [
1982
1981
"Puedes marcar por omisión una casilla de verificación o un botón de radio usando el atributo <code>checked</code>.",
1983
1982
"Para ello, sólo tienes que añadir la palabra \"checked\" en el interior de un elemento <code>input</code>. Por ejemplo:",
@@ -1987,8 +1986,7 @@
1987
1986
]
1988
1987
},
1989
1988
"pt-br": {
1990
-
"title":
1991
-
"Faça botões de opção e caixas de seleção estarem marcados por padrão",
1989
+
"title": "Faça botões de opção e caixas de seleção estarem marcados por padrão",
1992
1990
"description": [
1993
1991
"Você pode fazer uma caixa de seleção ou botão de opção estar marcado por padrão usando o atributo <code>checked</code>.",
1994
1992
"Para fazer isso, apenas insira a palavra \"checked\" em um elemento <code>input</code>. Por exemplo:",
@@ -2120,7 +2118,7 @@
2120
2118
"<hr>",
2121
2119
"Add a <code>DOCTYPE</code> tag for HTML5 to the top of the blank HTML document in the code editor. Under it, add opening and closing <code>html</code> tags, which wrap around an <code>h1</code> element. The heading can include any text."
2122
2120
],
2123
-
"challengeSeed": ["", "", ""],
2121
+
"challengeSeed": [],
2124
2122
"tests": [
2125
2123
"assert(code.match(/<!DOCTYPE\\s+?html\\s*?>/gi), 'message: Your code should include a <code><!DOCTYPE html></code> tag.');",
2126
2124
"assert($('html').length == 1, 'message: There should be one <code>html</code> element.');",
0 commit comments